There are two ways to view installed libraries in PyCharm: through the "Settings" dialog box, view in the "Installed Packages" section. Through the "Python Interpreter" console, use the import sys and print(sys.path) commands to print the path list and view it.
View installed libraries in PyCharm
Viewing installed libraries in PyCharm is very simple, it Two main methods are provided:
1. Open "PyCharm" through the "Settings" dialog box
- and go to "File" > "Settings" (Windows/Linux) or "PyCharm" > "Preferences" (macOS).
- In the left menu, expand "Projects" > "Python Interpreter".
- In the "Installed Packages" section, you will see all installed libraries and their version numbers.
2. Through the "Python Interpreter" console
- Open the "Python Interpreter" console in PyCharm (View > Tool Windows > Python Console).
- Enter the following command in the console and press Enter:
<code>import sys
print(sys.path)</code>
Copy after login
- This will print a list of all installed library paths.
Note:
- The path to the installed library may vary depending on the operating system and PyCharm version you are using.
- If you have libraries installed in a specific project, they will not appear in the above location, but will appear in the project's "site-packages" directory.
The above is the detailed content of Where to view installed libraries in pycharm. For more information, please follow other related articles on the PHP Chinese website!