码迷,mamicode.com
首页 > 编程语言 > 详细

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

时间:2020-02-12 00:26:37      阅读:216      评论:0      收藏:0      [点我收藏+]

标签:href   let   min   using   tar   import   ring   command   microsoft   

缺少依赖或者说版本不对

  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

 

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

标签:href   let   min   using   tar   import   ring   command   microsoft   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!