I'm having trouble installing the Python Pandas library on my Mac OSX computer.
I type the following in Terminal:
$ sudo easy_install pandas
But then I get the following:
Searching for pandas Reading http://pypi.python.org/simple/pandas/ Reading http://pandas.pydata.org Reading http://pandas.sourceforge.net Best match: pandas 0.9.0 Downloading http://pypi.python.org/packages/source/p/pandas/pandas- 0.9.0.zip#md5=04b1d8e11cc0fc30ae777499d89003ec Processing pandas-0.9.0.zip Writing /tmp/easy_install-ixjbQO/pandas-0.9.0/setup.cfg Running pandas-0.9.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-ixjbQO/pandas- 0.9.0/egg-dist-tmp-EGREoT warning: no files found matching 'setupegg.py' no previously-included directories found matching 'doc/build' warning: no previously-included files matching '*.so' found anywhere in distribution warning: no previously-included files matching '*.pyd' found anywhere in distribution warning: no previously-included files matching '*.pyc' found anywhere in distribution warning: no previously-included files matching '.git*' found anywhere in distribution warning: no previously-included files matching '.DS_Store' found anywhere in distribution warning: no previously-included files matching '*.png' found anywhere in distribution unable to execute gcc: No such file or directory error: Setup script exited with error: command 'gcc' failed with exit status 1
I do have Xcode and gcc installed, however, gcc is only found when I type:
$ gcc -bash: gcc: command not found $ gcc-4.2 i686-apple-darwin11-gcc-4.2.1: no input files
What should I do?
Enter the command “pip install pandas” on the terminal. This should launch the pip installer. The required files will be downloaded, and Pandas will be ready to run on your computer. After the installation is complete, you will be able to use Pandas in your Python programs.
To check your pandas version with pip in your Windows command line, Powershell, macOS terminal, or Linux shell, run pip show pandas . The second line of the output provides your pandas version.
Install pip
.
Then install pandas
with pip
:
pip install pandas
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With