tensorflow source */tensorflow/bin/activate问题
来源:互联网 发布:vehicleblackbox淘宝 编辑:程序博客网 时间:2024/06/08 16:42
1、按照tensorflow安装提示,使用下述命令激活virtualenv环境并成功安装tensorflow:
source ~/tensorflow/bin/activate
在python环境中可以成功执行
import tensorflow as tf
2、为了避免每次使用tensorflow都要进行activate/deactivate,我在~/.bashrc中最后添加下述命令:
. /home/myRoot/tensorflow/bin/activate并执行source ~/.bashrc;然后可以成功进入tensorflow环境如下:
(tensorflow)[myRoot@localhost ~]
3、但是,接着我在python环境中执行
import tensorflow as tf时,提示:
ImportError: No module named tensorflow无论我怎么activate/deactivate,或者还原~/.bashrc并source,错误信息保持不变;
4、无奈,删掉了我建立的tensorflow文件夹,重新建立virtualenv环境:
virtualenv --system-site-packages ~/tensorflow再进行激活安装,才解决问题。。。
0 0
- tensorflow source */tensorflow/bin/activate问题
- TensorFlow source安装
- build tensorflow from source
- tensorflow问题
- tensorflow
- TensorFlow
- TensorFlow
- tensorflow
- tensorflow
- tensorflow
- Tensorflow
- Tensorflow
- tensorFlow
- tensorflow
- Tensorflow
- TensorFlow
- tensorflow
- Tensorflow
- 遗忘--17.3.20
- copy deepcopy
- 智能指针 smart pointer
- Extjs Grid store加载数据
- java多线程--子线程的事务影响主线程吗
- tensorflow source */tensorflow/bin/activate问题
- solr mysql 定时更新数据 方式
- 解决appiumlibrary中click a point 点击无效
- python中gps与百度坐标互转
- glide:加载图片到通知栏和应用小部件中
- WebLogic安装Linux centos7
- SQL事务
- 开启csdn之旅,开始slam学习记录之程
- spark ml pipelines