本文主要是介绍【报错】Python3.5.1 用 pip 安装numpy时出现 “Unable to find vcvarsall.bat ”,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
问题描述
Python3.5.1 用 pip 安装numpy(pip install numpy)时出现 “Unable to find vcvarsall.bat ”
解决方法
参考知乎的回答,直接使用whl安装
步骤
1.安装wheel,命令行运行:pip install wheel
2.下载对应的.whl文件
3. 进入.whl所在的文件夹,执行命令即可完成安装 pip install 带后缀的完整文件名
PS:如果出现**is not a supported wheel on this platform.**的报错,应该是.whl文件的文件名格式不对,输入import pip; print(pip.pep425tags.get_supported()),修改对应的文件名,在install即可。
这篇关于【报错】Python3.5.1 用 pip 安装numpy时出现 “Unable to find vcvarsall.bat ”的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!