2

When using cmd.exe as the terminal application in PyCharm, the Python venv for the project gets automatically activated, so, I don't need to run venv\Scripts\activate. But when using PowerShell this doesn't happen. Is it possible to make this happen?

1 Answer 1

2

This is the option that has to be ticked to activate the Python virtual environment:

enter image description here

which is ticked by default and was ticket in my case. The reason why it wasn't working (and failing silently) was because I move the parent directory to a different location on my hard drive and that seemed to break the venv. Deleting it and re-creating it fixed the problem.

Sign up to request clarification or add additional context in comments.

1 Comment

This is currently an open ticket about this, see youtrack.jetbrains.com/issue/PY-22469

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.