【问题标题】:Error Creating Anaconda Custom Environment创建 Anaconda 自定义环境时出错
【发布时间】:2021-01-29 20:28:54
【问题描述】:

我正在使用 .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 miniconda


    【解决方案1】:

    在收到更连贯的错误消息后,我发现了问题...

    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”。

    成功,没有错误。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-02-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-09-23
      • 1970-01-01
      • 2018-04-12
      • 2020-12-01
      相关资源
      最近更新 更多