Python Forum
Import Statements? - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Import Statements? (/thread-14507.html)

Pages: 1 2


RE: Import Statements? - buran - Dec-07-2018

If you plan to convert your script to exe you don't need the venv any more (after you convert the script). You will activate it, convert the script and the interpreter from venv + all dependencies installed for it and used in the script will be bundled (as a single file or as a folder - based on your preferences).
As to using py2exe, better look at pyinstaller. I am not sure if 3.7 is supported in py2exe. Last time I tried py2exe it had problems even with 3.6. But it was more than a year ago - this may have changed.