Installed modules can be viewed in PyCharm by clicking "File" > "Settings" > "Project Interpreter" > "Packages" to view installed third-party modules. Right-click a specific module and select Properties to view module details. Press "Ctrl" "Alt" "S" and select "Project Interpreter" > "Show path" to view the system-wide installed modules.
How to view installed modules in PyCharm
View installed modules directly
- Open PyCharm.
- Click "File" > "Settings" in the menu bar.
- In the left panel, select "Project: [project name]" > "Project Interpreter".
- In the "Packages" tab, you can see all the third-party modules that have been installed.
View details for a specific module
- In the "Packages" tab, find the module you want to view.
- Right-click the module and select "Properties".
- In the "Properties" dialog, you can view the module's version, documentation, dependencies, and other details.
View system-wide installed modules
- In PyCharm, press "Ctrl" "Alt" "S" to open the "Settings" dialog frame.
- In the "Project: [Project Name]" tab, select "Python Interpreter".
- In the "Interpreter" field, click the gear icon on the right.
- In the "Project Interpreter" dialog box, select the checkbox next to "Show path for the selected interpreter".
- Click "OK".
- In the "Settings" dialog box, click "OK".
- Now, at the bottom of the PyCharm window, you will see a new line showing the full path to the Python interpreter.
-
Open a terminal and navigate to this directory, for example:
<code>cd ~/.pyenv/versions/3.10.4/lib/python3.10/site-packages</code>
Copy after login
- In this directory you can see all installed system-wide modules.
The above is the detailed content of How to check installed modules in pycharm. For more information, please follow other related articles on the PHP Chinese website!