[python] How do I run pip on python for windows?

I've just installed python 3.5, ran Python 3.5 (32-bit) and typed


and received the message:

Traceback (most recent call last):
  File "<pyshell#2>", line 1, in <module>
NameError: name 'pip' is not defined

I don't see any scripts directories in my path, but I found pip.py in C:\Users\UserName\AppData\Local\Programs\Python\Python35-32\Scripts.

I selected the option to "Add python to environment variables" during installation, but it doesn't seem to have done anything.

I googled this and got this guide, which says that earlier versions need to add some path names. I don't have a C:\Python... directory so I tried adding the Scripts folder from above, same result.

How do I install python so that it actually works (ie. I can run pip, install modules, etc.)?

This question is related to python python-3.x

The answer is

I have a Mac, but luckily this should work the same way:

pip is a command-line thing. You don't run it in python.

For example, on my Mac, I just say:

$pip install somelib

pretty easy!

First go to the pip documentation if not install before: http://pip.readthedocs.org/en/stable/installing/

and follow the install pip which is first download get-pip.py from https://bootstrap.pypa.io/get-pip.py

Then run the following (which may require administrator access): python get-pip.py