0

im quite new to python and have made a few programs to help me in school but i dont know how to compile them.
i have found a tutorial and have copied the code correctly but python says that the 'import' syntax is incorrect.

this is the code:

from distutils.core import setup import py2exe

setup(console=['2.py'])

how could i fix this?

3
Contributors
3
Replies
4
Views
8 Years
Discussion Span
Last Post by jlm699
0

thanks for the post but what i mean is that i understand the simple things just not why the syntax error has come up

0

how could i fix this?

from distutils.core import setup, import, py2exe When you import multiple modules you need to separate with commas.

Or you could just do: from distutils.core import * to get everything within distutils.core

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.