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
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.
Installing pip on Linux After the program runs, use the command pip --version (or pip3 --version ) to make sure pip was installed correctly.
Usually, pip is automatically installed if you are: working in a virtual environment.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With