Open chilango74 opened 3 years ago
Thank you for report, I have never tested PyCharm Plugin with Anaconda.
I will do initial research this week to see what can be done
I was trying to reproduce the issue without luck.
I created project using
Then, in packages, unchecked Use Conda Package Manager
and installed pycrunch-engine
from pip repository
Then, I was able to Run\Restart Pycrunch Engine
without any issues:
So environment seems to be activate. Can you share more reproduction steps? (maybe it is OS-specific issue)
It looks like PyCharm calls wrong python version when running from menu:
Correct python is indicated in the tools setup:
And it works, when I run it from terminal:
May be it is an issue of PyCharm under Windows 10....
I can see that PyCharm tries to run engine from some environment, but not from the correct one
I do not think that selecting Path in Black
tool will contribute to the env PyCharm uses internally.
Can you check what is selected as Project Interpreter
in the lower right corner?
Or in project interpreter settings:
I'm trying to understand why it keeps selecting py38
instead of py39
; Let me know what you see as project interpreter, so I can investigate further
The environment for this project is py39.
May be worth mentioning ... when running from menu C:\Users\Sergey\Anaconda3\envs\py38\python.exe -m pycrunch.main --port=63530
the command appears without environment notation (py39) or (py38).
Can be related. In my case I had to remove .idea folder from the workspace
It looks like Pycharm runs
python.exe -m pycrunch.main --port=51178
without activating environment when working with anaconda. When I run manually the command in the current project environment terminal it works.