OStack程序员社区-中国程序员成长平台

标题: python 3.x - Pip error even Microsoft Visual C++ 14.0 is installed [打印本页]

作者: 菜鸟教程小白    时间: 2022-4-23 21:05
标题: python 3.x - Pip error even Microsoft Visual C++ 14.0 is installed

I read all of the questions and answers which are related or asked before and I still didn't find an appropriate answer to my problem.

I am using python 3.6.5 and pip(and setuptools) is up to date. I am installed Microsoft Visual C++ Redistributable for Visual Studio 2017 from here: https://www.visualstudio.com/downloads/#build-tools-for-visual-studio-2017

when using pip install, I still get the error:

Microsoft Visual C++ is required

PS: I want to install airflow



Best Answer-推荐答案


This problem was solved on a computer having Visual Studio Community 2017 v15.5.2 and the Visual Studio Installer v1.16.1247.518 installed.

The steps used are as follows:

  1. Start the Visual Studio Installer
  2. Visual Studio Installer showed a Installed section that stated that Visual Studio Community 2017. In that section was a drop-down titled More. The drop- down option Modify was selected.
  3. Visual Studio Installer then showed "tabs" titled Workloads, Individual components, Language packs and Installed locations. The tab Individual components was selected.
  4. Scrolling down the list of Individual components, there was a section titled Compilers, build tools, and runtimes. Under that section there was a VC++ 2015.3 v140 toolset for desktop (x86,x64) option that was unchecked. The option was then checked.
  5. The Modify button located at the lower right part of the Visual Studio Installer was pushed.
  6. After waiting an unreasonably long amount of time, the installer finished modifying the installation of Visual Studio Community 2017.

As always, your mileage may differ.






欢迎光临 OStack程序员社区-中国程序员成长平台 (http://ostack.cn/) Powered by Discuz! X3.4