我使用。yml文件在外部驱动器上创建一个环境。
我的。yml文件包含…
name: pdal-env
channels:
— conda-forge
dependencies:
- --index-url https://anaconda.org/conda-forge/pdal
一切似乎都很顺利——环境创造了……
Collecting package metadata (repodata.json): done
Solving environment: done
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
然而,我得到一个错误…
Installing pip dependencies: Ran pip subprocess with arguments:
['E:\E\PDAL\env\pdal-env\python.exe', '-m', 'pip', 'install', '-U', '-r', 'E:\PDAL\condaenv.8j8loxa1.requirements.txt']
Pip subprocess output:
Pip subprocess error:
The input line is too long.
failed
CondaEnvException: Pip failed
这是一个我可以忽略的错误,还是我需要修复它?如果有,我该如何纠正?
我发现了问题,在收到一个更连贯的错误消息后…
Pip subprocess error:
ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'a
nother-project-requirements.txt'
failed
CondaEnvException: Pip failed
我的文本文件名为"requirements.txt"。显然,它必须命名为"another-project-requirements.txt"。
成功,无错误。