-1

I am trying to install a Python package, but in CMD it says that pip is not a command. I've looked at other posts, and the sudo command also doesn't work. I know I have python because py command works but sudo and pip won't work. How do I fix this?

I've tried running sudo easy_install pip because some other post said to do it, but it doesn't not work.

Alec
  • 8,529
  • 8
  • 37
  • 63

1 Answers1

0

I think you need to add the pip to PATH environment variable.

setx PATH "%PATH%;C:\Python34\Scripts"

And then run this command with cmd as Admin rights:

python -m pip install [packagename]

Hope this will help you out.

Avi Thour
  • 380
  • 1
  • 5
  • 23