본문 바로가기

카테고리 없음

Python Visual Studio For Mac



Python in Visual Studio Code. Working with Python in Visual Studio Code, using the Microsoft Python extension, is simple, fun, and productive.The extension makes VS Code an excellent IDE, and works on any operating system with a variety of Python interpreters. Python Tools for Visual Studio is a free & open source plug-in for Visual Studio 2010. PTVS enables developers to use all the major productivity features of Visual Studio to build Python code using either CPython or IronPython and adds new features. According to the description for Python Tools for Visual Studio, it only statement that it could install for Visual Studio 2015, VS2013, VS2012 and VS2010. It doesn't mentioned that it is support Visual Studio for Mac.

-->

To install Python support for Visual Studio (also known as Python Tools for Visual Studio or PTVS), follow the instructions in the section that matches your version of Visual Studio:

To quickly test Python support after following the installation steps, open the Python Interactive window by pressing Alt+I and entering 2+2. If you don't see the output of 4, recheck your steps.

Tip

The Python workload includes the helpful Cookiecutter extension that provides a graphical user interface to discover templates, input template options, and create projects and files. For details, see Use Cookiecutter.

Note

Python support is not presently available in Visual Studio for Mac, but is available on Mac and Linux through Visual Studio Code. See questions and answers.

Visual Studio 2019 and Visual Studio 2017

  1. Download and run the latest Visual Studio installer. If you have Visual Studio installed already, run the Visual Studio Installer, select the Modify option (see Modify Visual Studio) and go to step 2.

    Tip

    The Community edition is for individual developers, classroom learning, academic research, and open source development. For other uses, install Visual Studio 2019 Professional or Visual Studio 2019 Enterprise.

  2. The installer presents you with a list of workloads, which are groups of related options for specific development areas. For Python, select the Python development workload.

    Optional: if you're working with data science, also consider the Data science and analytical applications workload. This workload includes support for the Python, R, and F# languages. For more information, see Data science and analytical applications workload.

    Note

    The Python and Data Science workloads are available only with Visual Studio 2017 version 15.2 and later.

    Optional: if you're working with data science, also consider the Data science and analytical applications workload. This workload includes support for the Python and F# languages. For more information, see Data science and analytical applications workload.

  3. On the right side of the installer, chose additional options if desired. Skip this step to accept the default options.

    Option Description
    Python distributions Choose any combination of the available options, such as 32-bit and 64-bit variants of the Python 2, Python 3, Miniconda, Anaconda2, and Anaconda3 distributions that you plan to work with. Each includes the distribution's interpreter, runtime, and libraries. Anaconda, specifically, is an open data science platform that includes a wide range of pre-installed packages. (You can return to the Visual Studio installer at any time to add or remove distributions.) Note: If you've installed a distribution outside of the Visual Studio installer, there's no need to check the equivalent option here. Visual Studio automatically detects existing Python installations. See The Python Environments window. Also, if a newer version of Python is available than what's shown in the installer, you can install that version separately and Visual Studio will detect it.
    Cookiecutter template support Installs the Cookiecutter graphical UI to discover templates, input template options, and create projects and files. See Use the Cookiecutter extension.
    Python web support Installs tools for web development including HTML, CSS, and JavaScript editing support, along with templates for projects using the Bottle, Flask, and Django frameworks. See Python web project templates.
    Python IoT support Supports Windows IoT Core development using Python.
    Python native development tools Installs the C++ compiler and other necessary components to develop native extensions for Python. See Create a C++ extension for Python. Also install the Desktop development with C++ workload for full C++ support.
    Azure Cloud Services core tools Provides additional support for developer Azure Cloud Services in Python. See Azure cloud service projects.
    Option Description
    Python distributions Choose any combination of the available options, such as 32-bit and 64-bit variants of the Python 2, Python 3, Miniconda, Anaconda2, and Anaconda3 distributions that you plan to work with. Each includes the distribution's interpreter, runtime, and libraries. Anaconda, specifically, is an open data science platform that includes a wide range of pre-installed packages. (You can return to the Visual Studio installer at any time to add or remove distributions.) Note: If you've installed a distribution outside of the Visual Studio installer, there's no need to check the equivalent option here. Visual Studio automatically detects existing Python installations. See The Python Environments window. Also, if a newer version of Python is available than what's shown in the installer, you can install that version separately and Visual Studio will detect it.
    Cookiecutter template support Installs the Cookiecutter graphical UI to discover templates, input template options, and create projects and files. See Use the Cookiecutter extension.
    Python web support Installs tools for web development including HTML, CSS, and JavaScript editing support, along with templates for projects using the Bottle, Flask, and Django frameworks. See Python web project templates.
    Python native development tools Installs the C++ compiler and other necessary components to develop native extensions for Python. See Create a C++ extension for Python. Also install the Desktop development with C++ workload for full C++ support.
    Azure Cloud Services core tools Provides additional support for developer Azure Cloud Services in Python. See Azure cloud service projects.
  4. After installation, the installer provides options to modify, launch, repair, or uninstall Visual Studio. The Modify button changes to Update when updates to Visual Studio are available for any installed components. (The Modify option is then available on the drop-down menu.) You can also launch Visual Studio and the installer from the Windows Start menu by searching on 'Visual Studio'.

