我有apache ampps來自版本3.6.1的python。 我被給了安裝點的各種方向。 似乎沒有工作。麻煩安裝點和或隊列的蟒蛇
例如, 鏈接https://packaging.python.org/tutorials/installing-packages/ 說,我可以運行:
python -m pip install -U pip setuptools
找一大堆錯誤。它可能相當於:沒有名爲隊列的模塊。
當我下載他們提到的文件(get-pip.py)並從python運行它時發生類似的錯誤。
現在,當我查看安裝隊列的指示時,有人指出我使用pip。但是當我嘗試安裝pip
時,它抱怨隊列不在那裏...... 嗯......? 現在呢?
錯誤:
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'
您確定pip尚未安裝嗎?它主要安裝python。 – MSathieu