加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > Python > 正文

在Python中安装包时出现异常

发布时间:2020-12-20 13:33:32 所属栏目:Python 来源:网络整理
导读:我在 Python中安装软件包时遇到此异常. 卸载了python并再次安装但没有 C:Usersramasastri.gDesktoppycrypto-2.6python setup.py installrunning installrunning buildrunning build_pyrunning build_extwarning: GMP or MPIR library not found; Not bui
我在 Python中安装软件包时遇到此异常.
卸载了python并再次安装但没有

C:Usersramasastri.gDesktoppycrypto-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 FilesMicrosoft Visual Studio 10.0VCBINcl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Isrc/ -Isrc/inc-msvc/ -IC:Python27include -IC:Python27PC /Tcsrc/winrand.c /Fobuildtemp.win32-2.7Releasesrc/winrand.obj
winrand.c
c:python27includepyconfig.h(68) : fatal error C1083: Cannot open include file: 'io.h': No such file or directory
error: command '"C:Program FilesMicrosoft Visual Studio 10.0VCBINcl.exe"' failed with exit status 2

解决方法

可能你错过了c编译器.

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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读