Get the App
SLTechnology News&Howtos  ›  Development  › 

How to solve the problem of Failed to install package when pycharm downloads the library

Shulou Source: shulou.com Published: 2022-06-03 18:58:02 11月12日 Update

This article introduces the relevant knowledge of "how to solve the problem of Failed to install package when pycharm downloads the library". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

First, the current situation to see if you are also in this situation:

Normally we download the pygad package by clicking Install package. But when we clicked on the download, there was an unexpected error, as shown below:

Let's click Details to view the details, as shown below:

And I installed the numpy library with pip install, looked at it with pip list, and found that the library already exists:

But there is no numpy library in the default path.

1. Solution: since the matter has come to this, we do not have much bb. We will go directly to the solution:

Click on the show all in the project interpreter in setting and the following interface pops up:

Click on this icon to get the following picture:

Then click the plus sign to add a path:

The path we added ourselves is in the same place as the setuptools-40.8.0.py3.7.egg, so add it according to the location of your computer's pycharm.

And then... Try install package again to see:

This time it has been downloading...

It worked!

Check again at this time, the library we downloaded with pip3 install numpy has also appeared!

So far, the problem has been solved smoothly.

This is the end of the content of "how to solve the problem of Failed to install package when pycharm downloads the library". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Tags: Problem path timing content situation method more knowledge so far practical successful unexpected successful and then the following figure location plus sign just dilemma icon Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Apple vpn Redmi Shulou Information