Skip to content

is it possible to call pip install of some python package from Julia code #98

Answered by icweaver
jakubMitura14 asked this question in Q&A
Discussion options

You must be logged in to vote

I think CondaPkg.jl uses the conda-forge channel by default, which looks to have monai:

using PythonCall, CondaPkg

CondaPkg.add.("monai"); CondaPkg.resolve()

@py import monai

monai
# Python module: <module 'monai' from '/home/mango/Projects/scratch/.CondaPkg/env/lib/python3.9/site-packages/monai/__init__.py'>

And you can use CondaPkg.add_pip to use pip if you want, but I don't think it is recommended

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jakubMitura14
Comment options

Answer selected by cjdoris
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants