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

 

posted @ 2019-12-26 12:22  rainsoul  Views(807)  Comments(0Edit  收藏  举报