distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/

缺少依赖或者说版本不对

  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/e7/a7/4cd50e57cc6f436f1cc3a7e8fa700ff9b8b4d471620629074913e3735fb2/cffi-1.11.5.tar.gz (438 kB)
    ERROR: Command errored out with exit status 1:
     command: ‘c:\users\tangxx\envs\hengzhi\scripts\python.exe‘ -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"‘"‘C:\\Users\\tangxx\\AppData\\Local\\Temp\\pip-install-yrrqx_rs\\cffi\\setup.py‘"‘"‘; __file__=‘"‘"‘C:\\Users\\tangxx\\AppData\\Local\\Temp\\pip-install-yrrqx_rs\\cffi\\setup.py‘"‘"‘;f=getattr(tokenize, ‘"‘"‘open‘"‘"‘, open)(__file__);code=f.read().replace(‘"‘"‘\r\n‘"‘"‘, ‘"‘"‘\n‘"‘"‘);f.close();exec(compile(code, __file__, ‘"‘"‘exec‘"‘"‘))‘ egg_info --egg-base ‘C:\Users\tangxx\AppData\Local\Temp\pip-install-yrrqx_rs\cffi\pip-egg-info‘
         cwd: C:\Users\tangxx\AppData\Local\Temp\pip-install-yrrqx_rs\cffi    Complete output (23 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\tangxx\AppData\Local\Temp\pip-install-yrrqx_rs\cffi\setup.py", line 120, in <module>
        if sys.platform == ‘win32‘ and uses_msvc():
      File "C:\Users\tangxx\AppData\Local\Temp\pip-install-yrrqx_rs\cffi\setup.py", line 98, in uses_msvc
        return config.try_compile(‘#ifndef _MSC_VER\n#error "not MSVC"\n#endif‘)
      File "c:\users\tangxx\appdata\local\programs\python\python38\Lib\distutils\command\config.py", line 225, in try_compile
        self._compile(body, headers, include_dirs, lang)
      File "c:\users\tangxx\appdata\local\programs\python\python38\Lib\distutils\command\config.py", line 132, in _compile
        self.compiler.compile([src], include_dirs=include_dirs)
      File "c:\users\tangxx\appdata\local\programs\python\python38\Lib\distutils\_msvccompiler.py", line 360, in compile
        self.initialize()
      File "c:\users\tangxx\appdata\local\programs\python\python38\Lib\distutils\_msvccompiler.py", line 253, in initialize
        vc_env = _get_vc_env(plat_spec)
      File "c:\users\tangxx\envs\hengzhi\lib\site-packages\setuptools\msvc.py", line 171, in msvc14_get_vc_env
        return EnvironmentInfo(plat_spec, vc_min_ver=14.0).return_env()
      File "c:\users\tangxx\envs\hengzhi\lib\site-packages\setuptools\msvc.py", line 1075, in __init__
        self.si = SystemInfo(self.ri, vc_ver)
      File "c:\users\tangxx\envs\hengzhi\lib\site-packages\setuptools\msvc.py", line 547, in __init__
        vc_ver or self._find_latest_available_vs_ver())
      File "c:\users\tangxx\envs\hengzhi\lib\site-packages\setuptools\msvc.py", line 561, in _find_latest_available_vs_ver
        raise distutils.errors.DistutilsPlatformError(
    distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

解决办法

2、安装其它版本或者默认

搞定

其他解决文档

https://blog.csdn.net/vkingnew/article/details/89857774

https://blog.csdn.net/u010785091/article/details/79485260

https://blog.csdn.net/qq_40247705/article/details/98474884

原文地址:https://www.cnblogs.com/Xingtxx/p/12297471.html

时间: 2024-10-12 04:08:05

distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/的相关文章

win10 64位 python3.6 django1.11 MysqlDB No module named &#39;MySQLdb&#39; 安装MysqlDB报错 Microsoft Visual C++ 14.0 is required

在python3.6中操作数据库,再按python2.7安装MySQLdb进行数据库连接已经不可用了,我使用的是另外一个方法:PyMySQL,安装好之后还是不能直接连接MySQL的,启动项目后报No module named 'MySQLdb' 解决方案: 在项目的__init__()文件中添加如下代码: import pymysql pymysql.install_as_MySQLdb() 这时再次启动项目正常 win10 64位 python3.6 django1.11 MysqlDB No

解决pycharm中安装scrapy提示 Microsoft Visual C++ 14.0 is required问题

安装方法: 出现问题:error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools 上网搜了各种方法都不好使,主要试了以下方法: 解决方法:http://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted下载对应

Scrapy安装错误:Microsoft Visual C++ 14.0 is required...

问题描述 当前环境win7,python_3.6.3,64位. 在windows下,在dos中运行pip install Scrapy报错: building 'twisted.test.raiser' extension error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visu

解决Scrapy安装错误:Microsoft Visual C++ 14.0 is required...

问题描述 当前环境win10,python_3.6.1,64位. 在windows下,在dos中运行pip install Scrapy报错: error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools 解决方案 http://www.lfd.u

python3 pip 安装Scrapy在win10 安装报错error: Microsoft Visual C++ 14.0 is required. Get it with &quot;Microsoft Visual C++ Build Tools&quot;: http://landinghub.visualstudio.com/visual-cpp-build-tools

问题描述 当前环境win10,python_3.6.1,64位. 在windows下,在dos中运行pip install Scrapy报错: building 'twisted.test.raiser' extension error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/vis

Scrapy安装报错 Microsoft Visual C++ 14.0 is required 解决办法

Scrapy安装报错 Microsoft Visual C++ 14.0 is required 解决办法原因:Scrapy需要的组 twisted 需要 C++环境编译. 方法一:根据错误提示去对应的网站下载C++ 14.0  ,然后重新安装 方法二:直接下载对应系统的whl 安装 1.win10,python_3.6.1,64位2.pip install Scrapy报错3.http://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted 下载twiste

python安装pymssql等包时出现microsoft visual c++ 14.0 is required问题无需下载visualcppbuildtools的解决办法

如题,在练习python安装一些包时,出现了microsoft visual c++ 14.0 is required问题.网上有很多资料:一是下载对应的.whl文件,然后pip install安装:二是下载安装一个visualcppbuildtools+full.exe安装程序(其实就是安装VS工具).第一种方法在我的电脑上没有成功,第二种方法看起来就是麻烦不断,而且我电脑本身已经安装了vs2015,安装程序竟然要求我卸载以前的版本,直接忽略! 下面提供一个无需下载VS工具的方法: 1.下载对

安装 error: Microsoft Visual C++ 14.0 is required 解决方案

最近写的项目需要用到Python的第三方库,比如:mmh3, pyshark等等,而直接pip install ... 会报错:error: Microsoft Visual C++ 14.0 is required,然后各种查资料,但是都没有好的解决办法,各种不顶用的方法都试过了,这里只提干货. 参考网址:Microsoft Visual C++ 14.0 is required的解决方案 这里提到为什么要装VC++ 14.0的具体原因:mmh3 安装 error: Microsoft Vis

pycharm添加wordcloud模块时报错:error: Microsoft Visual C++ 14.0 is required. Get it with &quot;Microsoft Visual C++ Build Tools&quot;: http://landinghub.visualstudio.com/visual-cpp-build-tools

windows 7 32bit python3.6.3 32bit pycharm2018社区版 32bit 问题说明: 添加wordcloud模块时报错:error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools 解决方法: 1. 打开http