

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 installing external libraries in P圜harm, you may want to know where the library is installed.Installed P圜harm External Libraries 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 installing libraries in the P圜harm project process are completed 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 project is using 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, and the P圜harm Windows or Linux version is similar.But how to install and import libraries in P圜harm? This article will tell you how to add external libraries to the P圜harm project step by step, it is different from adding external libraries in eclipse PyDev. ) into the Python project path, so that P圜harm can find the library files when coding and executing source code. When I use P圜harm to develop a Python example, I need to import a library ( PyMySQL: A MySQL database Python driver library.
