-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
  • 6,521
  • 7
  • 23
  • 48

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
  • 308
  • 2
  • 19