Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (16.4k points)

I've made my setup.py file as educated however I don't really.. comprehend what to do straightaway. Composing "python setup.py work" into the command line simply gets a grammar mistake. 

All in all, what do I do?

setup.py:

from cx_Freeze import setup, Executable

setup(

    name = "On Dijkstra's Algorithm",

    version = "3.1",

    description = "A Dijkstra's Algorithm help tool.",

    exectuables = [Executable(script = "Main.py", base = "Win32GUI")])

1 Answer

0 votes
by (26.4k points)

Look at the below steps:

  • Add import sys as the new topline
  • You misspelled "executables" on the last line.
  • Remove script = on last line.

Then, The code looks like:

import sys

from cx_Freeze import setup, Executable

setup(

    name = "On Dijkstra's Algorithm",

    version = "3.1",

    description = "A Dijkstra's Algorithm help tool.",

    executables = [Executable("Main.py", base = "Win32GUI")])

Utilize the command prompt to execute the python setup.py construct. (Run this order from the envelope containing setup.py.) Notice the form parameter we added toward the finish of the script call.

Interested to learn python in detail? Come and Join the python course.

Related questions

0 votes
1 answer
asked Jan 7, 2021 in Python by ashely (50.2k points)
0 votes
1 answer
asked Sep 26, 2019 in Python by Sammy (47.6k points)
0 votes
1 answer
asked Sep 23, 2019 in Python by Sammy (47.6k points)
0 votes
1 answer
0 votes
1 answer
asked Jul 8, 2019 in Python by Sammy (47.6k points)

Browse Categories

...