我试图在Python 3.x中使用Basemap包,但是当我尝试在我的IDE Pycharm中安装包时,它给了我这个错误:
Could not find a version that satisfies the requirement Basemap (from versions: )
No matching distribution found for Basemap
You are using pip version 10.0.1, however version 19.0.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
任何人都知道如何正确安装该软件包?
(Python 3.x,Pycharm,Windows 10)
您可以尝试使用预编译的Windows二进制文件安装底图。
pip install path_to_the_downloaded_whl
。您可以通过conda轻松安装底图库。首先,您必须install conda,然后您可以通过conda create -n bm python=3.6
创建一个虚拟环境(您可以使用任何您喜欢的单词替换bm
)并通过conda activate bm
激活它。当命令行以(bm)
开头时,您可以运行conda install basemap
来自动安装库。之后,通常可以在python代码中使用底图。
祝好运。