1

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 ?

tensor
  • 3,088
  • 8
  • 37
  • 71

1 Answers1

1

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".

merv
  • 67,214
  • 13
  • 180
  • 245
  • conda insall tends to be HEAVIER in size thant PIP Install. for quick testing, pip looks better... – tensor Feb 10 '20 at 06:36
  • @tensor yes, because Conda packages tend to supply the full chain of dependencies (arguably better for reproducibility across systems), whereas PyPI packages have historically been Python-only (though wheels bundled with non-Python dependencies are becoming more common). – merv Apr 14 '20 at 02:14