0

Installing pip has been notoriously difficult for me. I still have not figured it out even after several attempts with different tutorials. I have been trying to use pip (for beginner Python projects) but have had to abandon the projects as pip is not working for me. Sometimes I think I have successfully installed pip, but then I get:

C:\Python33>pip

'pip' is not recognized as an internal or external command, operable program or batch file.

I tried another tutorial, ran this, and got:

C:\Python33>get-pip.py

Requirement already up-to-date: pip in c:\python33\lib\site-packages\pip-9.0.1-py3.3.egg
Collecting wheel
  Downloading wheel-0.29.0-py2.py3-none-any.whl (66kB)
    100% |################################| 71kB 264kB/s
Installing collected packages: wheel
Successfully installed wheel-0.29.0

The problem is I keep getting:

C:\Python33\Lib\site-packages>pip

'pip' is not recognized as an internal or external command, operable program or batch file.

How to install pip here? I have Python 3.3.3 and Windows

andpei
  • 2,364
  • 1
  • 22
  • 39
Isaact
  • 55
  • 1
  • 9

5 Answers5

1

try:

python -m pip install <package_name>
RHSmith159
  • 1,500
  • 6
  • 13
1

If you are using a python interpreter...Try this:

import pip

pip.main(["install","--User", "package"]) 
# so...
pip.main(["install", "--Trump", "cython"])
# also if no user specified, usually this is my go to
pip.main(["install", "cython"])
0

Perhaps you should try python distributions with built-in libraries. Since you are a windows user , you can use Winpython for example, https://sourceforge.net/projects/winpython/ which is a portable Windows distribution of Python. I'm using it since it already includes most of the scientific and numerical libraries and there's also a built-in package installer.

msalperen
  • 113
  • 8
0

Seems like PIP is not in your PATH system variables, so cmd will not recognize it as internal command.

To check is it true type echo %PATH% at the CMD prompt. PIP should be installed to C:\Python33\Scripts\pip normally, if you dont see line like this after entering echo %PATH%, you need to add path to pip to PATH system variables manually from control panel or cmd with setx command. For instance:

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

If you want to add path to PIP from control panel use this tutorial, it should help.

Michael
  • 984
  • 2
  • 11
  • 31
0

I recommend to consult this link :
How do I install pip on Windows? wich contains the answer to your question, I have noticed that you use python33 so you can go directly to this link (the 2nd link I proposed to you is from the page of the 1st link), I hope this will help you.

YCF_L
  • 49,027
  • 13
  • 75
  • 115
ziMtyth
  • 824
  • 11
  • 28