Manually moved pycharm venv folder

Answered

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?

0
2 comments
Avatar
Permanently deleted user

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. 

0

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

0

Please sign in to leave a comment.