如何使conda识别pip安装的python软件包? [英] How to make conda recognize pip installed python packages?

查看:153
本文介绍了如何使conda识别pip安装的python软件包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个conda环境然后使用pip wheel pip安装tensorflow.numpy是在同一阶段通过pip安装的.

在尝试安装scipy时,conda希望与pip已安装的numpy并行安装numpy ....?

如何使conda识别各种已安装的东西?

解决方案

这是

  conda config --set pip_interop_enabled true 

在认真发布此功能之前,我认为明智的做法是,在运行上述功能时,通过使用-env 标志将其使用限制于每个环境.>

请记住,首选Conda软件包仍然是最佳实践.在这方面必须阅读的是" 在Conda Environment ".

I have created a conda environnmennt and then pip installed tensorflow using a pip wheel. numpy was installed by pip at same stage.

When trying to install scipy, conda wants to install numpy in parallel of pip installed numpy....?

How to make various installed be recognized by conda ?

解决方案

This is what the new configuration option pip_interop_enabled, introduced in Conda v4.6 is for. It is still considered a "preview" feature, but I've had success using it:

 conda config --set pip_interop_enabled true

Until this feature is released in earnest, I think it would be wise to limit its use to a per-env-basis by using the --env flag when running the above.

It should be kept in mind that preferring Conda packages is still best practice. A must read in this regard is "Using Pip in a Conda Environment".

这篇关于如何使conda识别pip安装的python软件包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