There list 4 types of python interpreters on the window left side, they are Virtualenv Environment, Conda Environment, System Interpreter, Pipenv Environment.
If you want to install another Python interpreter, you can click the plus button ( + ) at the bottom left corner of the Project Interpreters popup dialog window.You can select it as the project python interpreter. There is a default P圜harm python interpreter in the dialog.Click the Project Interpreter drop-down list on the right panel, then click Show All… item, it will pop up the Project Interpreters dialog window.Then you can see there is no Project Interpreter that has been selected on the right panel. In the popup Preferences window, click Project: Project-Name -> Project Interpreter menu item at the left panel.
How To Install Python Interpreter In P圜harm.
Now you can use the external library package in your Django code and find it in the Project panel -> External Libraries -> Python 3.6 -> site-packages.Ĥ.Please note, you should check the Install to user’s site packages directory(/home/zhaosong/.local) checkbox, otherwise you can not find the library package in Project panel -> External Libraries. Search and select related library package.Click the + icon in the right panel to open the Available Packages window to install the external library.Then click Project: -> Project Interpreter menu item in the left panel to list the current project interpreter and the installed external libraries on the right side.Click P圜harm File -> Settings menu item in the top menu bar to open the project Settings window.Install External Libraries In P圜harm Project On Linux Ubuntu. Now you can import and use the PyMysql library in your Python code edited with P圜harm.ģ.Then you will find the installed PyMysql library in the Python 3.6 -> site-packages folder.In the P圜harm left project panel, select Project view and expand the External Libraries item.After install libraries in P圜harm, you may want to know where the library is installed.Installed Libraries In P圜harm Saved Location. If you want to add external libraries for a new project in P圜harm, you can click File -> Preferences for New Projects menu item to open a popup window, then click Project Interpreter menu item in the left panel, and install libraries in P圜harm project like above.Ģ.When the install libraries in the P圜harm project process complete successfully, you can see the third-party library in the project interpreter package list.Input the library name in the search text box ( for example PyMysql), select the library, and click the Install Package button to install it.Click the + button in the right panel bottom left corner to popup the Available Packages window to install a third-party library.And select the python version that your current python roject is used on the right side Project Interpreter drop-down list. Then click Project -> Project Interpreter menu item in the left panel.Open P圜harm, click P圜harm -> Preferences menu item.This example will demo the P圜harm import library process step by step, it uses the P圜harm macOS version, the P圜harm Windows or Linux version is similar.