SoFunction
Updated on 2024-10-30

Steps to add python libraries to PyCharm

1. Use pip command to download the required libraries in the domestic source

Here's how to use the Tsinghua source, just type the following command in cmd

pip install i /simple package name==version number

2. If there is an error message, Cannot unpack file... This situation, such as the following

ERROR: Cannot unpack file C:\Users\wpp\AppData\Local\Temp\pip-unpack-rqlph24p\simple (downloaded from C:\Users\wpp\AppData\Local\Temp\pip-req-build-7a0cap2f, content-type: text/html; charset=utf-8); cannot detect archive format ERROR: Cannot determine archive format of C:\Users\wpp\AppData\Local\Temp\pip-req-build-7a0cap2f

3. Then you can use the following cmd command

pip install -i /simple --trusted-host  package name

4. After the download is complete, you can enter in the cmd

pip list

to see what libraries you already have

5. Use in cmd

where python

Get the installation path of python C:\Users\m\AppData\Local\Programs\Python\Python38-32\

6. Under C:\Users\m\AppData\Local\Programs\Python\Python38-32\, find the site-package folder, and in it, find your installed libraries folder, there are two of them, copy them all.

7. Copy it to the following folder in Pycharm

在这里插入图片描述

After that, you can use it happily

To this article on the PyCharm add python library method steps to this article, more related to PyCharm add python library content, please search for my previous articles or continue to browse the following related articles I hope you will support me more in the future!