[python-win32] Using relative python path in exe files generated by `ScriptMaker`

Glyph glyph at twistedmatrix.com
Tue Dec 10 02:45:52 EST 2024



> On Dec 9, 2024, at 11:15 PM, Jacob Kruger <jacob at blindza.co.za> wrote:
> 
> Might not be relevant, if am misunderstanding something, but I generally just use pip freeze > requirements.txt, shift that text file over to new location/machine, create new virtual environment, and run pip install -r requirements.txt from there to recreate environment, and, I do this across different operating systems as well?

If that works for you, then yeah, that's a good way to go.  The usual reason that this would not work would be if you have some native dependency with a build requirement and no binary build for your target platform, and some machines without C (or Rust, or FORTRAN, or whatever) compilers, which is particularly common on Windows.  But the right way to deal with that would be `pip wheel` and copying over the wheels directory with the requirements.txt, then pip install --no-index -f wheels/ --Ur requirements.txt, not copying the virtualenv.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/python-win32/attachments/20241209/e7032b57/attachment-0001.html>


More information about the python-win32 mailing list