想用geo:from pyecharts import Geo
Collecting Geo
Could not find a version that satisfies the requirement Geo (from versions: )
No matching distribution found for Geo
失败。。。呵呵
from pyecharts import Map:
Collecting Map
Downloading https://files.pythonhosted.org/packages/f3/1c/0de6285391798eb707c5e56b300331899fd4847487111bce895f3d1e8e74/map-1.2.0.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File “”, line 1, in
File “/private/var/folders/2l/qr6x50xx4gg22xc8dtt10rkr0000gn/T/pycharm-packaging/Map/setup.py”, line 13, in
version = getVersion(),
File “/private/var/folders/2l/qr6x50xx4gg22xc8dtt10rkr0000gn/T/pycharm-packaging/Map/setup.py”, line 10, in getVersion
return version
NameError: name ‘version’ is not defined
----------------------------------------
Command “python setup.py egg_info” failed with error code 1 in /private/var/folders/2l/qr6x50xx4gg22xc8dtt10rkr0000gn/T/pycharm-packaging/Map/
You are using pip version 10.0.1, however version 19.2.1 is available.
You should consider upgrading via the ‘pip install --upgrade pip’ command.
换个思路装cartopy:
也不行。
错误:
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /private/var/folders/2l/qr6x50xx4gg22xc8dtt10rkr0000gn/T/pip-build-env-1992g31e/overlay --no-warn-script-location --no-binary :all: --only-binary :none: -i https://pypi.org/simple – setuptools wheel ‘numpy>=1.10’ ‘Cython>=0.15.1’
cwd: None
Complete output (51 lines):
Traceback (most recent call last):
File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/hashlib.py”, line 121, in __get_openssl_constructor
f = getattr(hashlib, 'openssl’ + name)
AttributeError: module ‘_hashlib’ has no attribute ‘openssl_sha3_224’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/__main__.py", line 16, in
from pip._internal import main as _main # isort:skip # noqa
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/_internal/__init__.py", line 19, in
from pip._vendor.urllib3.exceptions import DependencyWarning
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/_vendor/urllib3/__init__.py", line 7, in
from .connectionpool import (
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/_vendor/urllib3/connectionpool.py", line 11, in
from .exceptions import (
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/_vendor/urllib3/exceptions.py", line 2, in
from .packages.six.moves.http_client import (
File "", line 971, in _find_and_load
File "", line 955, in _find_and_load_unlocked
File "", line 656, in _load_unlocked
File "", line 626, in _load_backward_compatible
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/_vendor/urllib3/packages/six.py", line 203, in load_module
mod = mod._resolve()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/_vendor/urllib3/packages/six.py", line 115, in _resolve
return _import_module(self.mod)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/_vendor/urllib3/packages/six.py", line 82, in _import_module
__import__(name)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 71, in
import email.parser
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/email/parser.py", line 12, in
from email.feedparser import FeedParser, BytesFeedParser
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/email/feedparser.py", line 27, in
from email._policybase import compat32
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/email/_policybase.py", line 9, in
from email.utils import _has_surrogates
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/email/utils.py", line 28, in
import random
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/random.py", line 46, in
from hashlib import sha512 as _sha512
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/hashlib.py", line 243, in
globals()[__func_name] = __get_hash(__func_name)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/hashlib.py", line 128, in __get_openssl_constructor
return __get_builtin_constructor(name)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/hashlib.py", line 100, in __get_builtin_constructor
cache['sha3_224'] = _sha3.sha3_224
AttributeError: module '_sha3' has no attribute 'sha3_224'
----------------------------------------
ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /private/var/folders/2l/qr6x50xx4gg22xc8dtt10rkr0000gn/T/pip-build-env-1992g31e/overlay --no-warn-script-location --no-binary :all: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel 'numpy>=1.10' 'Cython>=0.15.1' Check the logs for full command output.
这个解决方案也不行:
http://louistiao.me/posts/installing-cartopy-on-mac-osx-1011/
最后学长说我这个只需要导入入层就可以了。。
于是最后用了BDP:
https://me.bdp.cn/index.html#/dash_edit/proj_1c0818c5377e94658b4c49a723111b3d/dsh_9f731cb58b5ea3a341aec0bc5e80def6
还是不知道最后这么调用API导入的那种,可能需要坐标吧。。