python - How to import Basemap (mpl) in Azure ML (section Notebooks) -


how can import basemap (from mpl_toolkits.basemap) in azure ml (in section notebooks)? there general way import libraries in azure ml? (current version shown python 3.4.5 |anaconda custom (64-bit)| (default, jul 2 2016, 17:47:47) ipython: 5.1.0)

pip installs geos package there missing dependencies (and export geos_dir)

please install corresponding packages using systems software management system (e.g. debian linux do: 'apt-get install libgeos-3.3.3 libgeos-c1 libgeos-dev' and/or set environment variable geos_dir point location geos installed (for example, if geos_c.h in /usr/local/include, , libgeos_c in /usr/local/lib, set geos_dir /usr/local), or edit setup.py script manually , set variable geos_dir (right after line says "set geos_dir manually here".

i tried install mpltoolkits.basemap package via command below in notebook of azure ml python3 successfully, please try it.

!pip install https://github.com/matplotlib/basemap/archive/master.zip 

according installation doc of matplotlib, if code from mpl_toolkits.basemap import basemap not works after installed it, try check package geos had been installed , via !pip install geos fix it.

hope helps.


Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -