Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Did I install pip correctly?

I'm new to python and the tutorial I'm using suggested for me to install four important packages (distribute, pip, nose and virtual env).

I've installed the first two using setup.py in Windows PowerShell

Problem is I can't figure out how to use pip. I've tried doing commands for pip in the cmd, python idle shell and powershell. All of them return something similar to pip is not defined or there is a syntax error

Here's what i type which results to syntax error

pip freeze

pip list --outdated

Anyone know if I've done something wrong installing pip?

Notes: I'm using Windows 7 I've checked the Python2.7 directory and pip is in the Scripts folder. I've also used help("modules") in the Python Idle shell and it lists pip in the modules

like image 704
osse Avatar asked Jun 03 '13 17:06

osse


People also ask

How do I check if pip is installed?

To check if PIP is already installed on Windows, we should open the command line again, type pip , and press Enter . If PIP is installed, we will receive a long notification explaining the program usage, all the available commands and options.

How do I make sure pip is installed?

Installing pip on Linux After the program runs, use the command pip --version (or pip3 --version ) to make sure pip was installed correctly.

Is pip installed automatically?

Usually, pip is automatically installed if you are: working in a virtual environment.

What happens if pip install doesn't work?

This error usually means there's a problem with the Python installation or the system variable PATH is not set up correctly. Try reinstalling Python and all its components to fix the problem. The easiest way is via the Python executable installer.


1 Answers

To add an answer to this question (it was provided in the comments by Joran Beasley), the issue here was that pip installs to the python/Scipts directory, but that was not in the path by default on Windows. Adding C:\Python27\Scripts to the path fixed the issue. This answer describes adding a directory to the path on Windows 7.

like image 123
Nat Dempkowski Avatar answered Sep 21 '22 10:09

Nat Dempkowski