Install Python and PyInstaller in Wine - Kali Linux

Setup/Install Wine and install Python and PyInstaller for windows.



Commands

dpkg --add-architecture i386 && apt-get install win32

winecfg

wget https://www.python.org/ftp/python/2.7.13/python-2.7.msi

wine msiexec /i python-2.7.13.msi

wget https://bootstrap.pypa.io/get-pip.py

wine /root/.wine/drive_c/Python27/python.exe get-pip.py

wine /root/.wine/drive_c/Python27/python.exe -m pip install pyinstaller

Comments

  1. The first command needs to be:
    dpkg --add-architecture i386 && apt-get update && apt-get install wine32

    ReplyDelete
  2. wine /root/.wine/drive_c/Python27/python.exe get-pip.py
    I got this error
    Traceback (most recent call last):
    File "get-pip.py", line 28, in
    import tempfile
    File "C:\Python27\lib\tempfile.py", line 35, in
    from random import Random as _Random
    File "C:\Python27\lib\random.py", line 887, in
    _inst = Random()
    File "C:\Python27\lib\random.py", line 97, in __init__
    self.seed(x)
    File "C:\Python27\lib\random.py", line 115, in seed
    a = long(_hexlify(_urandom(2500)), 16)
    WindowsError: [Error -2146893801] Windows Error 0x80090017

    ReplyDelete

Post a Comment

Popular Posts