使用 YAML 文件安装 conda 环境时如何查看 pip 安装详细信息?
我正在尝试调试Conda环境无法安装PIP依赖性的问题,但是conda create env -f环境.yaml
对其PIP交易的输出不太有帮助,这就是它的方式正在尝试安装PIP依赖性。
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
Installing pip dependencies: \
有什么方法可以获取YAML文件中pip install
内部发生的事情的详细输出?
I am trying to debug a problem with conda environment not being able to install pip dependencies, but conda create env -f environment.yaml
is not very helping with the output of its pip transactions, this is how it is trying to install pip dependencies.
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
Installing pip dependencies: \
Is there any way to get a detailed output of what is happening inside pip install
in a yaml file?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
代替直接conda支持 for
pip install
可以通过分开YAML手动调试。也就是说,将YAML的要求分为仅Conda版本,并将所有pip:
要求放入unignts.txt
。从仅Conda的YAML创建环境,激活它,然后使用您需要的任何级别的详细词来运行pip install -r unignts.txt
。In lieu of direct Conda support for
pip install
verbosity, one could manually debug by splitting the YAML. That is, separate the YAML requirements into a Conda-only version and take all thepip:
requirements and put them in arequirements.txt
. Create the environment from the Conda-only YAML, activate it, then runpip install -r requirements.txt
using whatever level of verbosity you need.