环境安装
在部署虚拟环境时遇到了cffi和其他的一些软件包无法正常安装的问题
报错大概是这样(主要是忘记保存了)
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
Encountered error while generating package metadata.
See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
具体解决办法:
- 更新pip及settools
pip install --upgrade pip
pip install --upgrade setuptools
-
缺少VS C++生成工具,需要去官网下载
网址:https://my.visualstudio.com/Downloads?q=build%20tools
登陆后搜索 C++ build tools
找到Visual C++ Build Tools For Visual Studio 2015 修改下载类型为DVD,下载下来之后解压运行exe文件
以上方法基本可以解决此类问题