2 Replies - 131 Views - Last Post: 16 September 2019 - 08:50 AM

#1 sayhello   User is offline

  • D.I.C Regular

Reputation: 4
  • View blog
  • Posts: 261
  • Joined: 12-November 17

Python: command “python -m pip install --upgrade pip” doesn't work

Posted 16 September 2019 - 07:26 AM

hello dear experts, 


well i have no idea why the python things do not work here. 


the pc. Win 7

the idea: i want to install the newest python and some additional things. 




Python: command “python -m pip install --upgrade pip” doesn't work



I want to upgrade my pip, but if I type in "python -m pip install --upgrade pip", then my command shell says "cannot find 'python'". Python is already installed and my command shell can't detect the command "python", though.



Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Alle Rechte vorbehalten.

C:\Users\Kasper>pip install esptool
Collecting esptool
  Downloading https://files.pythonhosted.org/packages/6c/bf/578443af2270ebeff78f
dfd30cef3a02433cc63b34a912936653a48526dd/esptool-2.7.tar.gz (83kB)
    100% |████████████████████████████████| 92kB 1.7MB/s
Collecting pyserial>=3.0 (from esptool)
  Downloading https://files.pythonhosted.org/packages/0d/e4/2a744dd9e3be04a0c090
7414e2a01a7c88bb3915cbe3c8cc06e209f59c30/pyserial-3.4-py2.py3-none-any.whl (193k
B)/>/>
    100% |████████████████████████████████| 194kB 4.3MB/s
Collecting pyaes (from esptool)
  Downloading https://files.pythonhosted.org/packages/44/66/2c17bae31c9066137957
11fc78045c285048168919ace2220daa372c7d72/pyaes-1.6.1.tar.gz
Collecting ecdsa (from esptool)
  Downloading https://files.pythonhosted.org/packages/23/a8/8aa68e70959e1287da91
54e5164bb8bd5dd7025e41ae54e8d177b8d165c9/ecdsa-0.13.2-py2.py3-none-any.whl (59kB
)
    100% |████████████████████████████████| 61kB 7.7MB/s
Installing collected packages: pyserial, pyaes, ecdsa, esptool
Could not install packages due to an EnvironmentError: [WinError 5] Zugriff verw
eigert: 'c:\\program files\\python37\\Lib\\site-packages\\pyserial-3.4.dist-info
'
Consider using the `--user` option or check the permissions.

You are using pip version 10.0.1, however version 19.2.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' comm
and.

C:\Users\Kasper>pip install wxPython
Collecting wxPython
  Downloading https://files.pythonhosted.org/packages/d0/8e/2c72bc3624e5cee50aa9
4f8ae8756bc1c3aec96e8d456b6aa1242e92e9e8/wxPython-4.0.6-cp37-cp37m-win_amd64.whl
 (22.9MB)
    100% |████████████████████████████████| 22.9MB 1.4MB/s
Collecting numpy (from wxPython)
  Downloading https://files.pythonhosted.org/packages/bd/51/7df1a3858ff0465f760b
482514f1292836f8be08d84aba411b48dda72fa9/numpy-1.17.2-cp37-cp37m-win_amd64.whl (
12.8MB)
    100% |████████████████████████████████| 12.8MB 2.5MB/s
Requirement already satisfied: six in c:\users\kasper\appdata\roaming\python\pyt
hon37\site-packages (from wxPython) (1.12.0)
Collecting pillow (from wxPython)
  Downloading https://files.pythonhosted.org/packages/ae/96/6f83deebfcd20a5d4ad3
5e4e989814a16559d8715741457e670aae1a5a09/Pillow-6.1.0-cp37-cp37m-win_amd64.whl (
2.0MB)
    100% |████████████████████████████████| 2.0MB 6.0MB/s
Installing collected packages: numpy, pillow, wxPython
Could not install packages due to an EnvironmentError: [WinError 5] Zugriff verw
eigert: 'c:\\program files\\python37\\Lib\\site-packages\\numpy'
Consider using the `--user` option or check the permissions.

You are using pip version 10.0.1, however version 19.2.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' comm
and.

C:\Users\Kasper> -m pip install wxpython
Der Befehl "-m" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.

C:\Users\Kasper> m pip install wxpython
Der Befehl "m" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.

C:\Users\Kasper> pip3 install --upgrade pip
ERROR: To modify pip, please run the following command:
c:\program files\python37\python.exe -m pip install --upgrade pip
You are using pip version 10.0.1, however version 19.2.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' comm
and.

C:\Users\Kasper>



well i have no glue whats going on here. 

This post has been edited by sayhello: 16 September 2019 - 07:29 AM


Is This A Good Question/Topic? 0
  • +

Replies To: Python: command “python -m pip install --upgrade pip” doesn't work

#2 modi123_1   User is online

  • Suitor #2
  • member icon



Reputation: 15306
  • View blog
  • Posts: 61,383
  • Joined: 12-June 08

Re: Python: command “python -m pip install --upgrade pip” doesn't work

Posted 16 September 2019 - 07:30 AM

Are you in the 'python console', or regular windows console?

You should be in the first one.
Was This Post Helpful? 0
  • +
  • -

#3 sayhello   User is offline

  • D.I.C Regular

Reputation: 4
  • View blog
  • Posts: 261
  • Joined: 12-November 17

Re: Python: command “python -m pip install --upgrade pip” doesn't work

Posted 16 September 2019 - 08:50 AM

update: well we had three options



this way - with the using-micropython-on-an-esp8266-with-upycraft

https://maker.pro/es...6-with-upycraft


this way: esp_tool via github
https://github.com/e...ster/esptool.py


and this way Learn to use MicroPython on a NodeMCU ESP8266 through uPyCraft with an LED sample code.
https://maker.pro/es...6-with-upycraft


reports here: https://forum.microp...&p=39462#p39462


finally it worked with this one we have had sucess ESP8266-Flasher :: ESP-IDF
http://www.dietrich-..._flashtool.html
https://pypi.org/pro...wxPython/#files
[email protected]



it was working like a charme


we took this esp: (and i see that this is the wrong one - )


C:\Users\Kasper\Downloads\esp32spiram-20190913-v1.11-312-g22099ab88.bin

Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Erasing flash (this may take a while)...
Chip erase completed successfully in 13.2s
Flash params set to 0x0040
Compressed 1281760 bytes to 785761...
Wrote 1281760 bytes (785761 compressed) at 0x00000000 in 70.7 seconds (effective 145.1 kbit/s)...
Hash of data verified.

Leaving...

Done.




note i will have to try another than this esp: (and i see that this is the wrong one - )

C:\Users\Kasper\Downloads\esp32spiram-20190913-v1.11-312-g22099ab88.bin


i will try out later the week and will come back and report all the findings.

have a great day

This post has been edited by sayhello: 16 September 2019 - 08:56 AM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1