0

I have problemm with downloading packeges. If I write in cmd:

pip install matplotlib

this happens:

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

I corrected my path beacuse of this error

Here is what I get if type echo %PATH%

C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Lenovo\FusionEngine;C
:\Program Files (x86)\Intel\TXE Components\TCS\;C:\Program Files\Intel\TXE Compo
nents\TCS\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\Sy
stem32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files
\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\Common Files\lenovo\e
asyplussdk\bin;C:\Program Files (x86)\Skype\Phone\;C:\Program Files (x86)\Calibr
e2\;C:\Python36\Scripts

But the same error keeps coming up, so any help will be appreciated! Maybe I should also mention I have Python 3.6

EDIT: If it's helpful, here is what hapens when I write: import sys print(sys.executable)

I get: C:\Users****\AppData\Local\Programs\Python\Python36-32\python.exe

**** are just cover for real name

econ
  • 335
  • 3
  • 6
  • 15

3 Answers3

1

Are you sure you have pip installed?

Follow these instructions to download and install pip.

Download get-pip.py to a folder on your computer. Open a command prompt window and navigate to the folder containing get-pip.py. Then run python get-pip.py. This will install pip.

Colwin
  • 2,486
  • 3
  • 24
  • 24
  • This version should have pip. sorryy, I'm beginner and code you wrote doesn't work, I probably made some mistake...any idea where? I have this file on D disk, here is what I wrote: D:\>python get-pip.py 'D:\python' is not recognized as an internal or external command, operable program or batch file. – econ Jun 02 '17 at 12:22
  • Pip should automatically be installed when you download Python 3.6 so that shouldn't be a problem – DavidG Jun 02 '17 at 12:23
  • I have not written any code for you. Do you have the path to the file you downloaded? – Colwin Jun 02 '17 at 12:24
  • @DavidG Whoops looks like I missed that line. – Colwin Jun 02 '17 at 12:24
  • yes, file is correct, it's on disk D directly, not in any further file – econ Jun 02 '17 at 12:27
1

The link below explains the installation of Python and pip in Windows:

https://github.com/BurntSushi/nfldb/wiki/Python-&-pip-Windows-installation

Basically, download and run the following command:

python get-pip.py
  • I did that and following error prints out: 'python' is not recognized as an internal or external command, operable program or batch file. – econ Jun 02 '17 at 13:48
0

When calling echo %PATH% code shoud look like:

blah blah long list of stuff;C:\Program Files (x86)\Calibre2\;C:\Users***\AppData\Local\Programs\Python\Python36- 32;C:\Users***\AppData\Local\Programs\Python\Python36-32\Scripts

To correct this use GUI.

All credit to:https://www.reddit.com/r/learnpython/comments/6evsaz/issue_with_pip/

econ
  • 335
  • 3
  • 6
  • 15