You are not logged in.

#1 2021-06-29 14:24:39

ArchNewbieKernel
Banned
Registered: 2020-09-25
Posts: 74

[SOLVED] pyinstaller problems

I installed pyinstaller with

pip install pyinstaller

without any problems and tried to convert 3 .py files into 1 .exe file with getting this output, in the directory the .py files lays

$ python3 pyinstaller --onefile -w main.py
python3: can't open file '/home/user/Desktop/games/testgame/pyinstaller': [Errno 2] No such file or directory

and if I run

$  pyinstaller --onefile -w main.py
bash: pyinstaller: command not found

which is kind of odd.

also I've seen pyinstaller seems to create problems for some people in the comments section here.

Has anyone ever turned various .py files into an single executable?

Last edited by ArchNewbieKernel (2021-06-29 21:04:08)

Offline

#2 2021-06-29 16:06:18

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,687

Re: [SOLVED] pyinstaller problems

There is already an AUR package of pyinstaller.
It is always best to use the AUR python packages if it exist. This will then be tracked by pacman and will get updates.
If you do want to use pip, it is always better to use it in a virtual environment.
I suggest undo what you have just done and try the AUR package.

Offline

Board footer

Powered by FluxBB