Skip to content Skip to sidebar Skip to footer

Not Sure How To Fix This Cmd Command Error?

Im on windows 8 and i have installed the latest python,and im going to use sublime text 3 as my ide to create a website using flask.But firstly i needed to install a virtual enviro

Solution 1:

Under Windows, pip is stored in the Python scripts folder, e.g. "C:\Python27\Scripts".

How to run pip?

  • Open a Command line by pressing [WIN]+R and typing cmd.exe.

  • Then navigate tho the Scrips folder of your Python installation by typing cd "C:\Python27\Scripts" (Or where else you've installed Python) into the command line.

  • To run pip now type pip.exe into the command line. This should print a help message.

  • If so, you can use pip install package_name to install a Python package.

What I recommend:

Navigating to the Scripts folder every time is very annoying, so you can tell Windows where your pip.exe is stored.

  • Open the control panel, search for "environment variables" and choose edit environment variables.

  • When a little window is opened, press the button "Environment variables" on the bottom.

  • Now, double-click the entry "Path", click "New" and enter "C:\Python27\Scripts" (If this is your intallation path, see above). Close all windows with clicking "OK", you're done!

  • Now opening a commandline and installing through pip should work.

Hope this helps!

Post a Comment for "Not Sure How To Fix This Cmd Command Error?"