我正在使用 .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
这是一个我可以忽略的错误,还是我需要修复它? 如果是这样,我该如何纠正?
答案 0 :(得分:0)
我发现了问题,在收到更一致的错误信息后...
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”。
成功,没有错误。