小编Ala*_*202的帖子

为什么我无法使用 Pip 从 PyPI 安装软件包?

最近我无法使用 Pip 下载任何软件包。每次它都会出错status 1,通常是在运行setup.py或构建轮子时。以下是我得到的完整回溯的两个示例:

\n
pip install miniupnpc\nCollecting miniupnpc\n  Downloading miniupnpc-2.0.2.tar.gz (67 kB)\n     |\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88| 67 kB 1.7 MB/s\n  Preparing metadata (setup.py) ... done\nUsing legacy 'setup.py install' for miniupnpc, since package 'wheel' is not installed.\nInstalling collected packages: miniupnpc\n    Running setup.py install for miniupnpc ... error\n    ERROR: Command errored out with exit status 1:\n     command: 'C:\\Users\\--------\\AppData\\Local\\Programs\\Python\\Python310\\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\\\Users\\\\--------\\\\AppData\\\\Local\\\\Temp\\\\pip-install-kjrhsl01\\\\miniupnpc_31f9b0505dac4eff85fe9636cdb81aad\\\\setup.py'"'"'; __file__='"'"'C:\\\\Users\\\\--------\\\\AppData\\\\Local\\\\Temp\\\\pip-install-kjrhsl01\\\\miniupnpc_31f9b0505dac4eff85fe9636cdb81aad\\\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import …
Run Code Online (Sandbox Code Playgroud)

python pip pypi

2
推荐指数
1
解决办法
3829
查看次数

标签 统计

pip ×1

pypi ×1

python ×1