Q- สอบถามครับ เกี่ยวกับปัญหาการติดตั้ง pyinstaller

แนะนำ สอบถาม ภาษา C สำหรับผู้เริ่มต้น ภาษา Java ภาษา Python

Moderator: mindphp, ผู้ดูแลกระดาน

tatiya
PHP VIP Members
PHP VIP Members
โพสต์: 2845
ลงทะเบียนเมื่อ: 09/07/2018 9:35 am

Q- สอบถามครับ เกี่ยวกับปัญหาการติดตั้ง pyinstaller

โพสต์ที่ยังไม่ได้อ่าน โดย tatiya »

คือตอนนี้ผมกำลังทำงาน Python GUI ตัวหนึ่งอยู่ครับ และตอนนี้ผมต้องการทำไฟล์ .py เพื่อให้เป็นไฟล์ .exe ครับ (ผมใช้งานระบบปฎิบัติการ Ubuntu และใช้งาน Python 2.7.6) ผมได้ดูมาจาก [urlชhttp://www.mindphp.com/forums/viewtopic.php?f=144&t=45835]กระทู้นี้[/url] และผมได้ลองทำการติดตั้งตาม ด้วยโค้ด

โค้ด: เลือกทั้งหมด

pip install pyinstaller
ผลลัพท์

โค้ด: เลือกทั้งหมด

copying PyInstaller/hooks/hook-pyopencl.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-pyproj.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-pytest.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-pythoncom.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-pyttsx.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-pytz.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-pywintypes.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-qtawesome.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-raven.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-rawpy.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-redmine.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-regex.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-reportlab.lib.utils.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-reportlab.pdfbase._fontdata.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-requests.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-scapy.layers.all.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-scipy.io.matlab.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-scipy.linalg.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-scipy.sparse.csgraph.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-scipy.special._ellip_harm_2.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-scipy.special._ufuncs.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-selenium.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-setuptools.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-shapely.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-shelve.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-skimage.transform.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-sklearn.metrics.cluster.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-sound_lib.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-speech_recognition.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-sphinx.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-sqlalchemy.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-sqlite3.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-storm.database.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-sysconfig.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-tables.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-u1db.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-unidecode.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-uniseg.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-usb.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-vtkpython.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-weasyprint.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-win32com.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-wx.lib.activex.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-wx.lib.pubsub.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-wx.xrc.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-xml.dom.domreg.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-xml.dom.html.HTMLDocument.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-xml.etree.cElementTree.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-xml.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-xml.sax.saxexts.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-xsge_gui.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-zeep.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

copying PyInstaller/hooks/hook-zmq.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks

creating build/lib.linux-x86_64-2.7/PyInstaller/hooks/pre_find_module_path

copying PyInstaller/hooks/pre_find_module_path/__init__.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks/pre_find_module_path

copying PyInstaller/hooks/pre_find_module_path/hook-PyQt4.uic.port_v2.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks/pre_find_module_path

copying PyInstaller/hooks/pre_find_module_path/hook-PyQt4.uic.port_v3.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks/pre_find_module_path

copying PyInstaller/hooks/pre_find_module_path/hook-PyQt5.uic.port_v2.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks/pre_find_module_path

copying PyInstaller/hooks/pre_find_module_path/hook-PyQt5.uic.port_v3.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks/pre_find_module_path

copying PyInstaller/hooks/pre_find_module_path/hook-distutils.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks/pre_find_module_path

copying PyInstaller/hooks/pre_find_module_path/hook-site.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks/pre_find_module_path

creating build/lib.linux-x86_64-2.7/PyInstaller/hooks/pre_safe_import_module

copying PyInstaller/hooks/pre_safe_import_module/__init__.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks/pre_safe_import_module

copying PyInstaller/hooks/pre_safe_import_module/hook-_xmlplus.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks/pre_safe_import_module

copying PyInstaller/hooks/pre_safe_import_module/hook-gi.repository.Atk.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks/pre_safe_import_module

copying PyInstaller/hooks/pre_safe_import_module/hook-gi.repository.GIRepository.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks/pre_safe_import_module

copying PyInstaller/hooks/pre_safe_import_module/hook-gi.repository.GLib.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks/pre_safe_import_module

copying PyInstaller/hooks/pre_safe_import_module/hook-gi.repository.GModule.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks/pre_safe_import_module

copying PyInstaller/hooks/pre_safe_import_module/hook-gi.repository.GObject.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks/pre_safe_import_module

copying PyInstaller/hooks/pre_safe_import_module/hook-gi.repository.Gdk.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks/pre_safe_import_module

copying PyInstaller/hooks/pre_safe_import_module/hook-gi.repository.GdkPixbuf.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks/pre_safe_import_module

copying PyInstaller/hooks/pre_safe_import_module/hook-gi.repository.Gio.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks/pre_safe_import_module

copying PyInstaller/hooks/pre_safe_import_module/hook-gi.repository.Gst.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks/pre_safe_import_module

copying PyInstaller/hooks/pre_safe_import_module/hook-gi.repository.GstAudio.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks/pre_safe_import_module

copying PyInstaller/hooks/pre_safe_import_module/hook-gi.repository.GstBase.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks/pre_safe_import_module

copying PyInstaller/hooks/pre_safe_import_module/hook-gi.repository.GstPbutils.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks/pre_safe_import_module

copying PyInstaller/hooks/pre_safe_import_module/hook-gi.repository.GstTag.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks/pre_safe_import_module

copying PyInstaller/hooks/pre_safe_import_module/hook-gi.repository.GstVideo.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks/pre_safe_import_module

copying PyInstaller/hooks/pre_safe_import_module/hook-gi.repository.Gtk.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks/pre_safe_import_module

copying PyInstaller/hooks/pre_safe_import_module/hook-gi.repository.Pango.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks/pre_safe_import_module

copying PyInstaller/hooks/pre_safe_import_module/hook-gi.repository.PangoCairo.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks/pre_safe_import_module

copying PyInstaller/hooks/pre_safe_import_module/hook-gi.repository.cairo.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks/pre_safe_import_module

copying PyInstaller/hooks/pre_safe_import_module/hook-requests.packages.urllib3.packages.six.moves.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks/pre_safe_import_module

copying PyInstaller/hooks/pre_safe_import_module/hook-six.moves.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks/pre_safe_import_module

copying PyInstaller/hooks/pre_safe_import_module/hook-urllib3.packages.six.moves.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks/pre_safe_import_module

copying PyInstaller/hooks/pre_safe_import_module/hook-win32com.py -> build/lib.linux-x86_64-2.7/PyInstaller/hooks/pre_safe_import_module

creating build/lib.linux-x86_64-2.7/PyInstaller/lib

copying PyInstaller/lib/README.rst -> build/lib.linux-x86_64-2.7/PyInstaller/lib

copying PyInstaller/lib/__init__.py -> build/lib.linux-x86_64-2.7/PyInstaller/lib

creating build/lib.linux-x86_64-2.7/PyInstaller/lib/altgraph

copying PyInstaller/lib/altgraph/Dot.py -> build/lib.linux-x86_64-2.7/PyInstaller/lib/altgraph

copying PyInstaller/lib/altgraph/Graph.py -> build/lib.linux-x86_64-2.7/PyInstaller/lib/altgraph

copying PyInstaller/lib/altgraph/GraphAlgo.py -> build/lib.linux-x86_64-2.7/PyInstaller/lib/altgraph

copying PyInstaller/lib/altgraph/GraphStat.py -> build/lib.linux-x86_64-2.7/PyInstaller/lib/altgraph

copying PyInstaller/lib/altgraph/GraphUtil.py -> build/lib.linux-x86_64-2.7/PyInstaller/lib/altgraph

copying PyInstaller/lib/altgraph/ObjectGraph.py -> build/lib.linux-x86_64-2.7/PyInstaller/lib/altgraph

copying PyInstaller/lib/altgraph/__init__.py -> build/lib.linux-x86_64-2.7/PyInstaller/lib/altgraph

creating build/lib.linux-x86_64-2.7/PyInstaller/lib/modulegraph

copying PyInstaller/lib/modulegraph/__init__.py -> build/lib.linux-x86_64-2.7/PyInstaller/lib/modulegraph

copying PyInstaller/lib/modulegraph/__main__.py -> build/lib.linux-x86_64-2.7/PyInstaller/lib/modulegraph

copying PyInstaller/lib/modulegraph/_compat.py -> build/lib.linux-x86_64-2.7/PyInstaller/lib/modulegraph

copying PyInstaller/lib/modulegraph/find_modules.py -> build/lib.linux-x86_64-2.7/PyInstaller/lib/modulegraph

copying PyInstaller/lib/modulegraph/modulegraph.py -> build/lib.linux-x86_64-2.7/PyInstaller/lib/modulegraph

copying PyInstaller/lib/modulegraph/util.py -> build/lib.linux-x86_64-2.7/PyInstaller/lib/modulegraph

copying PyInstaller/lib/modulegraph/zipio.py -> build/lib.linux-x86_64-2.7/PyInstaller/lib/modulegraph

creating build/lib.linux-x86_64-2.7/PyInstaller/loader

copying PyInstaller/loader/__init__.py -> build/lib.linux-x86_64-2.7/PyInstaller/loader

copying PyInstaller/loader/pyiboot01_bootstrap.py -> build/lib.linux-x86_64-2.7/PyInstaller/loader

copying PyInstaller/loader/pyimod01_os_path.py -> build/lib.linux-x86_64-2.7/PyInstaller/loader

copying PyInstaller/loader/pyimod02_archive.py -> build/lib.linux-x86_64-2.7/PyInstaller/loader

copying PyInstaller/loader/pyimod03_importers.py -> build/lib.linux-x86_64-2.7/PyInstaller/loader

copying PyInstaller/loader/rthooks.dat -> build/lib.linux-x86_64-2.7/PyInstaller/loader

creating build/lib.linux-x86_64-2.7/PyInstaller/loader/rthooks

copying PyInstaller/loader/rthooks/__init__.py -> build/lib.linux-x86_64-2.7/PyInstaller/loader/rthooks

copying PyInstaller/loader/rthooks/pyi_rth__tkinter.py -> build/lib.linux-x86_64-2.7/PyInstaller/loader/rthooks

copying PyInstaller/loader/rthooks/pyi_rth_django.py -> build/lib.linux-x86_64-2.7/PyInstaller/loader/rthooks

copying PyInstaller/loader/rthooks/pyi_rth_enchant.py -> build/lib.linux-x86_64-2.7/PyInstaller/loader/rthooks

copying PyInstaller/loader/rthooks/pyi_rth_gdkpixbuf.py -> build/lib.linux-x86_64-2.7/PyInstaller/loader/rthooks

copying PyInstaller/loader/rthooks/pyi_rth_gi.py -> build/lib.linux-x86_64-2.7/PyInstaller/loader/rthooks

copying PyInstaller/loader/rthooks/pyi_rth_gio.py -> build/lib.linux-x86_64-2.7/PyInstaller/loader/rthooks

copying PyInstaller/loader/rthooks/pyi_rth_glib.py -> build/lib.linux-x86_64-2.7/PyInstaller/loader/rthooks

copying PyInstaller/loader/rthooks/pyi_rth_gstreamer.py -> build/lib.linux-x86_64-2.7/PyInstaller/loader/rthooks

copying PyInstaller/loader/rthooks/pyi_rth_gtk.py -> build/lib.linux-x86_64-2.7/PyInstaller/loader/rthooks

copying PyInstaller/loader/rthooks/pyi_rth_kivy.py -> build/lib.linux-x86_64-2.7/PyInstaller/loader/rthooks

copying PyInstaller/loader/rthooks/pyi_rth_mplconfig.py -> build/lib.linux-x86_64-2.7/PyInstaller/loader/rthooks

copying PyInstaller/loader/rthooks/pyi_rth_mpldata.py -> build/lib.linux-x86_64-2.7/PyInstaller/loader/rthooks

copying PyInstaller/loader/rthooks/pyi_rth_multiprocessing.py -> build/lib.linux-x86_64-2.7/PyInstaller/loader/rthooks

copying PyInstaller/loader/rthooks/pyi_rth_osgeo.py -> build/lib.linux-x86_64-2.7/PyInstaller/loader/rthooks

copying PyInstaller/loader/rthooks/pyi_rth_pkgres.py -> build/lib.linux-x86_64-2.7/PyInstaller/loader/rthooks

copying PyInstaller/loader/rthooks/pyi_rth_qml.py -> build/lib.linux-x86_64-2.7/PyInstaller/loader/rthooks

copying PyInstaller/loader/rthooks/pyi_rth_qt4plugins.py -> build/lib.linux-x86_64-2.7/PyInstaller/loader/rthooks

copying PyInstaller/loader/rthooks/pyi_rth_qt5.py -> build/lib.linux-x86_64-2.7/PyInstaller/loader/rthooks

copying PyInstaller/loader/rthooks/pyi_rth_qt5plugins.py -> build/lib.linux-x86_64-2.7/PyInstaller/loader/rthooks

copying PyInstaller/loader/rthooks/pyi_rth_qt5webengine.py -> build/lib.linux-x86_64-2.7/PyInstaller/loader/rthooks

copying PyInstaller/loader/rthooks/pyi_rth_traitlets.py -> build/lib.linux-x86_64-2.7/PyInstaller/loader/rthooks

copying PyInstaller/loader/rthooks/pyi_rth_twisted.py -> build/lib.linux-x86_64-2.7/PyInstaller/loader/rthooks

copying PyInstaller/loader/rthooks/pyi_rth_usb.py -> build/lib.linux-x86_64-2.7/PyInstaller/loader/rthooks

copying PyInstaller/loader/rthooks/pyi_rth_win32comgenpy.py -> build/lib.linux-x86_64-2.7/PyInstaller/loader/rthooks

creating build/lib.linux-x86_64-2.7/PyInstaller/utils

copying PyInstaller/utils/__init__.py -> build/lib.linux-x86_64-2.7/PyInstaller/utils

copying PyInstaller/utils/_gitrevision.py -> build/lib.linux-x86_64-2.7/PyInstaller/utils

copying PyInstaller/utils/git.py -> build/lib.linux-x86_64-2.7/PyInstaller/utils

copying PyInstaller/utils/misc.py -> build/lib.linux-x86_64-2.7/PyInstaller/utils

copying PyInstaller/utils/osx.py -> build/lib.linux-x86_64-2.7/PyInstaller/utils

copying PyInstaller/utils/release.py -> build/lib.linux-x86_64-2.7/PyInstaller/utils

copying PyInstaller/utils/tests.py -> build/lib.linux-x86_64-2.7/PyInstaller/utils

creating build/lib.linux-x86_64-2.7/PyInstaller/utils/cliutils

copying PyInstaller/utils/cliutils/__init__.py -> build/lib.linux-x86_64-2.7/PyInstaller/utils/cliutils

copying PyInstaller/utils/cliutils/archive_viewer.py -> build/lib.linux-x86_64-2.7/PyInstaller/utils/cliutils

copying PyInstaller/utils/cliutils/bindepend.py -> build/lib.linux-x86_64-2.7/PyInstaller/utils/cliutils

copying PyInstaller/utils/cliutils/grab_version.py -> build/lib.linux-x86_64-2.7/PyInstaller/utils/cliutils

copying PyInstaller/utils/cliutils/makespec.py -> build/lib.linux-x86_64-2.7/PyInstaller/utils/cliutils

copying PyInstaller/utils/cliutils/set_version.py -> build/lib.linux-x86_64-2.7/PyInstaller/utils/cliutils

creating build/lib.linux-x86_64-2.7/PyInstaller/utils/hooks

copying PyInstaller/utils/hooks/__init__.py -> build/lib.linux-x86_64-2.7/PyInstaller/utils/hooks

copying PyInstaller/utils/hooks/django.py -> build/lib.linux-x86_64-2.7/PyInstaller/utils/hooks

copying PyInstaller/utils/hooks/gi.py -> build/lib.linux-x86_64-2.7/PyInstaller/utils/hooks

copying PyInstaller/utils/hooks/qt.py -> build/lib.linux-x86_64-2.7/PyInstaller/utils/hooks

copying PyInstaller/utils/hooks/win32.py -> build/lib.linux-x86_64-2.7/PyInstaller/utils/hooks

creating build/lib.linux-x86_64-2.7/PyInstaller/utils/hooks/subproc

copying PyInstaller/utils/hooks/subproc/README -> build/lib.linux-x86_64-2.7/PyInstaller/utils/hooks/subproc

copying PyInstaller/utils/hooks/subproc/__init__.py -> build/lib.linux-x86_64-2.7/PyInstaller/utils/hooks/subproc

copying PyInstaller/utils/hooks/subproc/django_import_finder.py -> build/lib.linux-x86_64-2.7/PyInstaller/utils/hooks/subproc

creating build/lib.linux-x86_64-2.7/PyInstaller/utils/win32

copying PyInstaller/utils/win32/__init__.py -> build/lib.linux-x86_64-2.7/PyInstaller/utils/win32

copying PyInstaller/utils/win32/icon.py -> build/lib.linux-x86_64-2.7/PyInstaller/utils/win32

copying PyInstaller/utils/win32/versioninfo.py -> build/lib.linux-x86_64-2.7/PyInstaller/utils/win32

copying PyInstaller/utils/win32/winmanifest.py -> build/lib.linux-x86_64-2.7/PyInstaller/utils/win32

copying PyInstaller/utils/win32/winresource.py -> build/lib.linux-x86_64-2.7/PyInstaller/utils/win32

copying PyInstaller/utils/win32/winutils.py -> build/lib.linux-x86_64-2.7/PyInstaller/utils/win32

running install_lib

creating /usr/local/lib/python2.7/dist-packages/PyInstaller

error: could not create '/usr/local/lib/python2.7/dist-packages/PyInstaller': Permission denied

----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_com008/pyinstaller/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-0z95I7-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_com008/pyinstaller
Storing debug log for failure in /home/com008/.pip/pip.log
com008@com008-K45A:~$ 
Selection_725.png
Selection_725.png (63.86 KiB) Viewed 905 times
สอบถามวิธีแก้ปัญหาครับ
tatiya
PHP VIP Members
PHP VIP Members
โพสต์: 2845
ลงทะเบียนเมื่อ: 09/07/2018 9:35 am

Re: Q- สอบถามครับ เกี่ยวกับปัญหาการติดตั้ง pyinstaller

โพสต์ที่ยังไม่ได้อ่าน โดย tatiya »

แก้ไขได้แล้วครับ โดยมีวิธีการคือ ผมทำการติดตั้งผ่าน editer Pycharm เลยครับ (ผมใช้ Pycharm ในการเขียน python นะครับ)
โดยใช้งาน โค้ดเดิมครับ

โค้ด: เลือกทั้งหมด

pip install pyinstaller
เวลาจะแปลงไฟล์ .py เป็น .exe โดยการที่เรา จะต้องว่าง path ไปที่ไฟล .py ที่เราต้องการ แล้วก้ทำการ

โค้ด: เลือกทั้งหมด

pyinstaller ชื่อไฟล์.py
รอ
ผลลัพท์

โค้ด: เลือกทั้งหมด

(venv) com008@com008-K45A:~/NetBeansProjects/python_test/M065/test_selenium/mdsoft_auto_search_keyword$ pyinstaller mdsoft_auto_search_keyword.py
311 INFO: PyInstaller: 3.3.1
312 INFO: Python: 3.4.3
312 INFO: Platform: Linux-4.4.0-131-generic-x86_64-with-Ubuntu-14.04-trusty
313 INFO: wrote /home/com008/NetBeansProjects/python_test/M065/test_selenium/mdsoft_auto_search_keyword/mdsoft_auto_search_keyword.spec
318 INFO: UPX is not available.
359 INFO: Extending PYTHONPATH with paths
['/home/com008/NetBeansProjects/python_test/M065/test_selenium/mdsoft_auto_search_keyword',
 '/home/com008/NetBeansProjects/python_test/M065/test_selenium/mdsoft_auto_search_keyword']
359 INFO: checking Analysis
359 INFO: Building Analysis because out00-Analysis.toc is non existent
359 INFO: Initializing module dependency graph...
362 INFO: Initializing module graph hooks...
381 INFO: Analyzing base_library.zip ...
7292 INFO: Processing pre-find module path hook   distutils
13087 INFO: running Analysis out00-Analysis.toc
13231 INFO: Caching module hooks...
13240 INFO: Analyzing /home/com008/NetBeansProjects/python_test/M065/test_selenium/mdsoft_auto_search_keyword/mdsoft_auto_search_keyword.py
18305 INFO: Processing pre-safe import module hook   six.moves
25055 INFO: Processing pre-find module path hook   site
25081 INFO: site: retargeting to fake-dir '/home/com008/tatiya_test/venv/lib/python3.4/site-packages/PyInstaller/fake-modules'
66153 INFO: Processing pre-safe import module hook   urllib3.packages.six.moves
77158 INFO: Loading module hooks...
77158 INFO: Loading module hook "hook-matplotlib.py"...
78574 INFO: Loading module hook "hook-sqlite3.py"...
78987 INFO: Loading module hook "hook-distutils.py"...
Unable to find "/usr/include/python3.4m/pyconfig.h" when adding binary and data files.


แต่มีปัญหาใหม่ก็คือ มันไม่มีไฟล์ .exe ออกมาครับ
Workspace 1_727.png
dist_728.png
ตอบกลับโพส
  • Similar Topics
    ตอบกลับ
    แสดง
    โพสต์ล่าสุด

ผู้ใช้งานขณะนี้

สมาชิกกำลังดูบอร์ดนี้: ไม่มีสมาชิกใหม่ และบุคลทั่วไป 94