Troubleshooting

If you encounter problems installing or running Python in Visual Studio, try the following:

  • Determine whether the same error occurs using the Python CLI, that is, running python.exe from a command prompt.
  • Use the Repair option in the Visual Studio installer.
  • Repair or reinstall Python through Settings > Apps & features in Windows.

Example error: Failed to start interactive process: System.ComponentModel.Win32Exception (0x80004005): Unknown error (0xc0000135) at Microsoft.PythonTools.Repl.PythonInteractiveEvaluator.d__43.MoveNext().

Visual

Visual Studio 2015

  1. Run the Visual Studio installer through Control Panel > Programs and Features, selecting Microsoft Visual Studio 2015 and then Change.

  2. In the installer, select Modify.

  3. Select Programming Languages > Python Tools for Visual Studio and then Next:

  4. Once Visual Studio setup is complete, install a Python interpreter of your choice. Visual Studio 2015 supports only Python 3.5 and earlier; later versions generate a message like Unsupported Python version 3.6). If you already have an interpreter installed and Visual Studio doesn't detect it automatically, see Manually identify an existing environment.

Visual Studio 2013 and earlier

Python Tools For Visual Studio For Mac

  1. Install the appropriate version of Python Tools for Visual Studio for your version of Visual Studio:

    • Visual Studio 2013: PTVS 2.2 for Visual Studio 2013. The File > New Project dialog in Visual Studio 2013 gives you a shortcut for this process.
    • Visual Studio 2012: PTVS 2.1 for Visual Studio 2012
    • Visual Studio 2010: PTVS 2.1 for Visual Studio 2010
  2. Install a Python interpreter of your choice. If you already have an interpreter installed and Visual Studio doesn't detect it automatically, see Manually identify an existing environment.

Install locations

By default, Python support is installed for all users on a computer.

For Visual Studio 2019 and Visual Studio 2017, the Python workload is installed in %ProgramFiles(x86)%Microsoft Visual Studio<VS_version><VS_edition>Common7IDEExtensionsMicrosoftPython where <VS_version> is 2019 or 2017 and <VS_edition> is Community, Professional, or Enterprise.

For Visual Studio 2015 and earlier, installation paths are as follows:

  • 32-bit:
    • Path: %Program Files(x86)%Microsoft Visual Studio <VS_ver>Common7IDEExtensionsMicrosoftPython Tools for Visual Studio<PTVS_ver>
    • Registry location of path: HKEY_LOCAL_MACHINESoftwareMicrosoftPythonTools<VS_ver>InstallDir
  • 64-bit:
    • Path: %Program Files%Microsoft Visual Studio <VS_ver>Common7IDEExtensionsMicrosoftPython Tools for Visual Studio<PTVS_ver>
    • Registry location of path: HKEY_LOCAL_MACHINESoftwareWow6432NodeMicrosoftPythonTools<VS_ver>InstallDir

where:

  • <VS_ver> is:
    • 14.0 for Visual Studio 2015
    • 12.0 for Visual Studio 2013
    • 11.0 for Visual Studio 2012
    • 10.0 for Visual Studio 2010
  • <PTVS_ver> is a version number, such as 2.2, 2.1, 2.0, 1.5, 1.1, or 1.0.

