Pycharm does not display installable packages on the Available Packages interface using the Conda environment

1. Problem description

As shown in Figure 1, the interface does not display the installable package, and the use environment is the Conda environment, and the python package cannot be installed through the graphical interface.

As shown in Figure 2, the installed python package can be displayed

Two, the solution

  1. Guess it is a Conda environment problem, because the virtual environment created by local Python can display the list of installable packages.

  1. It may also be other reasons, such as pycharm itself, but I feel that the Conda environment problem is more likely

  1. try to solve

(1) Open Anaconda Navigator (Anaconda)

(2) Check the environment

(3) Select the problematic environment

(4) Select " Open Terminal " to open the cmd interface

(5) Configure the pipeline

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/

(6) Refresh the interface

3. Problem analysis

  1. The problem is solved through the above operations. It can be known that Conda did not configure the mirror address, that is, the default mirror address is not enough to connect.

  1. The solution can be processed directly through pycharm, as follows:

Guess you like

Origin blog.csdn.net/weixin_43431593/article/details/129007053