I trusted PyCharm to let it create a venv for me, and then shipped the code project with the venv folder. Inside my code, whenever calling a separate script, I use the venv Python uder venv/Scripts/
.
To my surprise, it breaks when running on another machine, where the venv python actually points to my local installation of Python at C:\Python\Python37
. This beats the purpose of creating a venv!
What have I done wrong? My project structure is like
- code/*.py
- venv
And this is what I shipped to another machine.