- conda env list
只有一个默认环境base
conda create -n tensorflow python=3.6 - source activate tensorflow
- pip install tensorflow
- import tensorflow as tf
报错:Could not load dynamic library ‘libcudart.so.11.0’; dlerror: libcudart.so.11
解决:conda install cudatoolkit=11.0 - conda install ipykernel
- python -m ipykernel install --user --name tensorflow --display-name “TF_py36”
- jupyter notebook --ip=xxx.xxx.xxx.xxx
- source deactivate
Linux上安装tensorflow
最新推荐文章于 2024-05-26 22:19:39 发布