Suppose I’ve got a “wheel” file that contains executable python script myscript.py
and a few python modules it imports.
Now I want to run myscript.py
on a host with python virtual environment “xyz”.
So I install the “wheel” file in this virtual environment and then run the script like this:
(xyz)> python ~/xyz/mypackage/mysubpackage/myscript.py
Is it a good practice ? Is it better to run it as: (xyz)> python myscript.py
? How to do it ?