Did I install the code correctly?

I am new to python, and the tutorial that I use suggested I install four important packages (distribution, pip, nose, and virtual env).

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

The problem is that I cannot figure out how to use pip. I tried making commands for pip on the cmd, python and powershell command line. They all return something similar to a pip not defined or there is a syntax error

This is what I type, which leads to a syntax error

pip freeze pip list --outdated 

Does anyone know if I did something wrong by installing pip?

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

+8
python
source share
2 answers

To add an answer to this question (this was given in the comments of Joran Beasley), the problem was that pip installed in the python/Scipts , but that was not in the default path on Windows. Adding C:\Python27\Scripts to the path fixes the problem. This answer describes adding a directory to a path in Windows 7.

+9
source share

if you have ubuntu you should just install pip with aptget

 sudo apt-get install python-pip 
0
source share

All Articles