Manually moved pycharm venv folder
已回答
I manually moved the Venv folder for my current pycharm project.
I've changed the interpreter setting to suit but when I try to run a file using the options in the Run tab it still tries to find the interpreter under the old location?
请先登录再写评论。
I did some more digging and i think it's cause all the paths in the various bash scripts that load and unload the environment don't get updated when I move the folder. So I guess its more a wider virtualenv issue rather than a PyCharm specific problem.
Can close this for now.
Hi Brian! It's indeed not advisable to move virtual environment folder manually. Meanwhile, there's an experimental --relocatable flag for virtualenv if you really want it to be portable: https://virtualenv.pypa.io/en/stable/userguide/#making-environments-relocatable