JuliaPy / Conda.jl

Conda managing Julia binary dependencies
Other
172 stars 57 forks source link

Using pip within a Conda environment? #165

Open tk3369 opened 4 years ago

tk3369 commented 4 years ago

Is it possible to install packages using pip in a Conda.jl environment?

Occasionally, I have do that when a conda package isn't available. With miniconda (outside of Julia), I am still able to use pip from once the Conda environment is activated. Of course, I would be using the pip binary from the same environment.

dsweber2 commented 4 years ago

I have done this via the run command directly via something like

root = Conda.ROOTENV
pipPath = joinpath(root, "bin", "pip")
run(`$(pipPath) install nameOfPackage`)

as far as I could tell, there isn't a function for it in Conda.jl, though based on my reading of the functions in Conda.jl this would operate in a similar manner.

FPGro commented 3 years ago

You can close this as of #171