我有一个装有matplotlib的anaconda3。在
唯一的问题是,mpl_toolkits
不是可识别的包。一、 e.以下代码不起作用:
import mpl_toolkits
我在google上搜索过各种包/download/makefile/etc.安装mpl_toolkits
、AxesGrid
、mpl_toolkits.axes_grid1
等的方式,尝试去做here。在
我跑过:
^{pr2}$我去了水蟒垃圾箱,然后运行:
pip install ...
etc.
如何让这个包与python(特别是anaconda)一起工作?在
出了问题;库
mpl_toolkits
应该在Python环境中。在bazooka-to-Kear-fight解决此问题的方法是转到github,创建用户名,在搜索栏中搜索“matplotlib”,从matplotlib项目下载matplotlib源代码zip文件…然后运行:
然后,一切正常。令人惊叹的。在
这bug report表明由于包的旧版本(特别是basemap),您的安装可能有问题。在
如果已安装git,则可以使用以下内容安装
mpl_toolkits
:或者从here下载最新的zip文件,解压缩并在结果文件夹中使用相同的
pip install -e .
命令。在使用这个:
之后,您将获得以下文件夹:
^{pr2}$相关问题 更多 >
编程相关推荐