使用yml文件安装conda虚拟环境一直报404
解决方法
1. 将channel部分注释掉
将channels注释掉,不设置channel
原来的yml文件:
name: dsmil
channels:
- anaconda
- conda-forge
- defaults
dependencies:
- numpy
- pillow
- pip
- python
- matplotlib
- scikit-learn
- pyyaml
- pandas
- scikit-image
- jupyterlab
- opencv
- tqdm
修改之后的yml文件:
name: dsmil
# channels:
# - anaconda
# - conda-forge
# - defaults
dependencies:
- numpy
- pillow
- pip
- python
- matplotlib
- scikit-learn
- pyyaml
- pandas
- scikit-image
- jupyterlab
- opencv
- tqdm
2. 再次运行conda指令
conda env create --name dsmil --file env.yml