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/
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