pyinstaller interactive python console

148 views
Skip to first unread message

Bachir Aoun

unread,
Mar 14, 2021, 12:01:08 PM3/14/21
to PyInstaller
Hi,
I am trying to create a standalone for a scientific community package. Scientists are typically facing difficulties installing  and compiling the package on their windows machine.
(they need to set python path, install visual studio compiler, etc.)

I am trying to bundle everything in one executable, the goal is still to be able to open the app and have a python terminal launched.



I appreciate any help


Bachir Aoun

unread,
Mar 15, 2021, 3:39:34 AM3/15/21
to PyInstaller
just fyi, what i did to solve  the need for now is to read the file and call exec.
this is a patch solution hoping that there is one that is more native to pyinstaller.

Jones, Bryan

unread,
Mar 15, 2021, 4:07:06 AM3/15/21
to pyins...@googlegroups.com
Use Conda.

--
You received this message because you are subscribed to the Google Groups "PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyinstaller...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/6d3b2380-00f1-4735-ba2b-33f5ec992df6n%40googlegroups.com.


--
Bryan A. Jones, Ph.D.
Associate Professor
Department of Electrical and Computer Engineering
231 Simrall / PO Box 9571
Mississippi State University
Mississippi State, MS 39762
http://www.ece.msstate.edu/~bjones
bjones AT ece DOT msstate DOT edu
voice 662-325-3149
fax 662-325-2298

Our Master, Jesus Christ, is on his way. He'll show up right on
time, his arrival guaranteed by the Blessed and Undisputed Ruler,
High King, High God.
- 1 Tim. 6:14b-15 (The Message)

bwoodsend

unread,
Mar 15, 2021, 10:40:58 AM3/15/21
to PyInstaller

If you just want an interactive console you can PyInstaller-ify:

import code
code.interact()

That being said, you shouldn’t need to get people to install a C compiler. If you depend on libraries which are available as precompiled wheels then you should be able to run pip wheel library-name on your machine then get them to install the .whl files it produces.

Reply all
Reply to author
Forward
0 new messages