Problems with the interpreter when I synchronize my project between 2 computers
Hi I'm developing an app between 2 pc, my home and my work, and sync the entire folder project using Nextcloud. But every time I open the project with the other computer, I have problems with the interpreter and all i't packages. I'm using virtualenv which if I understand correctly save all the necessary files inside venv folder. Every time Ask me to select a new interpreter and told me that the denpendencies are missing. When I tried to select manually from the setting menu -> project python interpreter, pycharm tells me that the SDK is not recognize and that is python 3.11.
Please sign in to leave a comment.
Hi, if you're syncing the venv folder that's unfortunately not going to work. venv is dependent on the base interpreter, so changing the location of the venv will in many cases break it.
You can sync the project files using Nextcould, but you should have separate venv on each PC. You can sync the packages between them by using `pip freeze > requirements.txt` and doing `pip install -r requirements.txt` on the new machine.
Thanks for your answer, I was already doing this, while trying to think of something else. I will stop looking.