Home  >  Article  >  Backend Development  >  How to install pandas in python

How to install pandas in python

(*-*)浩
(*-*)浩Original
2019-05-30 13:27:2236731browse

pandas is a tool based on NumPy, which was created to solve data analysis tasks.

How to install pandas in python

Under normal circumstances, you only need to

Open cmd and enter in cmd cd C:\Users\dell\ AppData\Local\Programs\Python\Python36-32\Scripts Enter the Scripts folder (change the path according to the location of your Python installation)

Enter the command pip install pandas

But if something goes wrong, there is a solution.

After trying all kinds of Baidu methods to no avail, I later discovered that it requires the installation of many dependent packages. Just asking if you are angry~

The next step is the real operation stage! Let’s get started~

Enter the python module package website

After opening it, search for pandas, and you will find many versions of modules with the suffix .whl. What I downloaded here is pandas‑0.22.0‑cp34‑cp34m‑win_amd64.whl, which should be version 0.22.0 compatible with the 64-bit version of python34.

After downloading, change the suffix to .zip and unzip it. Place the decompressed file in the python installation directory->Lib->site-packages.

For example: My python installation directory is E:\python3.4.3, so the extracted files are placed in

E:\python3.4.3\Lib\ under site-packages.

Try to run the code with import pandas. Nani? Something went wrong again? !

Of course~ It’s not that easy. It’s easy. I also write blog records? Haha, just kidding!

[Push glasses] If I guess correctly, there will usually be a message indicating that numpy, dateutil, pytz, etc. are missing.

In short, what is missing, what to download. If there is something wrong, please click here, so easy~

The downloaded file is decompressed according to the above method, and also placed in the python installation directory->Lib->site-packages. There are no errors until the end, that is, pandas is successfully installed!

The above is the detailed content of How to install pandas in python. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn