PyCall issues: possible to choose conda environment as path?

This is the wrong order. You need to set the environment and build PyCall (in a fresh Julia session), and only then can you import the PyCall module with using PyCall.

Also, you should give the full path — you can’t use ~ for the home directory.

(Note that you only need to build PyCall once with a given Python configuration. After that, you can just do using PyCall in any Julia session or script.)

2 Likes