创建环境报错:
conda env create -f environment.yaml
Solving environment: failed
CondaValueError: Malformed version string '~': invalid character(s).
需要更新conda
conda upgrade -n base -c defaults --override-channels conda
Solving environment: done
更新完毕后安装即可
conda env create -f environment.yaml
Collecting package metadata (repodata.json): done
Solving environment: failed
ResolvePackageNotFound:
- gdk-pixbuf==2.36.12=haf2c3b9_1004
- gcc_impl_linux-64==7.3.0=habb00fd_2
- gxx_impl_linux-64==7.3.0=hdf63c60_2
这里由于版本问题,直接删除版本号即可,conda会帮你安装合适的版本
vi environment.yaml
#改为:
- gdk-pixbuf
- gcc_impl_linux-64
- gxx_impl_linux-64
#然后就可以安装了
conda env create -f environment.yaml