python about paths to libraries and packages

In the python environment,
regarding the storage location of downloaded packages and libraries,
for pycharm, a new pycharmproject folder will be created locally.
The venv will contain two folders.
The site-packages under lib are generally used to store py. Packages or libraries
are usually python.exe files under Scripts.
This is generally automatic configuration
. Of course, you can also manually select the corresponding configuration path.

So if you use vscode and configure your own python, the .exe file is in the installation directory.
If you download the relevant library, you need to use the pip command to download it in the terminal.
The downloaded path is also site-packages in the lib directory in the installation directory. folder

Guess you like

Origin blog.csdn.net/m0_51553670/article/details/131975399