tensorflow安装matplotlib踩过的坑
2018-01-28 01:43
183 查看
1、pip安装matplotlib之后,会在根目录下产生一个.matplotlib的目录:
➜ bin ll ~/.matplotlib
total 280
-rw-r--r-- 1 me staff 78K 10 4 2015 fontList.cache
-rw-r--r-- 1 me staff 59K 1 17 15:56 fontList.py3k.cache
drwxr-xr-x 2 me staff 68B 10 4 2015 tex.cache
2、在这个目录下创建一个名为matplotlibrc的文件,内容是:
backend: TkAgg
然后保存退出,重启Python交互界面或重新运行脚本,import正常执行。
➜ bin ll ~/.matplotlib
total 280
-rw-r--r-- 1 me staff 78K 10 4 2015 fontList.cache
-rw-r--r-- 1 me staff 59K 1 17 15:56 fontList.py3k.cache
drwxr-xr-x 2 me staff 68B 10 4 2015 tex.cache
2、在这个目录下创建一个名为matplotlibrc的文件,内容是:
backend: TkAgg
然后保存退出,重启Python交互界面或重新运行脚本,import正常执行。
相关文章推荐
- linux系统安装pip,numpy,matplotlib,scipy,tensorflow命令
- win10下tensorflow和matplotlib安装教程
- 在Mac上如何安装Tensorflow和Matplotlib
- anaconda环境下安装tensorflow 无法使用matplotlib
- 【Python】win10下tensorflow、matplotlib的安装
- windows64位Python3.5.2基础上,安装numpy、matplotlib、scipy(whl文件)安装tensorflow及sklearn包
- Ubuntu下安装numpy matplotlib scikit-learn ipython-notebook
- 安装numpy,scipy,matplotlib的好去处
- Windows下python安装matplotlib
- python3.5安装Scipy和Matplotlib
- ubuntu14.04 server python3 安装matplotlib失败及解决方法
- Windows10 64位 Python2.7 Matplotlib安装
- Mac下安装from matplotlib import pyplot或者 import matplotlib.pyplot as plt报错
- 动手实践:在Windows上安装NumPy、Matplotlib、SciPy和IPython
- pip 安装 Python的matplotlib
- 安装 matplotlib和pygal
- 使用easy_install安装numpy、pandas、matplotlib及各种第三方模块
- Python Matplotlib安装方法以及使用
- Python及其接口函数库(TensorFlow、NumPy、Matplotlib、sklearn、pandas)参考资料(更新中,更新日期:2017-07-10)