User-specific installations (1.5 and earlier)

Python On Visual Studio For Mac

Python Tools for Visual Studio 1.5 and earlier allowed installation for the current user only, in which case the installation path is %LocalAppData%MicrosoftVisualStudio<VS_ver>ExtensionsMicrosoftPython Tools for Visual Studio<PTVS_ver> where <VS_ver> and <PTVS_ver> are the same as described above.

Add your useful tools here -- editors, debuggers and other utils that really help with the process.

Contents

Debuggers

Name

Platform

Notes

All

The standard library debugger, part of all Python installations.

Unix,Mac OS X

A visual, console-based, full-screen debugger, designed as a more comfortable drop-in replacement for pdb. (also supports IPython)

All

A .pdbrc for Python's standard debugger, pdb, which allows you to run arbitrary Python commands on pdb startup.

Windows

A python IDE with remote debugging capability.

Unix,Linux,Windows

An advanced python debugger, with support for smart breakpoints, multiple threads, namespace modification, embedded debugging, encrypted communication and speed of up to 20 times that of pdb.

Unix, Windows,Mac OS X

(Predecessor of rpdb2 and winpdb) rpdb.py improves pdb's usability and adds support for remote debugging, multiple threads debugging, post mortem of unhandled exceptions, and for debugging of embedded scripts.

Mac OS X, OS/2, Unix, VMS and Windows

Both a CPYTHON and a JPYTHON(JYTHON) debugging framework which has been integrated inside Jedit as a standard jedit pluggin.

Unix, Windows, OS X

An expanded version of pdb loosely based on the gdb command set. The debugger supports thread debugging, signal handling, non-interactive tracing, and much more.

Unix Daz studio for mac os x.

pdb extension with curses module that adds console window with source code.

Unix

Graphical front-end for command-line debuggers such as GDB, DBX, WDB, Ladebug, JDB, XDB, the Perl debugger, the bash debugger, GNU Make debugger, or the Python debugger. DDD displays data structures as graphs and plots. A deprecated version of pydb comes with this package. For GNU make debugging, use ddd-test5

Unix,Windows

Debugger for Python programs with a graphical user interface. It uses bdb (part of stdlib) but adds a GUI and has some powerful features like object browser, windows for variables, classes, functions, exceptions, stack, conditional breakpoints, etc.

gdb

*nix

Manga Studio EX 5.0.5 Mac Keygen latest version of the professional comic and manga creation solution programming which delivers expert art tools for every manga and comic artist. Once you open SmithMicro Manga Studio Ex 5 for Mac, you can begin your comic starting with no outside help or import a picture and afterward, supported by intense tool such as filters, channels, layers. Manga Studio is a Mac OS X application designed to help you create your own comics and illustrations by offering a wide collection of graphic effects and an optimized workflow. However, keep in mind that you can create only single pages: you need the Manga Studio. CLIP STUDIO PAINT PRO, The #1 Comic & Manga Software Worldwide, is the most efficient and advanced all-in-one solution for drawing, laying out, illustrating and publishing manga and comics. Corel Painter Essentials 5 Digital Art Suite for PC and Mac (Old Version) Corel. Manga studio 5 for mac. Smith Micro Software’s Manga Studio EX is a paid application that acts as a canvas for computer artists. This product provides a collection of tools for creating “manga” (it is a Japanese term for “comic book”) just like the professionals do.

See DebuggingWithGdb

*nix, Windows

Pyclewn allows you to use Vim as a front end to a debugger. Pyclewn currently supports gdb and pdb.

trepan2, trepan3k

Unix, Windows, Mac OS X

A rewrite of pydb with closer compliance to gdb . In addition to the features of pydb, the debugger supports syntax coloring (via pygments), has extensive on-line help (in rendered reStructuredText), command completion, a smarter eval, debugger macros written in Python, and more.

Unix, Windows, Mac OS X

An extension of the pdb module of the standard library. It is meant to be fully compatible with its predecessor, yet it introduces a number of new features to make your debugging experience as nice as possible.

Unix, Windows, Mac OS X

A set of debugging decorators which respects Django's settings in case the package is withing a Django project. It allows a user to PDB into a function, do a Line profiler, inspect an object and Disasemble the function.

