I started to learn Python last week. I am newbie with not much coding experience.
I created a "Space Invader" game using Pygame (installed in my virtual environment) and it works perfectly when I launch it with Python2.7 as
python myfile.py
However if I launch it as
python3 myfile.py
I have a Traceback error
ImportError: No module named 'pygame'
Cool I can deal with it, even if I don't know why. However when I use pyinstaller myfile.py
, it converts the program into stand-alone executables using Python3
115 INFO: PyInstaller: 3.2
115 INFO: Python: 3.5.0b4
125 INFO: Platform: Darwin-15.5.0-x86_64-i386-64bit
126 INFO: wrote mydir/myfile.py
and therefore the same error when I launch the app. I am working on a Mac OSX El Captain.
The questions are: Why it does not work on Python3? How do I use 'pyinstaller' with Python2.7?
All the explanations about package management with a "human" language are welcome.
P.S. I tried cx_Freeze and bbFreeze but I always end up with the following error. I have a Mac OSX El Captain.
OSError: [Errno 1] Operation not permitted: '/mydir/MacOS.so'