Open mlhetland opened 1 year ago
I guess one would want to update the message in the else
part, too – such as how to install things manually, etc. Not sure exactly what that should say. (E.g., one might not want a channel there either – unless I'm mistaken about the @assert
, too; and one presumably should run pip
via conda
, rather than directly?)
My motivation for this is using Z3. It seems the existing wrappers for Z3^1 are stale and outdated, and at least for now, using the official Python wrappers via PyCall is a reasonable approach.
It would then be useful to be able to have it installed on demand, with
pyimport_conda
, but the official package is apip
package, so that doesn't currently work. However, Conda.jl supportspip
.I'm not sure one could automatically determine whether to use
pip
or not, based on the package, but … one could perhaps do something like the following? I've added a boolean keyword argumentpip
, with an associated conditional that usesConda.pip
instead ofConda.add
.If this is a reasonable way of doing this, I'd be happy to make a PR. (Or feel free to use/adapt the suggestion above, for that matter.) Or perhaps there is some other way of achieving the same result?