For developers, they often pip install the packages they need. Most of the packages can be installed basically, but they will always encounter the problem of not being able to install the packages. The first step of pre-study learning motivation is killed by the installation package. . One of the most troubled is this question: error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual……
I tried a lot of methods on the Internet, but still did not fundamentally solve the problem. Generally, for this kind of package that cannot be installed by pip, one is to go to the Python installation package complete (https://www.lfd.uci.edu/~gohlke/pythonlibs/) to download the installation package with the corresponding suffix of .whl. Install.
How to install the installation package with the suffix .whl: Download the corresponding installation package with the suffix .whl and place it in the folder you specify, enter cmd,
pip install Scrapy-1.5.0-py2.py3-none-any.whl
The other is that if the package with the suffix .whl is not found, or the .whl package is not successfully installed, it is generally installed on the operating system. It is very convenient to install these packages on the Linux system with pip, and no error will be reported.
To solve this problem fundamentally, you can refer to the following.
When running the code first, it says that the XXX package is not installed. If you encounter this problem, go to cmd, and the pip install installation error is reported:
Double-click visualcppbuildtools_full.exe, select the default, click install, and wait for about 10 minutes to complete the installation.
Finally, the installation is complete, check the control panel-program-uninstall program under an additional file Microsoft visual c++ Build Tools:
That is, the installation is successful.
As a result, go to pip in cmd to install the packages you need.
0 comments:
Post a Comment