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
- Removed basemap from setup.py requirements. Basemap can at the moment apparently not be installed easily via pip. (see https://github.com/matplotlib/basemap/issues/251 and https://github.com/matplotl... — committed to kyklop-climate/kyklop by deleted user 8 years ago
- Trying other things to get binderization to work. Last commit seems to have fixed most pip fails, but basemap apparently pip install by default any longer because a.) it is too large to be hosted on P... — committed to dlab-geo/geopandas_ws by erthward 8 years ago
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:
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:The
--allow-external
work-around only yielded red deprecation warnings. Beware of missing library dependencies, though: I had to installlibgeos++-dev
(found via this comment) in addition to the expectedlibgeos-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 topip
. https://github.com/matplotlib/basemap/blob/master/Changelog The 1.1.0 release appears to be imminent: https://github.com/matplotlib/basemap/issues/343Yes, 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…