IDEs with Debug Capabilities

Mac OS X, Linux, Windows

For teaching/learning programming. Focused on program runtime visualization. Provides stepping both in statements and expressions, no-hassle variables view, separate mode for explaining references etc.

Mac OS X, Linux, Windows

Allows debugging multiple threads in Jython and Python (It is featured as a 'Python IDE' plugin for Eclipse).

Mac OS X, Linux, Windows

An IDE that can debug multiple threads and multiple processes, including code launched from the IDE or code launched externally, running under CPython and Stackless Python. The GUI includes a Debug Probe, which is a Python shell running in the context of the paused debug process. The IDE's debugger also features value watching (by symbolic path, object reference, or a combination), conditional breakpoints, move program counter, debugging of tests running in the integrated unit testing tool, special support for Django, and How-Tos for debugging code running under Flask, web3py, Django, Google App Engine, wxPython, PyQt, Tkinter, Blender, Maya, NUKE, and many other packages.

Mac OS X, Linux, Windows

Mac OS X, Linux, Windows

PyCharm's integrated debugger works for Python and Jython, supports debugging of multiple threads, remote debugging, allows debugging Django, Google App Engine applications and unit tests. The debugger features various breakpoints, stepping modes, frames view, watches, evaluate expression tool and a debug console. Conditional and Exception breakpoint types are available for more precise control. Debug console allows executing any Python statements in the context of the process being debugged while stopped at a breakpoint.

Windows

Linux, Windows

An IDE tool used to edit, debug Python scripts, publish encrypted scripts, build a standalone executable file, and make installation in various forms(.msi, .tar.gz, .rpm, .zip, .tar.bz2). It includes an editor simulating Emacs python-mode, a GUI debugger simulating GDB, a project view used to manage scripts, modules, extensions, packages and platform specific data files.

Windows

Supports Python (any implementation with sufficient sys.settrace capabilities) and IronPython .NET debugging. Includes MPI cluster debugging, breakpoints, conditional breakpoints, locals, watch, and immediate windows, step into/out/over, break on exception, and break on unhandled exception.

Mac OS X, Linux, Windows

Visual Studio Code is a source code editor developed by Microsoft for Windows, Linux and MacOS. It includes support for debugging, embedded Git control, syntax highlighting, intelligent code completion, snippets, and code refactoring. It is free and open-source, although the official download is under a proprietary license. Supports Python debugging via extensions.

Mac OS X, Linux, Windows

A simple Python editor for beginner programmers, providing a simple interface depending on the project type. It includes visual debugging as first citizen.

Special-purpose tools

Python Visual Studio 2017 Mac

GoogleAppEngine + Firefox

'FirePython is a python logger console integrated into Firebug (similar to FirePHP)'. See http://appengine-cookbook.appspot.com/recipe/firepython-logger-console-inside-firebug/

Mac OS X, Linux

Remote process inspector (using an active component, using a thread or a plain simple signal handler).

Remote process inspector. Uses GDB to inject code.

Remote process inspector/profiler for Python 2/3. Uses GDB to inject code.

Any

Trace hook logger which outputs each thread in its own 'swimlane' to make multithreaded analysis easier. Can also time calls (naively) and watch variables.

Remote process inspector. Uses GDB to inject code.

Mac OS X, Linux

Library and a set of tools for injecting code into running Python programs to monitor, analyze, introspect, and alter running Python programs easily. Uses GDB to inject code.

Remote process inspector. Uses GDB to inject code.

Remote process inspector. Uses GDB to inject code. Uses rpyc for communication.

Remote process inspector (using an active component, a thread).

A flexible code tracing toolkit. Can print out code and variables, and filter the events.

Sweet and creamy print debugging -- inspect variables, expressions, and code execution with a single, simple function call.

Graphical Python debugger which lets you easily view the values of all evaluated expressions

Provides two utilities: show: a lightweight function that prints name and value of your variable(s) to the console, and peep: featured, interactive interface for data inspection.

Never use print for debugging again. PySnooper is a poor man's debugger. If you can't use a real debugger for some reason or other, and you're resorting to adding print statements to your code, this is for you. Add just one decorator line to your functions, and you get a complete log of all the lines that ran in the function and all the variables that were changed.