pyjulia icon indicating copy to clipboard operation
pyjulia copied to clipboard

python-jl cannot find the module pytest

Open calvinp0 opened this issue 3 years ago • 3 comments

Hi,

I am using PyCharm for PyTest and I am not sure if this is correct to do but I set the env interpreter to python-jl. Now, when I attempt to run a test, it informs me the module PyTest cannot be found. I do have PyTest installed and when I set the env interpreter to just python, the test runs smoothly.

Is this expected to happen?

calvinp0 avatar Nov 26 '22 16:11 calvinp0

Which Python environment is python-jl using?

mkitti avatar Nov 27 '22 01:11 mkitti

If I understand your question correctly, I am using mamba/conda environment

calvinp0 avatar Nov 27 '22 05:11 calvinp0

No, I mean what specific conda environment is python-jl using? Or where is it located?

It may be using a different environment than the one you are in. In fact, this is the default behavior. If you want to make it use your current conda environment, you will need to tell Julia about that unless you installed julia via conda.

mkitti avatar Nov 27 '22 15:11 mkitti