basemap: basemap is not found on pip for python3.4?

Hi:

I’ve recently tried to install basemap using pip on my fedora 23 in py3.4 virtual environment, but:

(py3.4) huziy at thinkpad in ~/Python/Projects/PyNotebooks on master*
$ pip install basemap
Collecting basemap
  Could not find a version that satisfies the requirement basemap (from versions: )
No matching distribution found for basemap
(py3.4) huziy at thinkpad in ~/Python/Projects/PyNotebooks on master*
$ python
Python 3.4.3 (default, Jun 29 2015, 12:16:01) 
[GCC 5.1.1 20150618 (Red Hat 5.1.1-4)] on linux
Type "help", "copyright", "credits" or "license" for more information.

Which is weird, since it worked OK before…

Maybe the versions should be specified in the setup.py?

Cheers

About this issue

  • Original URL
  • State: open
  • Created 8 years ago
  • Reactions: 8
  • Comments: 25 (8 by maintainers)

Commits related to this issue

Most upvoted comments

It looks like allow external was removed from recent versions of pip: http://legacy.python.org/dev/peps/pep-0470/

Something like pip install https://github.com/matplotlib/basemap/archive/v1.0.7rel.tar.gz should work though.

ok, got it to work on Mac:

brew install geos
sudo -H pip3 install https://github.com/matplotlib/basemap/archive/v1.1.0.tar.gz

Just as another voice getting an unhelpful response by pip after a sudo -H pip3 install basemap, repeating the solution (by @aeroevan) that worked for me:

sudo -H pip3 install https://github.com/matplotlib/basemap/archive/v1.1.0.tar.gz

The --allow-external work-around only yielded red deprecation warnings. Beware of missing library dependencies, though: I had to install libgeos++-dev (found via this comment) in addition to the expected libgeos-dev.

Just managed to install it on ubuntu on my py3 virtualenv: sudo apt-get install libgeos-3.5.0 libgeos-c1v5 libgeos-dev pip install https://github.com/matplotlib/basemap/archive/v1.1.0.tar.gz

You should verify the latest versions and change the numbers accordingly

According to the changelog for v1.1.0, basemap might be coming back to pip. https://github.com/matplotlib/basemap/blob/master/Changelog The 1.1.0 release appears to be imminent: https://github.com/matplotlib/basemap/issues/343

Yes, I can’t get PyCharm to install it either. 😦

This is a duplicate of #198 Basemap is to large to be hosted on Pypi so the package is hosted externally and new versions of pip no longer allows that pr default.

@Kamik423 I tried your solution and it looked like it worked, but when I attempt to import I get the following error:

In [1]: from mpl_toolkits.basemap import Basemap --------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-6-5e6824321d57> in <module>() ----> 1 from mpl_toolkits.basemap import Basemap /anaconda3/lib/python3.6/site-packages/mpl_toolkits/basemap/__init__.py in <module>() 37 import numpy as np 38 import numpy.ma as ma ---> 39 import _geoslib 40 import functools 41

well, pip3 install GEOS does… something…