JuliaPy / PyCall.jl

Package to call Python functions from the Julia language
MIT License
1.47k stars 187 forks source link

pyimport not working for custom conda environment #891

Open JGameCreation opened 3 years ago

JGameCreation commented 3 years ago

Hi! When I use PyCall with the default environment ENV["PYTHON"]="" everything works fine. However, as soon as I switch it to another path like ENV["PYTHON"]=raw"C:\Users\neun8\.julia\conda\3\envs\tf-gpu\python.exe" it doesn't find any modules I have installed even if that environment is an exact copy of the default PyCall environment (created using conda create --name tf-gpu --clone base). This is a problem because it would be very convenient to be able to have seperate environments for say Tensorflow and PyTorch. I'm using PyCall 1.92.2 on Julia 1.6.0 on Windows 10.