您的位置:首页 > 编程语言 > PHP开发

anaconda环境下安装tensorflow 无法使用matplotlib

2018-03-19 12:00 561 查看
官网安装方式 

1 安装anaconda
2 $ conda create -n tensorflow pip python=2.7 3
$ source activate tensorflow
4
(tensorflow)$ pip install --ignore-installed --upgrade 
https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.6.0-cp27-none-linux_x86_64.whl
安装后matplotlib包不在tensorflow环境下。import matplotlib.**  as plt 有问题

解决方法:
1  卸载tensorflow   

                  conda  uninstall tensorflow
2  安装tensorflow
            pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.6.0-cp27-none-linux_x86_64.whl而且以后的tensorflow 还不用每次激活,即不用输入(source activate tensorflow)。
谢谢美娟同学,献上我的膝盖。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: