pyinstaller and Python 3.5 on Windows?
Ulli Horlacher
framstag at rus.uni-stuttgart.de
Thu Nov 19 07:25:39 EST 2015
Kevin Walzer <kw at codebykevin.com> wrote:
> I understand that Python 3.5 has shipped how the MS dll's from Visual
> Studio are shipped, and perhaps the freezing tools (pyinstaller, py2exe)
> haven't yet caught up. Consider filing a bug with the pyinstaller
> developers.
http://pythonhosted.org/PyInstaller/#windows
Installing in Windows
For Windows, PyWin32 or the more recent pypiwin32, is a prerequisite.
The latter is installed automatically when you install PyInstaller using
pip or easy_install. If necessary, follow the pypiwin32 link to install
it manually.
I have installed PyInstaller using "pip install pyinstaller".
Ok, then:
C:\Users\admin>pip install pywin32
Collecting pywin32
Could not find a version that satisfies the requirement pywin32 (from versions: )
Some externally hosted files were ignored as access to them may be unreliable
(use --allow-external pywin32 to allow).
No matching distribution found for pywin32
C:\Users\admin>pip install pypiwin32
Collecting pypiwin32
Downloading pypiwin32-219-cp35-none-win32.whl (7.9MB)
100% |################################| 7.9MB 61kB/s
Installing collected packages: pypiwin32
Exception:
Traceback (most recent call last):
File "c:\program files (x86)\python 3.5\lib\site-packages\pip\basecommand.py",
line 211, in main
status = self.run(options, args)
File "c:\program files (x86)\python 3.5\lib\site-packages\pip\commands\install
.py", line 311, in run
root=options.root_path,
File "c:\program files (x86)\python 3.5\lib\site-packages\pip\req\req_set.py",
line 646, in install
**kwargs
File "c:\program files (x86)\python 3.5\lib\site-packages\pip\req\req_install.
py", line 803, in install
self.move_wheel_files(self.source_dir, root=root)
File "c:\program files (x86)\python 3.5\lib\site-packages\pip\req\req_install.
py", line 998, in move_wheel_files
isolated=self.isolated,
File "c:\program files (x86)\python 3.5\lib\site-packages\pip\wheel.py", line
339, in move_wheel_files
clobber(source, lib_dir, True)
File "c:\program files (x86)\python 3.5\lib\site-packages\pip\wheel.py", line
317, in clobber
shutil.copyfile(srcfile, destfile)
File "c:\program files (x86)\python 3.5\lib\shutil.py", line 115, in copyfile
with open(dst, 'wb') as fdst:
PermissionError: [Errno 13] Permission denied: 'c:\\program files (x86)\\python
3.5\\Lib\\site-packages\\PyWin32.chm'
Why "Permission denied"? I am logged in as administrator! Stupid Windows...
Then https://pypi.python.org/pypi/pypiwin32/219 :
pypiwin32-219-cp35-none-win32.whl Python Wheel cp35 2015-01-09 7MB
"Python Wheel"?!
http://python-packaging-user-guide.readthedocs.org/en/latest/installing/#install-pip-setuptools-and-wheel
C:\Users\admin>pip install wheel
Collecting wheel
Downloading wheel-0.26.0-py2.py3-none-any.whl (63kB)
100% |################################| 65kB 1.3MB/s
Installing collected packages: wheel
Failed to write executable - trying to use .deleteme logic
Exception:
Traceback (most recent call last):
File "c:\program files (x86)\python 3.5\lib\site-packages\pip\_vendor\distlib\
scripts.py", line 209, in _write_script
self._fileop.write_binary_file(outname, script_bytes)
File "c:\program files (x86)\python 3.5\lib\site-packages\pip\_vendor\distlib\
util.py", line 388, in write_binary_file
with open(path, 'wb') as f:
PermissionError: [Errno 13] Permission denied: 'c:\\program files (x86)\\python
3.5\\Scripts\\wheel.exe'
Looks like I have a broken Windows :-(
--
Ullrich Horlacher Server und Virtualisierung
Rechenzentrum IZUS/TIK E-Mail: horlacher at tik.uni-stuttgart.de
Universitaet Stuttgart Tel: ++49-711-68565868
Allmandring 30a Fax: ++49-711-682357
70550 Stuttgart (Germany) WWW: http://www.tik.uni-stuttgart.de/
More information about the Python-list
mailing list