Pip安装授权失败

2024-10-04 03:25:03 发布

您现在位置:Python中文网/ 问答频道 /正文

我尝试使用pip安装搜查令,但得到以下错误:

Command "c:\...\venv\scripts\python.exe -u -c "import setuptools, tokenize;
__file__='C:\\...\\AppData\\Local\\Temp\\1\\pip-install-lahy2d9f\\pycryptodome\\setup.py';
f=getattr(tokenize, 'open', open)(__file__);
code=f.read().replace('\r\n', '\n');
f.close();
exec(compile(code, __file__, 'exec'))" install --record C:\...\AppData\Local\Temp\1\pip-record-2t9higml\install-record.txt --single-version-externally-managed --compile --install-headers c:\\...\venv\include\site\python3.6\pycryptodome" 
failed with error code 1 in C:\\...\AppData\Local\Temp\1\pip-install-lahy2d9f\pycryptodome\

以前有人遇到过这个问题吗?在

python版本:3.6

pip版本:19.0.1


Tags: installpipvenvlocalcodeopenrecordappdata
1条回答
网友
1楼 · 发布于 2024-10-04 03:25:03

我在运行pip3 install warrant时也遇到了同样的问题。我通过安装一个C编译器来解决这个问题。尝试安装提供了一系列编译器的visualstudio构建工具。在

Link to Visual Studio build tools download

相关问题 更多 >