I tried to follow this tutorial and I got stuck. These are the steps I followed:
I installed Anaconda 32 bit
I executed
conda create -n test py2exe -c sasview
, which installed Python 3.4.5-0, py2exe 0.9.2.2-py34_1 and other packagesI created the
hello.py
file containingprint("Hello World!")
I created the
setup.py
file containing:from distutils.core import setup import py2exe setup(console=['hello.py'])
I executed
activate test python setup.py py2exe
The result was:
running py2exe
1 missing Modules
------------------
? readline imported from cmd, code, pdb
Building 'dist\hello.exe'.
error: [Errno 2] No such file or directory: 'C:\\Anaconda3\\envs\\test\\lib\\site-packages\\py2exe\\run-py3.4-win32.exe'
The missing module is just a warning and can be ignored (see here).
Py2exe is not available for Python 3.5 yet, and it looks like conda knows about it and installs python 3.4.
What am I missing?