PTVS is a free, open source plugin that turns Visual Studio into a Python IDE. It supports CPython, IronPython, editing, browsing, IntelliSense, mixed Python/C++ debugging, remote Linux/MacOS debugging, profiling, IPython, and web development with Django and other frameworks.
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: pip install boto pip install fabric pip install cuisine pip freeze requirements.txt 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!
Yes you can, here is a simple guide taken from here 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 and invoke it using python. Python.exe C: Path to distributesetup.py Now that distribute is installed, Pip can also be installed. Download get-pip.py here and invoke it in the same way you invoked distributesetup: python.exe c: Path to get-pip.py After that Pip is installed.
But you might want to add C: Python32 Scripts to the Path Systemvariable too (see step 1). So you can execute pip.exe from any location.
Comments are closed.
|
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |