Can pip be used with Python Tools in Visual Studio?

Can pip be used with Python Tools in Visual Studio?

Yep! Go to Tools -> Python Tools -> Python Environments.

This will open a new pane where you can select pip (VS 2015) or Packages (VS 2017) from the menu (it will say Overview by default) and then you can enter your module and double click to install.

enter

Some packages have complex dependencies, and you might need to install them manually from these links:

On VS 2017, switch to the solution explorer and right click as indicated:

enter

Can pip be used with Python Tools in Visual Studio?

Yes 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, youll need setuptools or distribute. If youre using Python3, you must use distribute as setuptools doesnt 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

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.

Leave a Reply

Your email address will not be published. Required fields are marked *