conda创建虚拟环境:

conda create -n stylegan pip python=3.6

激活虚拟环境

source activate

安装tensorflow

conda install tensorflow-gpu==1.12.0

安装keras

安装jupyter

启动jupyter

/root/anaconda3/envs/stylegan/bin/jupyter notebook --ip=xxxx --allow-root --port=8081

需要指定该jupyter可执行文件的路径,否则还是会自动启动环境变量默认的jupyter,导致很多东西import失败

 

相关文章:

  • 2022-12-23
  • 2021-12-23
  • 2022-01-08
  • 2022-12-23
  • 2021-12-09
  • 2022-12-23
  • 2021-05-23
猜你喜欢
  • 2021-11-28
  • 2021-12-05
  • 2021-11-19
  • 2021-08-03
  • 2021-11-02
  • 2022-12-23
相关资源
相似解决方案