在运行命令:
conda env create -f freeze.yml
的时候,出现over and over 的错误:
Warning : you have pip-installed dependencies in your environment
file, but you do not list pip itself as one of your conda
dependencies...
这是由于迁移的文件 freeze.yml 文件中存在大量需要pip 组装的文件,打开freeze.yml文件查看(片段):
channels:
- pytorch
- conda-forge
dependencies:
- pip:
- anndata==0.7.6
- chardet==4.0.0
- click==8.0.0
- cycler==0.10.0
- get-version==2.2
- h5py==3.2.1
所以解决方法,只需要在 pip:上面加入安装pip命令:
dependencies:
- pip
- pip:
- anndata==0.7.6
即可;
重新安装就行了!!!!!!!!