Home >Backend Development >Python Tutorial >How to install modules in pycharm
There are two types of pycharm installation modules: "direct method" and "indirect method": 1. Direct method, open pycharm "file-settings-Project:xxx-Project interpeter"; 2. Indirect method, in python Configure Tsinghua Source with pip, then press win R on the computer desktop and type cmd, then type the corresponding code to install the third-party module and add the parameters.
#The operating system of this tutorial: Windows 10 system, PyCharm 2023.3 version, Dell G3 computer.
There are two ways to install modules in pycharm:
1. Direct method
Open pycharm
file----settings ----Project:xxx----Project interpeter
2. Indirect method
Configuring Tsinghua Source with pip in python
Create a pip directory directly in the user directory, such as: C:\Users\xx\pip. Create a new text document on the desktop, type the following content, save it in INI format, the file is called PIP, as follows
[global] index-url = https://pypi.tuna.tsinghua.edu.cn/simple# Then copy it from the left to the corresponding folder.
#Please note: You must first create the pip folder in your personal user folder, and then create the pip.ini file. Do not directly place the pip.ini file in C:\ Users\xx\Under
Press win R on the computer desktop and type cmd, then type the corresponding code for third-party module installation and add the parameters
-i https://pypi.tuna.tsinghua.edu.cn/simple
The above is the detailed content of How to install modules in pycharm. For more information, please follow other related articles on the PHP Chinese website!