Python - pip install pandas not working

I am trying to install pandas via pip install pandas , but when I do this, I get an error:

Failed to execute python setup.py egg_info command with error code 1 in C: \ Users [username] \ AppData \ Local \ Temp \ pip_build_ [username] \ pandas

I followed the answer here and installed ez_setup.py without incident, but I still get an error while doing pip install pandas .

Thanks for any help, if I can provide more information, please let me know.

+7
python pandas pip
source share
3 answers

The easiest way to install pandas and its Windows dependencies is to download the appropriate packages from the Christoph Gohlke Python Extension Packages for Windows repository. Here you will find the files for pandas here , as well as a list of other necessary dependencies.

+3
source share

On Linux (Debian / Ubuntu versions), when NOT installed inside a virtual environment, but on the main system, I find it best to use the Synaptic package manager (because even the -user switch seems to fail when trying to install pandas without sudo ) Find pandas inside Synaptic PM. There are varieties for python 2 and 3.

enter image description here

However, on linux, I usually found the cleanest, easiest, and most general secure approach for creating virtual environments, and then used pip install <package name> inside the virtual environment. I believe this would be best on Windows.

0
source share

I installed the Pandas package after the following procedure described below: Disclaimer: - I do not consider myself a computer expert, so follow the instructions at your own risk.
- My procedure worked on my Windows computer - My Windows computer has python 2.7 installed with python.org - My python GUI is IDLE - I don’t remember pip installation, maybe it is installed during python 2.7 installation from python.org (not sure) - The directory where my pip.exe is located is under C: \ Python27 \ Scripts

Procedure:

  • Open a command window for the directory in which you have the pip.exe file (in my case, these are scripts). In my case, the prompt looks like this: C: \ Python27 \ Scripts>
  • At the command prompt, enter pandas. In my case, it looks like this: C: \ Python27 \ Scripts> pip install pandas
  • Press the ENTER key. You should see a message: "Collecting pandas" is displayed in the command window.
  • As soon as the system finishes collecting pandas, you will see the message "Successfully installed pandas -0.22.0" or similar, depending on the version you have built.

The figure shows steps 1 through 4, as shown in my computer window. collect_pandas

0
source share

All Articles