Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows Users: error Microsoft Visual C++ 14.0 is required #11

Closed
mpbrown opened this issue Oct 25, 2019 · 0 comments
Closed

Windows Users: error Microsoft Visual C++ 14.0 is required #11

mpbrown opened this issue Oct 25, 2019 · 0 comments
Labels
Type: Bug Something isn't working

Comments

@mpbrown
Copy link
Member

mpbrown commented Oct 25, 2019

Error

While using pipenv install to install Python packages, you may encounter this error:

error Microsoft Visual C++ 14.0 is required

How to fix

Visual C++ Build Tools

You'll need to

  1. Install Microsoft Visual C++ Build Tools using Visual Studio Installer.

  2. Select the C++ build tools and select components you require:

    • Important components are:
      • MSVC v142 - VS 2019 C++ x64/86 build tools...
      • Windows 10 SDK
      • C++ CMake tools
      • C++/CLI support
    • If you have already installed Build Tools for Visual Studio 2019 then open the application Visual Studio Installer then go to Visual Studio Build Tools 2019 >> Modify >> Installation Details on the right. Select the required components.
  3. Install/Modify these components for Visual Studio Build Tools 2019

  4. Restart your computer.

  5. You may also need to install or upgrade Python setuptools

    • pip install setuptools --upgrade

If for some reason these instructions don't work for your Windows configuration, more solutions can be found at this Stack Overflow post

Why

Source

Windows Python needs Visual C++ libraries installed via the SDK to build code, such as via setuptools.extension.Extension or numpy.distutils.core.Extension. For example, building f2py modules in Windows with Python requires Visual C++ SDK as installed above. On Linux and Mac, the C++ libraries are installed with the compiler.

@mpbrown mpbrown added the Type: Bug Something isn't working label Oct 25, 2019
@mpbrown mpbrown closed this as completed Oct 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant