How To Install Python Library ( such as Pandas ) In PyCharm, PyDev Eclipse

This article will tell you how to install the python pandas library in PyCharm on macOS, Windows.

1. How To Install Python Library ( such as Pandas ) In PyCharm.

1.1 On macOS.

  1. Open the PyCharm editor.
  2. Click the PyCharm —> Preferences menu item on the PyCharm IDE top left corner.
  3. In the Preferences pop-up window, click to expand the menu item Project: PythonPyCharmProject —> Python Interpreter on the left side.
  4. Select a python interpreter from the Python Interpreter dropdown list on the right panel.
  5. If there are no python interpreters in the above dropdown list, you can refer to the article How To Install Python Interpreter In PyCharm to learn.
  6. After you select a python interpreter, it will list all the python modules that are installed on the selected Python interpreter.
  7. Click the plus icon ( + ) on the bottom left corner of the Preferences window, then it will open the Available Packages window.
  8. Search the keyword pandas in the search box.
  9. Select the python module pandas in the list below the search box, then click the Install Package button on the bottom left corner of the window to install it.

1.2 On Windows.

  1. It is similar to macOS, but on Windows, you should click File —> Settings… menu item to open the Settings… dialog, this dialog is the same as the Preferences dialog on macOS.

2. How To Install Python Library ( such as Pandas ) In Eclipse PyDev Project.

2.1 On macOS.

  1. Open the PyDev Eclipse IDE.
  2. Click the Eclipse —> Preferences menu item on the Eclipse IDE top left corner.
  3. Click to expand the PyDev —> Interpreters —> Python Interpreter menu item on the popup Preferences window left side.
  4. On the Preferences window right panel, select an installed Python interpreter from the Python Interpreters list.
  5. Click the Packages tab under the Python Interpreters list.
  6. Click the Manage with pip button on the Packages tab right side to open the Manage pip window.
  7. Input the package name such as pandas after the install command in the Command to execute text box.
  8. Click the Run button to execute the install pandas command.
  9. Then you can see the python pandas module’s installation log in the text area below the Run button as below.
    Collecting pandas
      Downloading pandas-1.3.3-cp37-cp37m-macosx_10_9_x86_64.whl (11.3 MB)
    Requirement already satisfied: python-dateutil>=2.7.3 in /Users/songzhao/opt/anaconda3/envs/env_ipython_example/lib/python3.7/site-packages (from pandas) (2.8.1)
    Collecting numpy>=1.17.3
      Downloading numpy-1.21.2-cp37-cp37m-macosx_10_9_x86_64.whl (16.9 MB)
    Requirement already satisfied: pytz>=2017.3 in /Users/songzhao/opt/anaconda3/envs/env_ipython_example/lib/python3.7/site-packages (from pandas) (2020.1)
    Requirement already satisfied: six>=1.5 in /Users/songzhao/opt/anaconda3/envs/env_ipython_example/lib/python3.7/site-packages (from python-dateutil>=2.7.3->pandas) (1.15.0)
    Installing collected packages: numpy, pandas
    Successfully installed numpy-1.21.2 pandas-1.3.3
  10. When you see the above python module install success message, you can find the python library in the Python Interpreter‘s Packages list.

2.2 On Windows.

  1. Open Eclipse IDE.
  2. Click the Window —> Preferences menu item on the top menu bar.
  3. The following steps are similar to the steps in section 2.1 On macOS.

2.3 References.

  1. You can read the article How To Add Library In Python Eclipse Project to learn more about how to add python libraries in Eclipse PyDevproject.

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.