-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
can't install pandas use pip on mac #3074
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
what does In [2]: import numpy
In [3]: numpy.__version__ produce on your box? |
This might be #2740. does If you don't want to run git master, manually install numpy and correction: |
@y-p
|
@y-p
|
@y-p
|
@y-p
|
the pip/git fail is due to me quoting the wrong url, it should be:
but cloning and running should be equiv. what does
give you? |
my cython version is 0.16
|
What OSX version are you on? from Cython.Distutils import build_ext as _build_ext from setuptools import setup, Command check version of setuptools if installed: command line:
if you get no errors, ensure the c files are available:
|
some error show after my clone pandas an run setup.py install manual
|
my cython can be import from ipython
and i have set the dir to
|
are you inside a virtualenv? did you try running using sudo? That warning message should only happen if the cython check in setup.py
and add the following directly below.
Then run "sudo python setup.py develop", does it report False or True? |
yes i run use sudo
|
good. reset to master. try:
from Cython.Distutils import build_ext as _build_ext
# from Cython.Distutils import Extension # to get pyrex debugging symbols
cython = True
except ImportError:
cython = False by from Cython.Distutils import build_ext as _build_ext run "setup.py develop" again. you should get an ? |
ok i add py lib path to sys.path
it work ok Thank you very much |
was this something in your particular setup or do all macs installations have this problem? edit: for future reference, I encountered similar behaviour when inside a venv, with |
On Mac, within a venv, I've had to run
Not sure how that works with the above solution, but that did the trick for me. Versions: cython-0.24.1, pandas-0.19.0. (I was upgrading from pandas-0.16.2) |
@jdejoode Normally, you shouldn't need cython, as there are binary wheels available for mac (or do you have 32bit?) |
It is not 32 bit. The binary wheel did not install because of the cython error. Do note that I have a boatload of other packages installed in this venv. |
@jdejoode Can you show the output of |
I deleted some information, but the basic calls are still here:
|
Then it seems it is, for some reason, not downloading a wheel, but the source archive (can you see that in the first output of pip install? Normally you see there which file is downloaded from PyPI). |
I am not sure I understand, @jorisvandenbossche. I still have the entire traceback (window is still open). Do you need specific information? |
u might have an old version of pip |
pip 7.1.2 |
@jdejoode If I use pip to install, I see something like:
So where you can see it is downloading a wheel (notice the |
I simply get
I have a running version of anaconda on my machine. Would that influence it? |
So it is downloading the sources, not the wheel. |
[edit:style] I can confirm that after upgrading pip, I no longer get the error. Pip uses the following wheel:
|
OK, good to hear! |
maybe a higher pip version could be included in the dependencies of pandas? or is that overkill? |
pip is not a dependency of pandas (you can install pandas in other ways without pip). But newer versions of pip normally warn you if you don't have the latest version |
ok. might have silenced that. unsubscribing to the issue now. thanks for all your work. |
I can just confirm that I also had the issue in a Docker container... upgrading with an old version of pip will run into the cython dependency error. |
the error log is
Searching for pandas
Reading http://pypi.python.org/simple/pandas/
Reading http://pandas.pydata.org
Reading http://pandas.sourceforge.net
Download error: [Errno 60] Operation timed out -- Some packages may not be found!
Best match: pandas 0.10.1
Downloading http://pypi.python.org/packages/source/p/pandas/pandas-0.10.1.zip#md5=b9127d9695aa501e3696a608427622ca
Processing pandas-0.10.1.zip
Running pandas-0.10.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-Oiy1Kb/pandas-0.10.1/egg-dist-tmp-Vl3z2X
error: Setup script exited with pandas requires NumPy >= 1.6.1 due to datetime64 dependency
haibos-MacBook-Air:tyrannosaurus timger$ sudo pip install pandas
Password:
Downloading/unpacking pandas
Downloading pandas-0.10.1.zip (2.8Mb): 2.8Mb downloaded
Running setup.py egg_info for package pandas
pandas requires NumPy >= 1.6.1 due to datetime64 dependency
Complete output from command python setup.py egg_info:
pandas requires NumPy >= 1.6.1 due to datetime64 dependency
Command python setup.py egg_info failed with error code 1 in /Users/timger/bitbucket/tyrannosaurus/build/pandas
Storing complete log in /Users/timger/Library/Logs/pip.log
The text was updated successfully, but these errors were encountered: