ubuntu使用及配置
(1)ubuntu查看配置:cat /etc/issue
(2)查看python3版本: python3 --version
查看pip3版本:pip3 --version
(3)安装tensorflow: pip3 install tensorflow
出现问题一:·网络不可达 。解决办法:更换pipy源:
cd ~/.pip (如果不存在.pip则创建 ~/.pip)
mkdir ~/.pip
cd ~/.pip
touch pip.conf
sudo gedit ~/.pip/pip.config
在pip.config中写入以下内容
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn /simple/
[install]
trusted-host = pypi.tuna.tsinghua.edu.cn
出现问题二:ERROR:launchpadlib 1.10.13 requires testresources, which is not installed. 解决办法:sudo pip3 install launchpadlib
(4)查看tensorflow版本:(此次安装使用的是ubuntu自带的python,没有安装anaconda)
import tensorflow as tf (could not load dynamic library 'libcudart.so.11.0‘属于正常现象
tf,__version__