tensorflow+keras一些问题

146 阅读1分钟

1.版本匹配问题

在这里插入图片描述

2.下载包速度过慢

在这里插入图片描述

3.装tensorflow2.0问题

pip install tensorflow
pip install -U --ignore-installed wrapt enum34 simplejson netaddr

4.ipynb转py命令

jupyter nbconvert --to script demo.ipynb 

5.jupyter无法在指定虚拟环境运行代码

conda install jupyter notebook
conda install nb_conda_kernels
pip install --upgrade ipykernel --ignore-installed --user
	pip install --upgrade jupyter-core==4.4.0 --ignore-installed --user
	pip install --upgrade jupyter-client==5.3.1 --ignore-installed --user
PyHamcrest

6.在终端查看主机中GPU编号:

watch -n -9 nvidia-smi

7.安装虚拟环境

conda create -n wjy pip python=3.6.2