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 from pip on MacOSX #1270
Comments
Also, if I do |
It's already included:
I also created a venv and installed without issue, so I'm confused:
|
Had the same issue, in fact the problem comes from pip version 19.x and the pyproject.toml file in the cartopy tarball. When the TOML file is available, pip 19.x activates PEP517 (https://www.python.org/dev/peps/pep-0517/) and its implementation currently has an issue: it does not include the current working directory in the Python path during the installation, so all the packages whose setup.py import their own/embedded modules are broken. This explains why pip cannot find the Since the TOML file has been removed from the cartopy repository in a recent commit, installing from github does not trigger PEP517 and everything works fine. There is an ongoing discussion on the pip repository about this: pypa/pip#6163 (cartopy is also mentioned there btw, see pypa/pip#6163 (comment)) The current workaround is to call |
Thanks for the information @oceandatalab. I don't think there is anything more to be done in the cartopy codebase, but happy to re-open if there is. Cheers, |
PEP517 currently breaks pip 19.x (SciTools/cartopy#1270 (comment)) so we need to use pip 18.x until that is fixed
I am having the same issue. I am trying to install on macOS |
Hi @johnbarrett, did you try pip install git+https://github.com/SciTools/cartopy@master. This worked after I installed Cython. HTH |
Hi, This is on macos 10.14.6, conda 4.8.3. |
I was running into that same thing fairly frequently. I put this in my # Adding additional flags for building C++ stuff
# https://github.com/matplotlib/matplotlib/issues/13609
# https://github.com/huggingface/neuralcoref/issues/97#issuecomment-436638466
export CFLAGS=-stdlib=libc++
# MACOSX_DEPLOYMENT for Python
MACOSX_DEPLOYMENT_TARGET=10.14 |
You should be able to get away with just |
Someone should re-open this issue |
Description
I am unable to install cartopy 0.17.0 from pypi, but have no problem installing directly from the git using
pip install git+https://github.com/SciTools/cartopy@master
. Seems like some kind of issue with the version on pypi.Code to reproduce
on MacOS X
Traceback
I also tried installing versioneer first and get the same error as above:
OSX with Python 3.7.1
Operating system
Mac OSX Mojave, Python 3.7.1
Cartopy version
0.17.0
conda list
Not using conda.
pip list
The text was updated successfully, but these errors were encountered: