Python library download location: By default, the library installed by pip is located at Linux/macOS: ~/.local/lib/python3.x/site-packages, Windows: %APPDATA%\Local\Packages\PythonSoftwareFoundation .Python.3.x_qbz5n2kfra8p0\LocalCache\local-packages\Python3x. In addition, the library will be stored as modules and files in a folder named after the library, and contains a special __init__.py file for identification.
Python library download folder
When you install Python libraries using pip, they are downloaded and placed in a specific folder. By default, this folder is located at:
Folder Structure
Downloaded libraries will be placed in a folder with the following structure:
Change download location
If you wish to place the downloaded library in a different folder, you can use pip install --target
option specifies the destination folder. For example:
<code>pip install --target=/path/to/my/custom/folder <库名称></code>
The above is the detailed content of In which folder is the python download library placed?. For more information, please follow other related articles on the PHP Chinese website!