gpt4 book ai didi

python - 在 Python 中安装包时出现异常

转载 作者:太空宇宙 更新时间:2023-11-03 11:54:33 26 4
gpt4 key购买 nike

我在 Python 中安装包时遇到此异常。卸载了 python 并重新安装了它但是没有

C:\Users\ramasastri.g\Desktop\pycrypto-2.6>python setup.py install
running install
running build
running build_py
running build_ext
warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.

building 'Crypto.Random.OSRNG.winrandom' extension
C:\Program Files\Microsoft Visual Studio 10.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Isrc/ -Isrc/inc-msvc/ -IC:\Python27\include -IC:\Python27\PC /Tcsrc/winrand.c /Fobuild\temp.win32-2.7\Release\src/winrand.obj
winrand.c
c:\python27\include\pyconfig.h(68) : fatal error C1083: Cannot open include file: 'io.h': No such file or directory
error: command '"C:\Program Files\Microsoft Visual Studio 10.0\VC\BIN\cl.exe"' failed with exit status 2

最佳答案

可能您缺少 c++ 编译器。

我使用来自 here 的预打包版本安装了它

关于python - 在 Python 中安装包时出现异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15432010/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com