1

I have a strange behavior. I already have set up my 'project interpreter' and if I execute my script it will run with the venv. The integrated terminal tool in PyCharm on the other doesn't run with the venv. pip list will not return the python modules of my venv.

I already checked my settings and the box "activate virtualenv" is checked.

enter image description here

How can I force the terminal to work with the venv? I would really like to just pip install missing modules into my venv and not elsewhere.

bad_coder
  • 11,289
  • 20
  • 44
  • 72
CedricLy
  • 43
  • 1
  • 3
  • What PyCharm version do you use? – user2235698 Mar 22 '19 at 15:36
  • https://stackoverflow.com/questions/22288569/how-do-i-activate-a-virtualenv-inside-pycharms-terminal – geekandglitter Mar 24 '19 at 10:41
  • What research have you don so far? This SO page may help. https://stackoverflow.com/questions/22288569/how-do-i-activate-a-virtualenv-inside-pycharms-terminal – geekandglitter Mar 24 '19 at 10:42
  • I use this version: PyCharm Community Edition 2018.3.5 The answers of https://stackoverflow.com/questions/22288569 does not solve my problem as far as I understood it, this is solved automatically for every newer version. Well research wise I checked of course the documentation of how to set up the venv on the intellij website. I followed each construction but it doesn't help a all. – CedricLy Mar 26 '19 at 18:41
  • Hi. I have the same problem as yours. Have you found a solution for this? – Zhongzheng_11 Sep 05 '21 at 11:58

1 Answers1

0

OK, I solved somehow my own mysterium. So there may be some issue with international windows os. The activate.bat file which shall automatically activate the venv in the terminal within pycharm fails with a message of: "Wrong Parameterformat- 850". This can be seen if one just try to start the activate.bat in a command prompt.

The Solution to solve this is Here: https://bugs.python.org/issue32409

CedricLy
  • 43
  • 1
  • 3