Ich habe Apache ampps, die mit Version 3.6.1 von Python kommt. Ich bekam verschiedene Anweisungen für die Installation von Pip. Keiner schien zu funktionieren.Problem beim Installieren von Pip und/oder Warteschlange für Python
Zum Beispiel Link https://packaging.python.org/tutorials/installing-packages/ sagt, dass ich laufen kann:
python -m pip install -U pip setuptools
eine ganze Reihe von Fehlermeldungen erhalten. Es kann sich um Folgendes handeln: Kein Modul namens Warteschlange.
Ähnliche Fehler passieren, wenn ich die Datei herunterladen, die sie erwähnten (get-pip.py) und es von Python ausführen.
Nun, wenn ich mir Anweisungen für die Installation der Warteschlange ansehen, deuten einige mich an, Pip zu verwenden. Aber wenn ich versuche, pip
zu installieren, beschwert es sich, dass Warteschlange nicht dort ist .... Hmmm ...? Was nun?
ERROR:
File "C:\Users\Nima\AppData\Local\Temp\tmp1v2hpnae\pip.zip\pip\compat\__init__.py", line 11, in <module>
File "C:\Program Files (x86)\Ampps\python\lib\logging\config.py", line 30, in <module>
import logging.handlers
File "C:\Program Files (x86)\Ampps\python\lib\logging\handlers.py", line 28, in <module>
import queue
ModuleNotFoundError: No module named 'queue'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "getpip.py", line 20061, in <module>
main()
File "getpip.py", line 194, in main
bootstrap(tmpdir=tmpdir)
File "getpip.py", line 82, in bootstrap
import pip
File "C:\Users\Nima\AppData\Local\Temp\tmp1v2hpnae\pip.zip\pip\__init__.py", line 26, in <module>
File "C:\Users\Nima\AppData\Local\Temp\tmp1v2hpnae\pip.zip\pip\utils\__init__.py", line 22, in <module>
File "C:\Users\Nima\AppData\Local\Temp\tmp1v2hpnae\pip.zip\pip\compat\__init__.py", line 13, in <module>
File "C:\Users\Nima\AppData\Local\Temp\tmp1v2hpnae\pip.zip\pip\compat\dictconfig.py", line 22, in <module>
File "C:\Program Files (x86)\Ampps\python\lib\logging\handlers.py", line 28, in <module>
import queue
ModuleNotFoundError: No module named 'queue'
Sind Sie sicher, Pip ist noch nicht installiert? Es ist meist mit Python installiert. – MSathieu