stylegan环境配置

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失败

原文地址:https://www.cnblogs.com/rainsoul/p/12101386.html