Answer the question
In order to leave comments, you need to log in
How is using Python3 + cx_freeze different on Windows and Ubuntu?
The task is to make an executable program from the script. The script is written in Python3. On Windows I installed cx_freeze and everything worked fine.
Now I want the same thing, but on Linux (Kubuntu). Installing cx_freeze failed on Python3. Downloaded for Python 2.7. Launched, created executable, but this file does not work, does not start the program.
What's wrong? How to solve the problem?
Answer the question
In order to leave comments, you need to log in
I also had problems installing cx_freeze on Ubuntu (mate). The problem was the missing packages. I decided this:
sudo apt-get install -y libxml2-dev libxslt1-dev zlib1g-dev python3-pip
then install cx_freeze:
sudo pip3 install cx_freeze
Create a setup.py file and paste:
from cx_Freeze import setup, Executable
setup(
name = "Name programs",
version = "0.1",
description = "Blackjack",
executables = [Executable("Executable file.py")]
)
Open the terminal in the folder with the files and write:
python3 setup.py build
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question