首页 > 解决方案 > 使用 pip 安装 conda 失败

问题描述

我已经看过一些帖子,但似乎没有一个合适的答案。我的主要目标是安装 Jupyter 实验室。但是运行命令 conda install -c conda-forge jupyterlab 我收到与 conda 有关的错误,指出它无法识别。所以我想我会使用 pip 安装 conda 但是我现在得到错误退出状态 1,代码如下。Pip 和 python 都使用 python 3.9 和 pip 21.1.3 工作。请问你能帮忙吗?在此先感谢您的时间。

ERROR: Command errored out with exit status 1: 'c:\python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\CJHud\\AppData\\Local\\Temp\\pip-install-3vseastq\\conda_62c5aa6c50694bb6aec7dd04284fa7a0\\setup.py'"'"'; __file__='"'"'C:\\Users\\User\\AppData\\Local\\Temp\\pip-install-3vseastq\\conda_62c5aa6c50694bb6aec7dd04284fa7a0\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\CJHud\AppData\Local\Temp\pip-record-cpehq0dz\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\python39\Include\conda' Check the logs for full command output.

标签: pipcondaexitstatus

解决方案


推荐阅读