Third-party library installation in Pycharm "error: Microsoft Visual C++ 14.0 is required..." problem solving

When pycharm installed a third-party library, I encountered a problem error: Microsoft Visual C++ 14.0 is required... such an error

As a solution, you can choose to install C++ 14.0, but you can also directly download the .whl file of the corresponding library.

Download link: https://www.lfd.uci.edu/~gohlke/pythonlibs/

Search inside and download the corresponding version.

The whl format is essentially a compressed package that contains py files and compiled pyd files. It makes it possible to choose a suitable python environment for installation without a compiling environment.

If you want to install bottleneck here

python 3.5   win32

download

Download to the specified path, then open the terminal in pycharm

pip install specify path/filename

The installation is successful, you can see it in the pycharm library

Some veterans may have installed more than one python version. Here, it should be noted that there is a default location path for pip installation. If you want to install in the current version, you should pay attention to whether the location is correct:

pip show pip

If the current default location is different from the version of the python compiler used, you need to modify the location of this location,

modification method

Find the installation path of the python version used, and modify the path in the system environment variable of the computer

Add python installation path \Scripts\

and top

After saving, restart pycharm to check.

Guess you like

Origin blog.csdn.net/weixin_38067911/article/details/84147526