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
Unable to install cartopy using pip #535
Comments
The code which generates this error is setup at https://github.com/SciTools/cartopy/blob/master/setup.py#L169. Though I've never tried it, it may be possible to pass the LIBDIR and INCLUDEDIR values at setup.py time:
If that fails, perhaps http://stackoverflow.com/questions/18783390/python-pip-specify-a-library-directory-and-an-include-directory will be helpful. As a heads up, the python3 support is still a little under tested - there is an outstanding PR to get py3 travis-ci testing which will give us much more confidence about maintaining compatibility with py2 and py3 simultaneously. |
Sounds interesting but I don't know how to pass arguments to the |
@drorata Do you have a |
@QuLogic I have this binary installed ( |
I've opened a PR (#577) which should automatically determine paths using the If you are unable to do that, that's fine. I don't know if @pelson's suggestion would work otherwise. |
BTW, you don't need to (explicitly) clone the repo to test; you can install directly via |
I just tried your suggestion, but it did not work:
|
You need to post the beginning of the error, not the end. |
@drorata ping? |
@QuLogic sorry --- I'm very busy. I'll post the complete error as soon as possible. |
Found what looks like a solution. A ``.pydistutils.cfg` file may be an option. See http://stackoverflow.com/questions/15725869/pass-build-ext-options-to-pip-install. |
I was getting the same error. I resolved it by upgrading goes from 3.5.0 to 3.6.1. On my OSX machine, I did: |
This way solved the problem in MacOS 12.6 |
[Cross posting from http://stackoverflow.com/questions/28307950/install-cratopy-using-pip-on-mac-os-and-macports]
I am trying to install
cartopy
on OS X 10.10 (Yosemite). My python is installed using macports and when I run:I get the following error:
Note that I installed the dependencies as noted here and
geos_c.h
can be found in/opt/local/include
. It seems likepip
fails to find this dependency in themacports
tree.Did anyone experienced this kind of problem? How can I fix it?
The text was updated successfully, but these errors were encountered: