Mar-06-2025, 10:47 PM
This is more thinking out loud than a question.
Say I'm developing a python app on a Windows machine. I'm using a virtual environment on the Windows machine to debug my code. The target for the app is a Linux machine. When I deploy my app, the virtual environment won't be any good.
Would it make more sense to develop without the virtual environment?
Would it work if I created one virtual environment on the Windows machine and one on the Linux machine with the same name? I would just manually make sure that I install the same modules on both? There would be a danger of deploying the Window virtual environment into the Linux virtual environment by mistake.
Then you can throw MacOS into the mix, so now you would need to maintain three different virtual environments for the app.
This seems very messy. I feel like I'm overlooking something. Is my understanding correct, or is there a way to avoid this?
Say I'm developing a python app on a Windows machine. I'm using a virtual environment on the Windows machine to debug my code. The target for the app is a Linux machine. When I deploy my app, the virtual environment won't be any good.
Would it make more sense to develop without the virtual environment?
Would it work if I created one virtual environment on the Windows machine and one on the Linux machine with the same name? I would just manually make sure that I install the same modules on both? There would be a danger of deploying the Window virtual environment into the Linux virtual environment by mistake.
Then you can throw MacOS into the mix, so now you would need to maintain three different virtual environments for the app.
This seems very messy. I feel like I'm overlooking something. Is my understanding correct, or is there a way to avoid this?