python安装第三方模块出现错误 failed with exit status 2

「已注销」 2015-11-16 09:21:35
error: Command "C:\Users\pmhgms\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -IC:\Users\pmhgms\Anaconda\lib\site-packages\numpy\core\include -IC:\Users\pmhgms\Anaconda\include -IC:\Users\pmhgms\Anaconda\PC /Tpnumexpr\interpreter.cpp /Fobuild\temp.win-amd64-2.7\Release\numexpr\interpreter.obj /Zm1000" failed with exit status 2




更完整的是这样的:
Warning: Assuming default configuration (numexpr\tests/{setup_tests,setup}.py was not found)C:\Users\pmhgms\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -IC:\Users\pmhgms\Anaconda\lib\site-packages\numpy\core\include -IC:\Users\pmhgms\Anaconda\include -IC:\Users\pmhgms\Anaconda\PC /Tpnumexpr\interpreter.cpp /Fobuild\temp.win-amd64-2.7\Release\numexpr\interpreter.obj /Zm1000
interpreter.cpp
c:\users\pmhgms\anaconda\lib\site-packages\numpy\core\include\numpy\npy_1_7_deprecated_api.h(12) : Warning Msg: Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
c:\users\pmhgms\appdata\local\temp\pip-build-zt__0s\numexpr\numexpr\str-two-way.hpp(33) : fatal error C1083: Cannot open include file: 'stdint.h': No such file or directory
error: Command "C:\Users\pmhgms\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -IC:\Users\pmhgms\Anaconda\lib\site-packages\numpy\core\include -IC:\Users\pmhgms\Anaconda\include -IC:\Users\pmhgms\Anaconda\PC /Tpnumexpr\interpreter.cpp /Fobuild\temp.win-amd64-2.7\Release\numexpr\interpreter.obj /Zm1000" failed with exit status 2

----------------------------------------
Rolling back uninstall of numexpr
Command "C:\Users\pmhgms\Anaconda\python.exe -c "import setuptools, tokenize;__file__='c:\\users\\pmhgms\\appdata\\local\\temp\\pip-build-zt__0s\\numexpr\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\pmhgms\appdata\local\temp\pip-m4dnvw-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in c:\users\pmhgms\appdata\local\temp\pip-build-zt__0s\numexpr
...全文
3741 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
你要装什么库?pip install 不可以吗?如果不可以的话你可以直接去pip官网去下载exe安装包,比pip更方便,而且错误的机率更小。
「已注销」 2015-11-16
  • 打赏
  • 举报
回复
一通瞎搞后现在是这样 https://public.lightpic.info/image/A0BF_564961D40.jpg

37,720

社区成员

发帖
与我相关
我的任务
社区描述
JavaScript,VBScript,AngleScript,ActionScript,Shell,Perl,Ruby,Lua,Tcl,Scala,MaxScript 等脚本语言交流。
社区管理员
  • 脚本语言(Perl/Python)社区
  • IT.BOB
加入社区
  • 近7日
  • 近30日
  • 至今

试试用AI创作助手写篇文章吧