- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
首先我会提到我通过 Windows 7 上的 Anaconda 发行版使用 Python 2.7.6。
运行 pyinstaller --onefile MyScripy.py
时,我只收到一个错误,即标题中提到的错误,并且创建了 exe。运行 exe 时,使用 ctypes 库时出现一些问题,我认为这些问题与上述错误有关。
我在 pyinstaller 命令的输出中总共遇到了 12 次此错误。这是完整的输出:
2776 INFO: Processing hook hook-xml.sax
2807 INFO: Processing hook hook-pyexpat
3338 INFO: Processing hook hook-matplotlib
3602 INFO: Processing hook hook-sysconfig
3602 INFO: Processing hook hook-parser
4430 INFO: Processing hook hook-setuptools
4601 INFO: Processing hook hook-win32com
4616 INFO: Processing hook hook-win32com.client
4616 INFO: Processing hook hook-pythoncom
4680 INFO: Processing hook hook-pywintypes
4757 INFO: Processing hook hook-win32ui
5240 INFO: Processing hook hook-scipy.sparse.csgraph
5349 INFO: Processing hook hook-PIL
5365 INFO: Processing hook hook-PIL.Image
5444 INFO: Processing hook hook-Image
5661 INFO: Processing hook hook-PIL.SpiderImagePlugin
6473 INFO: Processing hook hook-pytz
6661 INFO: Processing hook hook-lxml.etree
6675 INFO: Processing hook hook-xml.etree.cElementTree
6691 INFO: Processing hook hook-_elementtree
8204 INFO: Processing hook hook-PyQt4
15583 INFO: Processing hook hook-PyQt4.QtGui
20779 INFO: Processing hook hook-matplotlib.backends
21200 INFO: Processing hook hook-PyQt4.QtCore
21309 INFO: Processing hook hook-_tkinter
21402 INFO: checking Tree
21402 INFO: building because out00-Tree.toc missing or bad
21402 INFO: building Tree out00-Tree.toc
21573 INFO: checking Tree
21573 INFO: building because out01-Tree.toc missing or bad
21573 INFO: building Tree out01-Tree.toc
21762 INFO: Processing hook hook-tables
22776 INFO: Processing hook hook-sqlalchemy
23243 INFO: Processing hook hook-sqlite3
24148 INFO: Processing hook hook-IPython
24615 INFO: Processing hook hook-zmq
24819 INFO: Processing hook hook-PyQt4.QtSvg
24881 INFO: Processing hook hook-xml.dom
24912 INFO: Processing hook hook-xml.dom.domreg
26394 INFO: Processing hook hook-docutils
26721 INFO: Processing hook hook-pygments.lexers
26753 INFO: Processing hook hook-pygments.styles
28125 INFO: Processing hook hook-sphinx
28157 INFO: Processing hook hook-jinja2
28859 INFO: Processing hook hook-scipy.io.matlab
29592 INFO: Hidden import 'codecs' has been found otherwise
29592 INFO: Hidden import 'encodings' has been found otherwise
29592 INFO: Looking for run-time hooks
29592 INFO: Analyzing rthook C:\Users\Patrick\Anaconda\lib\site-packages\pyinstaller-2.1-py2.7.egg\P
yInstaller\loader\rthooks\pyi_rth_pkgres.py
29733 INFO: Analyzing rthook C:\Users\Patrick\Anaconda\lib\site-packages\pyinstaller-2.1-py2.7.egg\P
yInstaller\loader\rthooks\pyi_rth_Image.py
29826 INFO: Analyzing rthook C:\Users\Patrick\Anaconda\lib\site-packages\pyinstaller-2.1-py2.7.egg\P
yInstaller\loader\rthooks\pyi_rth_mplconfig.py
29920 INFO: Analyzing rthook C:\Users\Patrick\Anaconda\lib\site-packages\pyinstaller-2.1-py2.7.egg\P
yInstaller\loader\rthooks\pyi_rth_mpldata.py
30013 INFO: Analyzing rthook C:\Users\Patrick\Anaconda\lib\site-packages\pyinstaller-2.1-py2.7.egg\P
yInstaller\loader\rthooks\pyi_rth_win32comgenpy.py
30122 INFO: Analyzing rthook C:\Users\Patrick\Anaconda\lib\site-packages\pyinstaller-2.1-py2.7.egg\P
yInstaller\loader\rthooks\pyi_rth_PIL_Image.py
30200 INFO: Analyzing rthook C:\Users\Patrick\Anaconda\lib\site-packages\pyinstaller-2.1-py2.7.egg\P
yInstaller\loader\rthooks\pyi_rth_Tkinter.py
30279 INFO: Analyzing rthook C:\Users\Patrick\Anaconda\lib\site-packages\pyinstaller-2.1-py2.7.egg\P
yInstaller\loader\rthooks\pyi_rth_qt4plugins.py
30668 INFO: Searching for assembly amd64_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none ...
30668 WARNING: Assembly not found
30668 ERROR: Assembly amd64_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none not found
31152 INFO: Searching for assembly amd64_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none ...
31152 WARNING: Assembly not found
31152 ERROR: Assembly amd64_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none not found
32915 WARNING: lib not found: libzmq.pyd dependency of C:\Users\Patrick\Anaconda\lib\site-packages\z
mq\devices\monitoredqueue.pyd
33102 INFO: Searching for assembly amd64_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none ...
33102 WARNING: Assembly not found
33102 ERROR: Assembly amd64_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none not found
34944 INFO: Adding Microsoft.VC90.MFC to dependent assemblies of final executable
35036 INFO: Searching for assembly amd64_Microsoft.VC90.MFC_1fc8b3b9a1e18e3b_9.0.21022.8_none ...
35036 INFO: Found manifest C:\Users\Patrick\Anaconda\lib\site-packages\Pythonwin\Microsoft.VC90.MFC.
manifest
35036 INFO: Searching for file mfc90.dll
35036 INFO: Found file C:\Users\Patrick\Anaconda\lib\site-packages\Pythonwin\mfc90.dll
35036 INFO: Searching for file mfc90u.dll
35036 INFO: Found file C:\Users\Patrick\Anaconda\lib\site-packages\Pythonwin\mfc90u.dll
35036 INFO: Searching for file mfcm90.dll
35036 INFO: Found file C:\Users\Patrick\Anaconda\lib\site-packages\Pythonwin\mfcm90.dll
35036 INFO: Searching for file mfcm90u.dll
35036 INFO: Found file C:\Users\Patrick\Anaconda\lib\site-packages\Pythonwin\mfcm90u.dll
36690 INFO: Searching for assembly amd64_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none ...
36690 WARNING: Assembly not found
36690 ERROR: Assembly amd64_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none not found
36986 INFO: Searching for assembly amd64_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none ...
36986 WARNING: Assembly not found
36986 ERROR: Assembly amd64_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none not found
37128 INFO: Searching for assembly amd64_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none ...
37128 WARNING: Assembly not found
37128 ERROR: Assembly amd64_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none not found
37251 INFO: Searching for assembly amd64_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none ...
37251 WARNING: Assembly not found
37251 ERROR: Assembly amd64_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none not found
37845 INFO: Searching for assembly amd64_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none ...
37845 WARNING: Assembly not found
37861 ERROR: Assembly amd64_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none not found
38203 INFO: Searching for assembly amd64_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none ...
38203 WARNING: Assembly not found
38203 ERROR: Assembly amd64_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none not found
38250 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
38328 INFO: Searching for assembly amd64_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none ...
38328 WARNING: Assembly not found
38328 ERROR: Assembly amd64_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none not found
41230 INFO: Using Python library C:\Users\Patrick\Anaconda\python27.dll
41838 INFO: Warnings written to C:\Users\Patrick\Google Drive\KNN\build\KNN\warnKNN.txt
41978 INFO: checking PYZ
41978 INFO: rebuilding out00-PYZ.toc because out00-PYZ.pyz is missing
41978 INFO: building PYZ (ZlibArchive) out00-PYZ.toc
52009 INFO: checking PKG
52009 INFO: rebuilding out00-PKG.toc because out00-PKG.pkg is missing
52009 INFO: building PKG (CArchive) out00-PKG.pkg
87062 INFO: checking EXE
87062 INFO: rebuilding out00-EXE.toc because KNN.exe missing
87062 INFO: building EXE from out00-EXE.toc
87062 INFO: Appending archive to EXE C:\Users\Patrick\Google Drive\KNN\dist\KNN.exe
C:\Users\Patrick\Google Drive\KNN>pyinstaller --onedir KNN.py
19 INFO: wrote C:\Users\Patrick\Google Drive\KNN\KNN.spec
32 INFO: Testing for ability to set icons, version resources...
49 INFO: ... resource update available
49 INFO: UPX is not available.
65 INFO: Processing hook hook-os
150 INFO: Processing hook hook-time
151 INFO: Processing hook hook-cPickle
200 INFO: Processing hook hook-_sre
286 INFO: Processing hook hook-cStringIO
352 INFO: Processing hook hook-encodings
361 INFO: Processing hook hook-codecs
638 INFO: Processing hook hook-httplib
641 INFO: Processing hook hook-email
718 INFO: Processing hook hook-email.message
881 WARNING: library python%s%s required via ctypes not found
980 INFO: Extending PYTHONPATH with C:\Users\Patrick\Google Drive\KNN
980 INFO: checking Analysis
981 INFO: building Analysis because out00-Analysis.toc non existent
981 INFO: running Analysis out00-Analysis.toc
983 INFO: Adding Microsoft.VC90.CRT to dependent assemblies of final executable
1065 INFO: Searching for assembly amd64_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none ...
1065 WARNING: Assembly not found
1065 ERROR: Assembly amd64_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none not found
1154 INFO: Searching for assembly amd64_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none ...
1154 WARNING: Assembly not found
1154 ERROR: Assembly amd64_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none not found
1243 INFO: Analyzing C:\Users\Patrick\Anaconda\lib\site-packages\pyinstaller-2.1-py2.7.egg\PyInstall
er\loader\_pyi_bootstrap.py
1253 INFO: Processing hook hook-os
1264 INFO: Processing hook hook-site
1276 INFO: Processing hook hook-encodings
1359 INFO: Processing hook hook-time
1362 INFO: Processing hook hook-cPickle
1411 INFO: Processing hook hook-_sre
1502 INFO: Processing hook hook-cStringIO
1578 INFO: Processing hook hook-codecs
1861 INFO: Processing hook hook-httplib
1864 INFO: Processing hook hook-email
1943 INFO: Processing hook hook-email.message
2111 WARNING: library python%s%s required via ctypes not found
2236 INFO: Processing hook hook-pydoc
2282 INFO: Analyzing C:\Users\Patrick\Anaconda\lib\site-packages\pyinstaller-2.1-py2.7.egg\PyInstall
er\loader\pyi_importers.py
2369 INFO: Analyzing C:\Users\Patrick\Anaconda\lib\site-packages\pyinstaller-2.1-py2.7.egg\PyInstall
er\loader\pyi_archive.py
2453 INFO: Analyzing C:\Users\Patrick\Anaconda\lib\site-packages\pyinstaller-2.1-py2.7.egg\PyInstall
er\loader\pyi_carchive.py
2533 INFO: Analyzing C:\Users\Patrick\Anaconda\lib\site-packages\pyinstaller-2.1-py2.7.egg\PyInstall
er\loader\pyi_os_path.py
2540 INFO: Analyzing KNN.py
2632 INFO: Processing hook hook-distutils
2754 INFO: Processing hook hook-xml
2809 INFO: Processing hook hook-xml.sax
2832 INFO: Processing hook hook-pyexpat
3381 INFO: Processing hook hook-matplotlib
3648 INFO: Processing hook hook-sysconfig
3651 INFO: Processing hook hook-parser
4522 INFO: Processing hook hook-setuptools
4703 INFO: Processing hook hook-win32com
4710 INFO: Processing hook hook-win32com.client
4720 INFO: Processing hook hook-pythoncom
4772 INFO: Processing hook hook-pywintypes
4862 INFO: Processing hook hook-win32ui
5375 INFO: Processing hook hook-scipy.sparse.csgraph
5490 INFO: Processing hook hook-PIL
5506 INFO: Processing hook hook-PIL.Image
5598 INFO: Processing hook hook-Image
5823 INFO: Processing hook hook-PIL.SpiderImagePlugin
6670 INFO: Processing hook hook-pytz
6871 INFO: Processing hook hook-lxml.etree
6877 INFO: Processing hook hook-xml.etree.cElementTree
6891 INFO: Processing hook hook-_elementtree
8502 INFO: Processing hook hook-PyQt4
8503 INFO: Processing hook hook-PyQt4.QtGui
13757 INFO: Processing hook hook-matplotlib.backends
14190 INFO: Processing hook hook-PyQt4.QtCore
14305 INFO: Processing hook hook-_tkinter
14415 INFO: checking Tree
14417 INFO: building because out00-Tree.toc missing or bad
14417 INFO: building Tree out00-Tree.toc
14579 INFO: checking Tree
14579 INFO: building because out01-Tree.toc missing or bad
14579 INFO: building Tree out01-Tree.toc
14777 INFO: Processing hook hook-tables
15864 INFO: Processing hook hook-sqlalchemy
16348 INFO: Processing hook hook-sqlite3
17246 INFO: Processing hook hook-IPython
17729 INFO: Processing hook hook-zmq
17938 INFO: Processing hook hook-PyQt4.QtSvg
18002 INFO: Processing hook hook-xml.dom
18023 INFO: Processing hook hook-xml.dom.domreg
19514 INFO: Processing hook hook-docutils
19856 INFO: Processing hook hook-pygments.lexers
19885 INFO: Processing hook hook-pygments.styles
21273 INFO: Processing hook hook-sphinx
21298 INFO: Processing hook hook-jinja2
22033 INFO: Processing hook hook-scipy.io.matlab
22779 INFO: Hidden import 'codecs' has been found otherwise
22779 INFO: Hidden import 'encodings' has been found otherwise
22779 INFO: Looking for run-time hooks
22783 INFO: Analyzing rthook C:\Users\Patrick\Anaconda\lib\site-packages\pyinstaller-2.1-py2.7.egg\P
yInstaller\loader\rthooks\pyi_rth_pkgres.py
22930 INFO: Analyzing rthook C:\Users\Patrick\Anaconda\lib\site-packages\pyinstaller-2.1-py2.7.egg\P
yInstaller\loader\rthooks\pyi_rth_Image.py
23013 INFO: Analyzing rthook C:\Users\Patrick\Anaconda\lib\site-packages\pyinstaller-2.1-py2.7.egg\P
yInstaller\loader\rthooks\pyi_rth_mplconfig.py
23105 INFO: Analyzing rthook C:\Users\Patrick\Anaconda\lib\site-packages\pyinstaller-2.1-py2.7.egg\P
yInstaller\loader\rthooks\pyi_rth_mpldata.py
23184 INFO: Analyzing rthook C:\Users\Patrick\Anaconda\lib\site-packages\pyinstaller-2.1-py2.7.egg\P
yInstaller\loader\rthooks\pyi_rth_win32comgenpy.py
23279 INFO: Analyzing rthook C:\Users\Patrick\Anaconda\lib\site-packages\pyinstaller-2.1-py2.7.egg\P
yInstaller\loader\rthooks\pyi_rth_PIL_Image.py
23361 INFO: Analyzing rthook C:\Users\Patrick\Anaconda\lib\site-packages\pyinstaller-2.1-py2.7.egg\P
yInstaller\loader\rthooks\pyi_rth_Tkinter.py
23440 INFO: Analyzing rthook C:\Users\Patrick\Anaconda\lib\site-packages\pyinstaller-2.1-py2.7.egg\P
yInstaller\loader\rthooks\pyi_rth_qt4plugins.py
23825 INFO: Searching for assembly amd64_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none ...
23825 WARNING: Assembly not found
23826 ERROR: Assembly amd64_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none not found
24313 INFO: Searching for assembly amd64_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none ...
24315 WARNING: Assembly not found
24315 ERROR: Assembly amd64_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none not found
26085 WARNING: lib not found: libzmq.pyd dependency of C:\Users\Patrick\Anaconda\lib\site-packages\z
mq\devices\monitoredqueue.pyd
26263 INFO: Searching for assembly amd64_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none ...
26263 WARNING: Assembly not found
26263 ERROR: Assembly amd64_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none not found
27958 INFO: Adding Microsoft.VC90.MFC to dependent assemblies of final executable
28030 INFO: Searching for assembly amd64_Microsoft.VC90.MFC_1fc8b3b9a1e18e3b_9.0.21022.8_none ...
28032 INFO: Found manifest C:\Users\Patrick\Anaconda\lib\site-packages\Pythonwin\Microsoft.VC90.MFC.
manifest
28032 INFO: Searching for file mfc90.dll
28032 INFO: Found file C:\Users\Patrick\Anaconda\lib\site-packages\Pythonwin\mfc90.dll
28033 INFO: Searching for file mfc90u.dll
28033 INFO: Found file C:\Users\Patrick\Anaconda\lib\site-packages\Pythonwin\mfc90u.dll
28033 INFO: Searching for file mfcm90.dll
28033 INFO: Found file C:\Users\Patrick\Anaconda\lib\site-packages\Pythonwin\mfcm90.dll
28035 INFO: Searching for file mfcm90u.dll
28035 INFO: Found file C:\Users\Patrick\Anaconda\lib\site-packages\Pythonwin\mfcm90u.dll
29723 INFO: Searching for assembly amd64_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none ...
29723 WARNING: Assembly not found
29723 ERROR: Assembly amd64_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none not found
30019 INFO: Searching for assembly amd64_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none ...
30019 WARNING: Assembly not found
30019 ERROR: Assembly amd64_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none not found
30160 INFO: Searching for assembly amd64_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none ...
30160 WARNING: Assembly not found
30160 ERROR: Assembly amd64_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none not found
30285 INFO: Searching for assembly amd64_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none ...
30285 WARNING: Assembly not found
30285 ERROR: Assembly amd64_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none not found
30846 INFO: Searching for assembly amd64_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none ...
30846 WARNING: Assembly not found
30846 ERROR: Assembly amd64_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none not found
31174 INFO: Searching for assembly amd64_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none ...
31174 WARNING: Assembly not found
31174 ERROR: Assembly amd64_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none not found
31220 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
31299 INFO: Searching for assembly amd64_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none ...
31299 WARNING: Assembly not found
31299 ERROR: Assembly amd64_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none not found
34091 INFO: Using Python library C:\Users\Patrick\Anaconda\python27.dll
34714 INFO: Warnings written to C:\Users\Patrick\Google Drive\KNN\build\KNN\warnKNN.txt
34792 INFO: checking PYZ
34792 INFO: rebuilding out00-PYZ.toc because out00-PYZ.pyz is missing
34792 INFO: building PYZ (ZlibArchive) out00-PYZ.toc
44621 INFO: checking PKG
44621 INFO: rebuilding out00-PKG.toc because out00-PKG.pkg is missing
44621 INFO: building PKG (CArchive) out00-PKG.pkg
44652 INFO: checking EXE
44652 INFO: rebuilding out00-EXE.toc because KNN.exe missing
44652 INFO: building EXE from out00-EXE.toc
44667 INFO: Appending archive to EXE C:\Users\Patrick\Google Drive\KNN\build\KNN\KNN.exe
44698 INFO: checking COLLECT
44698 INFO: building COLLECT out00-COLLECT.toc
基于这些行:
35036 INFO: Searching for file mfc90.dll
35036 INFO: Found file C:\Users\Patrick\Anaconda\lib\site-packages\Pythonwin\mfc90.dll
35036 INFO: Searching for file mfc90u.dll
35036 INFO: Found file C:\Users\Patrick\Anaconda\lib\site-packages\Pythonwin\mfc90u.dll
35036 INFO: Searching for file mfcm90.dll
35036 INFO: Found file C:\Users\Patrick\Anaconda\lib\site-packages\Pythonwin\mfcm90.dll
35036 INFO: Searching for file mfcm90u.dll
35036 INFO: Found file C:\Users\Patrick\Anaconda\lib\site-packages\Pythonwin
看来 Pyinstaller 正在 C:\Users\Patrick\Anaconda\lib\site-packages\Pythonwin
目录中寻找它需要的 windows .dll,所以我尝试复制 msvcp90.dll
和 msvcm90.dll
有关于 SO here 的这个问题.
但我仍然遇到同样的错误。此外,当我改用 Pyinstaller 命令 pyinstaller --onedir MyScript.py
时,我也会遇到同样的错误。
有谁知道我该如何解决这个错误?
我在家里的笔记本电脑上运行了相同的 pyinstaller 命令,但没有收到任何错误。在 Windows 7 上使用 Anaconda 发行版的相同 python 版本。没有提供完整的日志,这里是包含之前讨论的错误的部分:
87871 INFO: Searching for assembly amd64_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0
.21022.8_none ...
87881 INFO: Found manifest C:\Windows\WinSxS\Manifests\amd64_microsoft.vc90.crt_
1fc8b3b9a1e18e3b_9.0.21022.8_none_750b37ff97f4f68b.manifest
87911 INFO: Searching for file msvcr90.dll
87921 INFO: Found file C:\Windows\WinSxS\amd64_microsoft.vc90.crt_1fc8b3b9a1e18e
3b_9.0.21022.8_none_750b37ff97f4f68b\msvcr90.dll
87921 INFO: Searching for file msvcp90.dll
87921 INFO: Found file C:\Windows\WinSxS\amd64_microsoft.vc90.crt_1fc8b3b9a1e18e
3b_9.0.21022.8_none_750b37ff97f4f68b\msvcp90.dll
87921 INFO: Searching for file msvcm90.dll
87930 INFO: Found file C:\Windows\WinSxS\amd64_microsoft.vc90.crt_1fc8b3b9a1e18e
3b_9.0.21022.8_none_750b37ff97f4f68b\msvcm90.dll
88631 INFO: Analyzing C:\Users\Patrick\Anaconda\lib\site-packages\PyInstaller\lo
ader\_pyi_bootstrap.py
基本上在我的笔记本电脑上,这是找到 msvcr90.dll
、msvcp90.dll
和 msvcm90.dll
的目录。我必须在工作时检查计算机上的这个目录,看看我能找到什么。
最佳答案
碰到这个,SO 帮助看起来很薄,所以这就是我目前所知道的。我用一个讨厌的 hack 来解决这个错误。 pyinstaller 正在从 python.exe list 中获取 msvcr90.dll 的确切版本号,但这不是我找到的任何链接下载的版本 (9.0.21022.8)。我用了ResEdit更新 list 以使用版本 9.0.30729.6161,这是我的\Windows\winsxs 目录中的版本。现在它构建但在运行时失败并出现类似的错误,所以我认为其他一些文件也发生了同样的事情(错误报告为 python27.dll)。
更新:这是一个很好的线索,但我能够通过遵循建议 here 返回到 stock python 并使其全部正常工作并安装 x64 版本的 MS Visual C++ 再分发 vcredist_x64_2008(来自 Microsoft)。如果您混合使用 32 位和 64 位的东西(即它没有失败,而是选择了 32 位版本),似乎包的东西真的很困惑。
关于python - 使用 Pyinstaller 创建 .exe 错误 : Assembly amd64_Microsoft. VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_none not found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27911011/
前言: 有时候,一个数据库有多个帐号,包括数据库管理员,开发人员,运维支撑人员等,可能有很多帐号都有比较大的权限,例如DDL操作权限(创建,修改,删除存储过程,创建,修改,删除表等),账户多了,管理
所以我用 Create React App 创建并设置了一个大型 React 应用程序。最近我们开始使用 Storybook 来处理和创建组件。它很棒。但是,当我们尝试运行或构建应用程序时,我们不断遇
遵循我正在创建的控件的代码片段。这个控件用在不同的地方,变量也不同。 我正在尝试编写指令来清理代码,但在 {{}} 附近插入值时出现解析错误。 刚接触 Angular ,无法确定我错过了什么。请帮忙。
我正在尝试创建一个 image/jpeg jax-rs 提供程序类,它为我的基于 post rest 的 Web 服务创建一个图像。我无法制定请求来测试以下内容,最简单的测试方法是什么? @POST
我一直在 Windows 10 的模拟器中练习 c。后来我改用dev C++ IDE。当我在 C 中使用 FILE 时。创建的文件的名称为 test.txt ,而我给出了其他名称。请帮助解决它。 下面
当我们创建自定义 View 时,我们将 View 文件的所有者设置为自定义类,并使用 initWithFrame 或 initWithCode 对其进行实例化。 当我们创建 customUITable
我正在尝试为函数 * Producer 创建一个线程,但用于创建线程的行显示错误。我为这句话加了星标,但我无法弄清楚它出了什么问题...... #include #include #include
今天在做项目时,遇到了需要创建JavaScript对象的情况。所以Bing了一篇老外写的关于3种创建JavaScript对象的文章,看后跟着打了一遍代码。感觉方法挺好的,在这里与大家分享一下。 &
我正在阅读将查询字符串传递给 Amazon 的 S3 以进行身份验证的文档,但似乎无法理解 StringToSign 的创建和使用方式。我正在寻找一个具体示例来说明 (1) 如何构造 String
前言:我对 C# 中任务的底层实现不太了解,只了解它们的用法。为我在下面屠宰的任何东西道歉: 对于“我怎样才能开始一项任务但不等待它?”这个问题,我找不到一个好的答案。在 C# 中。更具体地说,即使任
我有一个由一些复杂的表达式生成的 ILookup。假设这是按姓氏查找人。 (在我们简单的世界模型中,姓氏在家庭中是唯一的) ILookup families; 现在我有两个对如何构建感兴趣的查询。 首
我试图创建一个 MSI,其中包含 和 exe。在 WIX 中使用了捆绑选项。这样做时出错。有人可以帮我解决这个问题。下面是代码: 错误 error LGH
在 Yii 中,Create 和 Update 通常使用相同的形式。因此,如果我在创建期间有电子邮件、密码、...other_fields...等字段,但我不想在更新期间专门显示电子邮件和密码字段,但
上周我一直在努力创建一个给定一行和一列的 QModelIndex。 或者,我会满足于在已经存在的 QModelIndex 中更改 row() 的值。 任何帮助,将不胜感激。 编辑: QModelInd
出于某种原因,这不起作用: const char * str_reset_command = "\r\nReset"; const char * str_config_command = "\r\nC
现在,我有以下由 original.df %.% group_by(Category) %.% tally() %.% arrange(desc(n)) 创建的 data.frame。 DF 5),
在今天之前,我使用/etc/vim/vimrc来配置我的vim设置。今天,我想到了创建.vimrc文件。所以,我用 touch .vimrc cat /etc/vim/vimrc > .vimrc 所
我可以创建一个 MKAnnotation,还是只读的?我有坐标,但我发现使用 setCooperative 手动创建 MKAnnotation 并不容易。 想法? 最佳答案 MKAnnotation
在以下代码中,第一个日志语句按预期显示小数,但第二个日志语句记录 NULL。我做错了什么? NSDictionary *entry = [[NSDictionary alloc] initWithOb
我正在使用与此类似的代码动态添加到数组; $arrayF[$f+1][$y][$x+1] = $value+1; 但是我在错误报告中收到了这个: undefined offset :1 问题:尝试创
我是一名优秀的程序员,十分优秀!