繁体   English   中英

cx冻结“ [错误3]系统找不到指定的路径”

[英]cx Freeze “[Error 3] The system cannot find the path specified”

Windows 7 x64,Python 2.7(Anaconda发行版),cx_Freeze 5.0。

我已经使用PyQt4制作了一个GUI应用程序,并试图冻结python脚本,但是出现以下错误:

Copying data from package PyQt4...
copying C:\Users\Ben\Anaconda2\lib\site-packages\PyQt4\QtCore.pyd -> build\exe.win-amd64-2.7\PyQt4\QtCore.pyd
copying C:\Users\Ben\Anaconda2\Library\bin\QtCore4.dll -> build\exe.win-amd64-2.7\QtCore4.dll
copying C:\Users\Ben\Anaconda2\Library\bin\MSVCP90.dll -> build\exe.win-amd64-2.7\MSVCP90.dll
copying C:\Users\Ben\Anaconda2\lib\site-packages\PyQt4\QtGui.pyd -> build\exe.win-amd64-2.7\PyQt4\QtGui.pyd
copying C:\Users\Ben\Anaconda2\Library\bin\QtGui4.dll -> build\exe.win-amd64-2.7\QtGui4.dll
copying C:\Users\Ben\Anaconda2\Library\bin\libpng16.dll -> build\exe.win-amd64-2.7\libpng16.dll
copying C:\Users\Ben\Anaconda2\lib\site-packages\PyQt4\QtSvg.pyd -> build\exe.win-amd64-2.7\PyQt4\QtSvg.pyd
copying C:\Users\Ben\Anaconda2\Library\bin\QtSvg4.dll -> build\exe.win-amd64-2.7\QtSvg4.dll
Copying data from package _dummy_thread...
Copying data from package _markerlib...
error: [Error 3] The system cannot find the path specified: 'C:\\Users\\Ben\\Anaconda2\\lib\\site-packages\\setuptools-19.2-py2.7.egg\\_markerlib/*.*'

我的cx冻结设置文件是:

import sys
from cx_Freeze import setup, Executable
#import matplotlib

base = None
if sys.platform == "win32":
    base = "Win32GUI"

build_options = {"packages":["matplotlib", "xlrd", "xlwt"],
                 "include_files":["Mefisto_logo.jpg", "LOGO H2020 RIA.png", "logo_h2020_transparent.png",
                                  "logo_minouw.png", "logo-csic.png", "logo-icm.png", "logo-icm-ca-csic.png"] }

executables = [Executable("mefisto_main_10.py", base=base, icon="Mefisto_logo.ico")]
# Note for some reason the icon must be .ico - cx freeze will not work with either jpg or png


setup(name = "Mefisto",
      version = "4.01",
      description = "Mediterranean fisheries simulation tool",
      options = {"build_exe": build_options},
      executables = executables            
      )

感谢您提供的任何帮助。

好吧,我根据这篇文章中的评论找到了解决我问题的方法。

我更改了扩展名

setuptools-19.2-py2.7.egg

压缩并解压缩。 然后,cx_freeze脚本起作用并创建了内部版本。 (但是,我还有另一个问题-创建的exe在单击时不执行任何操作- 但这是我的下一个调查 ...)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM