创建具有LDSC依赖项的环境时出现问题:“CondaEnvException:Pip失败”

2024-09-30 14:30:22 发布

您现在位置:Python中文网/ 问答频道 /正文

我运行了以下命令来创建具有LDSC的环境

conda env create --file environment.yml

然后anaconda开始安装.yml文件中列出的所有软件包,直到它安装到使用pip安装的软件包为止。它会引发以下错误:

ERROR: Command errored out with exit status 1: /Users/shahin/anaconda3/envs/ldsc/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/hm/470hl8cj1918tt1hsnfhlk740000gn/T/pip-install-_Nx5yI/pandas/setup.py'"'"'; __file__='"'"'/private/var/folders/hm/470hl8cj1918tt1hsnfhlk740000gn/T/pip-install-_Nx5yI/pandas/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/hm/470hl8cj1918tt1hsnfhlk740000gn/T/pip-record-oU3syO/install-record.txt --single-version-externally-managed --compile --install-headers /Users/shahin/anaconda3/envs/ldsc/include/python2.7/pandas Check the logs for full command output.

failed

CondaEnvException: Pip failed

如何修复此错误


Tags: installpippandasvaryml错误privaterecord