系统相关
首页 > 系统相关> > python windows下pip安装错误whl文件安装错误

python windows下pip安装错误whl文件安装错误

作者:互联网

错误提示

    error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://
visualstudio.microsoft.com/visual-cpp-build-tools/

    ----------------------------------------
Command "c:\users\administrator\appdata\local\programs\python\python37-32\python.exe -u -c "import setuptools,
 tokenize;__file__='C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\pip-install-py99kfx3\\sip\\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:\Users\ADMINI~1\AppData\Local\Temp\pip-record-haqyg9_i\install-record.txt --single
-version-externally-managed --compile" failed with error code 1 in C:\Users\ADMINI~1\AppData\Local\Temp\pip-in
stall-py99kfx3\sip\

用pip install 模块中时总是不成功,仔细看输出信息时,发现有些模块安装前要编译,在windows下编译,环境肯定少不了的。

环境安装:

(默认visualcppbuildtools full.exe会自动下载需要的文件,但是TC的情况大家都懂得,最方便的就是下载,下面的离线包,解压后,按提示选择)
1.visualcppbuildtools full.exe 
链接:https://pan.baidu.com/s/1O5DB8pHWQsMWkeTl_xjvbQ
提取码:ctui

2.离线包

链接:https://pan.baidu.com/s/164vxeswwOzjlK24qRbhABQ
提取码:fpsq

注意:离线包下载下来是个iso文件,将其解压,然后根据build tool找到对应的msi文件即可,比如要找BuildTools_MSBuild.msi
我的msi路径
D:\BaiduNetdiskDownload\solved_packageMissInInstalling_mu_visual_cpp_build_tools_2015_update_3_x64_dvd_dfd9a39c\packages\BuildTools_MSBuild_amd64\BuildTools_MSBuild.msi

 

 

参考:

https://www.cnblogs.com/pistachio0812/p/15087302.html

https://zhuanlan.zhihu.com/p/126669852

 

标签:__,msi,错误,python,com,install,https,pip,安装
来源: https://www.cnblogs.com/wutou/p/15796990.html