程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

Python solves the problem that Microsoft Visual C++14.0 is required

編輯:Python

Blog Background

pip install meshpy

error: Microsoft Visual C++ 14.0 or greater is required. Get it with “Microsoft C++ Build Tools”: https://visualstudio.microsoft.com/visual-cpp-build-tools/

Solution

There are many articles online recommending the use of visualcppbuildtools_full.exe for installation.However, the following problems will be encountered: the installation package is displayed as missing or damaged.

The first reaction of most people is that the domestic network is not very good. Some people say that they can use various proxy methods to solve it, and they still can't solve it after a long time. In fact, this is not the case.

See https://docs.microsoft.com/en-us/answers/questions/440704/a-setup-package-is-either-missing-or-damaged-error.htmlshows:

Welcome to Microsoft Q&A!

Please have a try with visual studio 2015 enterprise with update 3 ISO image. Download the DVD file in this page, it includes most of packages from the downloading process, but it still needs internet connection during the installation. On April 26, 2021, Visual Studio 2015 and older web installer files were removed from the Microsoft Download Center.p>

We look forward to hearing from you.

Sincerely,
Peng

According to On April 26, 2021, Visual Studio 2015 and older webThe installer files were removed from the Microsoft Download Center showed that these products can be installed from ISO images available at Downloads - Visual StudioSubscriptions PortalDownload the ISO installation package Visual C++ Build Tools for Visual Studio 2015 with Update 3.

Double-click the installation to complete the installation.

You can then use pip install to install third-party packages that need to be compiled.

Although this method solves the problem, it doesn't feel like the most standard solution.

Another solution: use the latest version of VS to install the most core compilation components.

Installing MSBuild Tools and MSVC and the Windows 10 SDK is my personal feeling for a minimal installation.

After the installation is complete, you can use pip install to install the third-party packages that need to be compiled.

Extended: Use wheel to make the whl package and push it to the pypi source, so that you can understand the fundamentals.

Appendix: Silent Install Referencehttps://docs.microsoft.com/en-us/answers/questions/192162/visual-studio-build-tools-silent-install.html


  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved