Not at the moment (April 2017). Use Visual Studio 2017 for Mac to develop apps for Android, macOS, iOS, tvOS, watchOS, games with Unity, web, and cloud. You can learn more about Visual Studio 2017 for Mac here Visual Studio 2017 for Mac.
- Python Tools for Visual Studio (PTVS) ※ Very neat – Sure beats the current level of Python integration into Xcode, third party or no third party. ← European data roaming prices drop 36 percent today Douglas C. Engelbart Dies at 88 →. The Tao of Mac is cc 2002-2018 Rui Carmo.
- Dan Taylor, Senior Program Manager. Dan Taylor is the Program Manager for Python developer tools at Microsoft. He has been at Microsoft for 7 years and has previously worked on performance improvements to.NET and Visual Studio, as well as profiling and diagnostic tools in Visual Studio and Azure.
- Python Tools for Visual Studio Mac. It would be great to have support for python for mac os, just like the one for windows. Installation should be intuitive like it's already done in windows 10350-installer.png (picture attached) thub.nodes.view.add-new-comment.
- For Visual Studio to become the goto dev tool on Mac, adding Python support would go a long way to make that happen. RM commented October 7, 2018 2:59 AM Flag as inappropriate Flag as inappropriate Delete.
- Visual Studio is a suite of component-based software development tools and other technologies for building powerful, high-performance applications. What is Haskell for Mac? An IDE for Haskell featuring rapid-feedback playgrounds.
- Finally, explore the Resources and Docs for Python Tools for Visual Studio, including, but not limited to Editing, Refactoring, Unit Tests, Django, IPython notebook and Azure cloud computing, Kinect for Python and Pyvot - an Excel to Python bridge.
I'm collaborating with some fellow students to build a python app, and was hoping to use the 'training wheels' of Visual Studio intelli-sense. They use python on mac and linux, so ideally our source control repo would consist of just *.py
source files that we wrote, and a requirements.txt
export of pip dependancies (using the pip freeze
method).
I would love to be able to create a new Visual Studio project, then be able to run the following commands (for instance) within that project:
And after that, be able to write some code that references these libraries and be able to run it from within Visual Studio.
Is there any way to do this? Is Python within Visual Studio even able to handle modules in the format they are available within pip, or do all python libraries used in VS have to have been pre-compiled for Windows?
Thanks in advance for any help!
Pavel Minaev6 Answers
Yep! Go to Tools
->Python Tools
->Python Environments
.
This will open a new pane where you can select pip
from the menu (it will say Overview
by default) and then you can enter your module and double click to install.
Some packages have complex dependencies, and you might need to install them manually from these links:
numpy
http://sourceforge.net/projects/numpy/files/NumPy/scipy
http://sourceforge.net/projects/scipy/files/scipy/Matplotlib
http://matplotlib.org/downloads.htmlPandas
http://pandas.pydata.org/getpandas.html
On VS 2017, switch to the 'solution explorer' and right click as indicated:
From the mention of Visual Studio, it sounds like you're using Python Tools for Visual Studio. If so, then support for pip, easy_install and virtualenv is one of the new features in PTVS 2.0 beta - get it and give it a try. Once you add an interpreter reference to your project, you'll find commands to install a package in context menu for that interpreter in Solution Explorer.
This way, you also do not have to set up pip yourself, since PTVS will do it for you the first time you try to install a package.
Pavel MinaevPavel MinaevYes you can, here is a simple guide taken from here https://zignar.net/2012/06/17/install-python-on-windows/
Before you can install Pip, you'll need setuptools or distribute. If you're using Python3, you must use distribute as setuptools doesn't support Python 3.x
To install distribute download the setup file here https://pypi.python.org/pypi/distribute/0.6.27 and invoke it using python.
python.exe C:Pathtodistribute_setup.py
Python Tools Visual Studio 2013
Now that distribute is installed, Pip can also be installed. Download get-pip.py here https://raw.github.com/pypa/pip/master/contrib/get-pip.py and invoke it in the same way you invoked distribute_setup:
python.exe c:Pathtoget-pip.py
After that Pip is installed. But you might want to add C:Python32Scripts to the Path Systemvariable too (see step 1). So you can execute pip.exe from any location.
When you install Python support with Visual Studio, the PIP executable can be found in C:Program Files (x86)Microsoft Visual StudioSharedPython36_64Scripts
If it isnt there, type the following at a command prompt to find out Pythons install locationpy --location
Then either add the location to path, or run pip with the full path from powershell. 'C:Program Files (x86)Microsoft Visual StudioSharedPython36_64Scriptspip.exe' install pillow
and you can set your path to pip like this:
Run set PATH='C:Program Files (x86)Microsoft Visual StudioSharedPython36_64'
Not the answer you're looking for? Browse other questions tagged pythonvisual-studiopipptvs or ask your own question.
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 | 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 | 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. |
Python Tools For Visual Studio 2017 Mac
IDEs with Debug Capabilities
Ms Visual Studio Python
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
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. |