电脑里面删除了Anaconda3和Python文件后安装Miniconda3,
下面两步都进行完毕了
第一步是根据操作系统下载并安装Miniconda,在安装过程中需要勾选“Add Anaconda to the system PATH environment variable”选项(如当conda版本为4.6.14时)。
第二步是下载包含本书全部代码的压缩包。我们可以在浏览器的地址栏中输入 https://zh.d2l.ai/d2l-zh-1.0.zip 并按回车键进行下载。下载完成后,创建文件夹“d2l-zh”并将以上压缩包解压到这个文件夹。在该目录文件资源管理器的地址栏输入cmd进入命令行模式。
配置清华PyPI镜像(如无法运行,将pip版本升级到>=10.0.0) pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
这个也配置完成了,
然后几次运行 conda env create -f environment.yml 疯狂报错。。。报错信息如下
CreateFile() Error: 5
CreateFile() Error: 5
Warning: you have pip-installed dependencies in your environment file, but you do not list pip itself as one of your conda dependencies. Conda may not use the correct pip to install your packages, and they may end up in the wrong place. Please add an explicit pip dependency. I’m adding one for you, but still nagging you.
CreateFile() Error: 5
CreateFile() Error: 5
CreateFile() Error: 5
CreateFile() Error: 5
CreateFile() Error: 5
CreateFile() Error: 5
CreateFile() Error: 5
CreateFile() Error: 5
CondaValueError: prefix already exists: D:\miniconda3\envs\gluon
第一次报错还自动安装了一堆包,包括python等等,请问大家这是怎么回事?