The location of the package installed by Anaconda

foreword

Many times we just execute conda install xxxto install the package, but we don't know where the package is installed. And many times when using conda or pip to install, there will be errors, and the installation may not be successful or the installation may fail. At this time, we need to check the specific installation location to check the error, but if we do not know the location of the package, we will not know Overwhelmed.

The location of the installation package

(1) First find the location of the installed Anaconda.
For example, my installation location is as follows:

D:\software\anaconda3

insert image description here
(2) Enter the envs directory and find the virtual environment we need.
insert image description here
insert image description here
(3) After entering the virtual environment, find Lib.
insert image description here
(4) Find site-packages, enter the installation location of the package.
insert image description here
As shown below:
insert image description here

full path

For example, my path is as follows:

D:\software\anaconda3\envs\aispace\Lib\site-packages

In fact it is:

anaconda安装的位置\envs\虚拟环境\Lib\site-packages

Note that the above is the path of the virtual environment, and the path of the base environment is as follows:

anaconda安装的位置\Lib\site-packages

Guess you like

Origin blog.csdn.net/aruewds/article/details/125870285