Install the pandas package using PyCharm software.
1. Open PyCharm
2. Click "Files" → "Settings..." in the upper right corner.
3, the "Settings" window pops up, select "Project: Projects" → "Project Interpreter" Click the "+" (plus sign) on the right.
4, enter the search interface for third-party libraries (Available Packages window), enter the library or module you want to install in the search box (here is pandas), select "pandas" → click the bottom left of the "Install Packages" at the bottom left.
Until the installation is complete, the library display font color will turn blue and the installed libraries will be listed in the previous screen.
CMD command line installation of pandas module
Open a command prompt and enter the commandpip install pandas
C:\Users\izheng> pip install pandas Requirement already satisfied: pandas in d:\program files (x86)\anaconda3\lib\site-packages Requirement already satisfied: python-dateutil>=2 in d:\program files (x86)\anaconda3\lib\site-packages (from pandas) Requirement already satisfied: pytz>=2011k in d:\program files (x86)\anaconda3\lib\site-packages (from pandas) Requirement already satisfied: numpy>=1.9.0 in d:\program files (x86)\anaconda3\lib\site-packages (from pandas) Requirement already satisfied: six>=1.5 in d:\program files (x86)\anaconda3\lib\site-packages (from python-dateutil>=2->pandas) You are using pip version 9.0.1, however version 19.3.1 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command.
As shown above, we learned that the pip version is too old. So according to the prompt, we need to update the pip version:
Upgrade pip:
C:\Users\izheng> python -m pip install --upgrade pip Requirement already up-to-date: pip in e:\program files\python3.6.5\lib\site-packages (19.3.1)
From this we learn that the latest version of pip is installed.
Let's check the pip version:
C:\Users\izheng> pip -V pip 9.0.1 from D:\Program Files (x86)\Anaconda3\lib\site-packages (python 3.6) C:\Users\izheng> pip3 -V pip 19.3.1 from e:\program files\python3.6.5\lib\site-packages\pip (python 3.6)
Turns out: pip-9.0.1 is for Anaconda, and python 3.6 uses the latest version of pip3.
So, here we have no problem installing pandas with the pip3 command.
Note: When installing a Package using the pip command, check that the pip version is correct. Whether you are using the pip command or the pip3 command.
To this realization of this article on the installation of PyCharm Package (pandas as an example) of the article is introduced to this, more related to the installation of PyCharm Package content, please search for my previous articles or continue to browse the following related articles I hope that you will support me in the future more!