I am using PyInstaller now for building, but I still have a problem! My error is as follows:

Traceback (most recent call last):
File C:/Users/Jack/Desktop/pyinstaller-pyinstaller-61571d6/PyInstaller/Build.py
from PyInstaller.loader import pyi_archive, pyi_carchive
ImportError: cannot import name pyi_archive

Please help! I am very frustrated with no way to compile my scripts!

Recommended Answers

All 2 Replies

Better you user pip installer instead off pyinstaller...
or else you can use easy_install
Hope this helps.

How to build exe from python:

  1. You need windows machine.
  2. Install python2.7 http://www.python.org/ftp/python/2.7.4/python-2.7.4.msi
  3. Install win32api http://ignum.dl.sourceforge.net/project/pywin32/pywin32/Build%20218/pywin32-218.win32-py2.7.exe
  4. Download pyinstaller http://citylan.dl.sourceforge.net/project/pyinstaller/2.0/pyinstaller-2.0.zip
  5. Unzip it. Open cmd and go to pyinstaller-2.0 folder.
  6. CMD: python utils\Makespec.py --onefile C:\path\to\your_script.py
    You get spec for building exe file. this command create folder your_script and spec file inside it.
  7. CMD: python utils\Build.py your_script \ your_script.spec
  8. go to your_script folder and there are two folder inside: dist and build. One of it contains your_script.exe
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.