开发者社区> 问答> 正文

如何使用CMD安装cx_freeze

我尝试使用命令提示符来安装cx_freeze,我输入pip install cx_freeze并得到一个很长的错误列表。我在下面添加了这些错误。有人能解释一下如何使用CMD安装cx_freeze吗?我也在youtube上寻找帮助,但是我找不到任何线索。

   C:\Python\Python38-32>pip install cx_freeze
Collecting cx_freeze
  Using cached https://files.pythonhosted.org/packages/14/74/a76c12e4e357c79999191d5db259e66b46c57708515395c023d38e6bbbd7/cx_Freeze-6.0.tar.gz
Building wheels for collected packages: cx-freeze
  Building wheel for cx-freeze (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'c:\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\rose\\AppData\\Local\\Temp\\pip-install-p3zcaift\\cx-freeze\\setup.py'"'"'; __file__='"'"'C:\\Users\\rose\\AppData\\Local\\Temp\\pip-install-p3zcaift\\cx-freeze\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\rose\AppData\Local\Temp\pip-wheel-3ae397c9' --python-tag cp38
       cwd: C:\Users\rose\AppData\Local\Temp\pip-install-p3zcaift\cx-freeze\
  Complete output (95 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win32-3.8
  creating build\lib.win32-3.8\cx_Freeze
  copying cx_Freeze\common.py -> build\lib.win32-3.8\cx_Freeze
  copying cx_Freeze\dist.py -> build\lib.win32-3.8\cx_Freeze
  copying cx_Freeze\finder.py -> build\lib.win32-3.8\cx_Freeze
  copying cx_Freeze\freezer.py -> build\lib.win32-3.8\cx_Freeze
  copying cx_Freeze\hooks.py -> build\lib.win32-3.8\cx_Freeze
  copying cx_Freeze\macdist.py -> build\lib.win32-3.8\cx_Freeze
  copying cx_Freeze\main.py -> build\lib.win32-3.8\cx_Freeze
  copying cx_Freeze\setupwriter.py -> build\lib.win32-3.8\cx_Freeze
  copying cx_Freeze\windist.py -> build\lib.win32-3.8\cx_Freeze
  copying cx_Freeze\__init__.py -> build\lib.win32-3.8\cx_Freeze
  creating build\lib.win32-3.8\cx_Freeze\initscripts
  copying cx_Freeze\initscripts\Console.py -> build\lib.win32-3.8\cx_Freeze\initscripts
  copying cx_Freeze\initscripts\ConsoleSetLibPath.py -> build\lib.win32-3.8\cx_Freeze\initscripts
  copying cx_Freeze\initscripts\SharedLib.py -> build\lib.win32-3.8\cx_Freeze\initscripts
  copying cx_Freeze\initscripts\SharedLibSource.py -> build\lib.win32-3.8\cx_Freeze\initscripts
  copying cx_Freeze\initscripts\__startup__.py -> build\lib.win32-3.8\cx_Freeze\initscripts
  creating build\lib.win32-3.8\cx_Freeze\samples
  creating build\lib.win32-3.8\cx_Freeze\samples\advanced
  copying cx_Freeze\samples\advanced\advanced_1.py -> build\lib.win32-3.8\cx_Freeze\samples\advanced
  copying cx_Freeze\samples\advanced\advanced_2.py -> build\lib.win32-3.8\cx_Freeze\samples\advanced
  copying cx_Freeze\samples\advanced\setup.py -> build\lib.win32-3.8\cx_Freeze\samples\advanced
  creating build\lib.win32-3.8\cx_Freeze\samples\asmodule
  copying cx_Freeze\samples\asmodule\asmodule.py -> build\lib.win32-3.8\cx_Freeze\samples\asmodule
  copying cx_Freeze\samples\asmodule\setup.py -> build\lib.win32-3.8\cx_Freeze\samples\asmodule
  creating build\lib.win32-3.8\cx_Freeze\samples\importlib
  copying cx_Freeze\samples\importlib\get_examples.py -> build\lib.win32-3.8\cx_Freeze\samples\importlib
  copying cx_Freeze\samples\importlib\server_simple.py -> build\lib.win32-3.8\cx_Freeze\samples\importlib
  copying cx_Freeze\samples\importlib\setup.py -> build\lib.win32-3.8\cx_Freeze\samples\importlib
  copying cx_Freeze\samples\importlib\web_srv.py -> build\lib.win32-3.8\cx_Freeze\samples\importlib
  copying cx_Freeze\samples\importlib\wsgiserver.py -> build\lib.win32-3.8\cx_Freeze\samples\importlib
  creating build\lib.win32-3.8\cx_Freeze\samples\matplotlib
  copying cx_Freeze\samples\matplotlib\matplotlib_eg.py -> build\lib.win32-3.8\cx_Freeze\samples\matplotlib
  copying cx_Freeze\samples\matplotlib\setup.py -> build\lib.win32-3.8\cx_Freeze\samples\matplotlib
  creating build\lib.win32-3.8\cx_Freeze\samples\openpyxl
  copying cx_Freeze\samples\openpyxl\setup.py -> build\lib.win32-3.8\cx_Freeze\samples\openpyxl
  copying cx_Freeze\samples\openpyxl\test_openpyxl.py -> build\lib.win32-3.8\cx_Freeze\samples\openpyxl
  creating build\lib.win32-3.8\cx_Freeze\samples\PyQt4
  copying cx_Freeze\samples\PyQt4\PyQt4app.py -> build\lib.win32-3.8\cx_Freeze\samples\PyQt4
  copying cx_Freeze\samples\PyQt4\setup.py -> build\lib.win32-3.8\cx_Freeze\samples\PyQt4
  creating build\lib.win32-3.8\cx_Freeze\samples\PyQt5
  copying cx_Freeze\samples\PyQt5\PyQt5app.py -> build\lib.win32-3.8\cx_Freeze\samples\PyQt5
  copying cx_Freeze\samples\PyQt5\setup.py -> build\lib.win32-3.8\cx_Freeze\samples\PyQt5
  creating build\lib.win32-3.8\cx_Freeze\samples\relimport
  copying cx_Freeze\samples\relimport\relimport.py -> build\lib.win32-3.8\cx_Freeze\samples\relimport
  copying cx_Freeze\samples\relimport\setup.py -> build\lib.win32-3.8\cx_Freeze\samples\relimport
  creating build\lib.win32-3.8\cx_Freeze\samples\service
  copying cx_Freeze\samples\service\Config.py -> build\lib.win32-3.8\cx_Freeze\samples\service
  copying cx_Freeze\samples\service\ServiceHandler.py -> build\lib.win32-3.8\cx_Freeze\samples\service
  copying cx_Freeze\samples\service\setup.py -> build\lib.win32-3.8\cx_Freeze\samples\service
  creating build\lib.win32-3.8\cx_Freeze\samples\simple
  copying cx_Freeze\samples\simple\hello.py -> build\lib.win32-3.8\cx_Freeze\samples\simple
  copying cx_Freeze\samples\simple\setup.py -> build\lib.win32-3.8\cx_Freeze\samples\simple
  creating build\lib.win32-3.8\cx_Freeze\samples\Tkinter
  copying cx_Freeze\samples\Tkinter\setup.py -> build\lib.win32-3.8\cx_Freeze\samples\Tkinter
  copying cx_Freeze\samples\Tkinter\SimpleTkApp.py -> build\lib.win32-3.8\cx_Freeze\samples\Tkinter
  creating build\lib.win32-3.8\cx_Freeze\samples\wx
  copying cx_Freeze\samples\wx\setup.py -> build\lib.win32-3.8\cx_Freeze\samples\wx
  copying cx_Freeze\samples\wx\wxapp.py -> build\lib.win32-3.8\cx_Freeze\samples\wx
  creating build\lib.win32-3.8\cx_Freeze\samples\zope
  copying cx_Freeze\samples\zope\qotd.py -> build\lib.win32-3.8\cx_Freeze\samples\zope
  copying cx_Freeze\samples\zope\setup.py -> build\lib.win32-3.8\cx_Freeze\samples\zope
  running build_ext
  building 'cx_Freeze.util' extension
  creating build\temp.win32-3.8
  creating build\temp.win32-3.8\Release
  creating build\temp.win32-3.8\Release\source
  C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\python\python38-32\include -Ic:\python\python38-32\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /Tcsource/util.c /Fobuild\temp.win32-3.8\Release\source/util.obj
  util.c
  C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\bin\HostX86\x86\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\python\python38-32\libs /LIBPATH:c:\python\python38-32\PCbuild\win32 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\ATLMFC\lib\x86" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\lib\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\ucrt\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\um\x86" imagehlp.lib Shlwapi.lib /EXPORT:PyInit_util build\temp.win32-3.8\Release\source/util.obj /OUT:build\lib.win32-3.8\cx_Freeze\util.cp38-win32.pyd /IMPLIB:build\temp.win32-3.8\Release\source\util.cp38-win32.lib
     Creating library build\temp.win32-3.8\Release\source\util.cp38-win32.lib and object build\temp.win32-3.8\Release\source\util.cp38-win32.exp
  Generating code
  Finished generating code
  creating build\temp.win32-3.8\Release\source\bases
  C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\python\python38-32\include -Ic:\python\python38-32\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /Tcsource/bases/Console.c /Fobuild\temp.win32-3.8\Release\source/bases/Console.obj
  Console.c
  creating C:\Users\rose\AppData\Local\Temp\pip-install-p3zcaift\cx-freeze\build\lib.win32-3.8\cx_Freeze\bases
  C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\bin\HostX86\x86\link.exe /nologo /INCREMENTAL:NO /LTCG /MANIFEST:EMBED,ID=1 /LIBPATH:c:\python\python38-32\libs /LIBPATH:c:\python\python38-32\PCbuild\win32 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\ATLMFC\lib\x86" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\lib\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\ucrt\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\um\x86" imagehlp.lib Shlwapi.lib build\temp.win32-3.8\Release\source/bases/Console.obj /OUT:build\lib.win32-3.8\cx_Freeze\bases\Console.exe /MANIFEST
  Generating code
  Finished generating code
  C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\python\python38-32\include -Ic:\python\python38-32\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /Tcsource/bases/Win32GUI.c /Fobuild\temp.win32-3.8\Release\source/bases/Win32GUI.obj
  Win32GUI.c
  C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\bin\HostX86\x86\link.exe /nologo /INCREMENTAL:NO /LTCG /MANIFEST:EMBED,ID=1 /LIBPATH:c:\python\python38-32\libs /LIBPATH:c:\python\python38-32\PCbuild\win32 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\ATLMFC\lib\x86" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\lib\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\ucrt\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\um\x86" imagehlp.lib Shlwapi.lib user32.lib build\temp.win32-3.8\Release\source/bases/Win32GUI.obj /OUT:build\lib.win32-3.8\cx_Freeze\bases\Win32GUI.exe /MANIFEST
  Generating code
  Finished generating code
  running build_scripts
  creating build\scripts-3.8
  copying and adjusting cxfreeze -> build\scripts-3.8
  copying and adjusting cxfreeze-quickstart -> build\scripts-3.8
  error: [Errno 2] No such file or directory: 'cxfreeze-postinstall'
  ----------------------------------------
  ERROR: Failed building wheel for cx-freeze
  Running setup.py clean for cx-freeze
Failed to build cx-freeze
Installing collected packages: cx-freeze
    Running setup.py install for cx-freeze ... error
    ERROR: Command errored out with exit status 1:
     command: 'c:\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Thanatos\\AppData\\Local\\Temp\\pip-install-p3zcaift\\cx-freeze\\setup.py'"'"'; __file__='"'"'C:\\Users\\rose\\AppData\\Local\\Temp\\pip-install-p3zcaift\\cx-freeze\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Thanatos\AppData\Local\Temp\pip-record-oes77sq1\install-record.txt' --single-version-externally-managed --compile
         cwd: C:\Users\Thanatos\AppData\Local\Temp\pip-install-p3zcaift\cx-freeze\
    Complete output (95 lines):
    running install
    running build
    running build_py
    creating build
    creating build\lib.win32-3.8
    creating build\lib.win32-3.8\cx_Freeze
    copying cx_Freeze\common.py -> build\lib.win32-3.8\cx_Freeze
    copying cx_Freeze\dist.py -> build\lib.win32-3.8\cx_Freeze
    copying cx_Freeze\finder.py -> build\lib.win32-3.8\cx_Freeze
    copying cx_Freeze\freezer.py -> build\lib.win32-3.8\cx_Freeze
    copying cx_Freeze\hooks.py -> build\lib.win32-3.8\cx_Freeze
    copying cx_Freeze\macdist.py -> build\lib.win32-3.8\cx_Freeze
    copying cx_Freeze\main.py -> build\lib.win32-3.8\cx_Freeze
    copying cx_Freeze\setupwriter.py -> build\lib.win32-3.8\cx_Freeze
    copying cx_Freeze\windist.py -> build\lib.win32-3.8\cx_Freeze
    copying cx_Freeze\__init__.py -> build\lib.win32-3.8\cx_Freeze
    creating build\lib.win32-3.8\cx_Freeze\initscripts
    copying cx_Freeze\initscripts\Console.py -> build\lib.win32-3.8\cx_Freeze\initscripts
    copying cx_Freeze\initscripts\ConsoleSetLibPath.py -> build\lib.win32-3.8\cx_Freeze\initscripts
    copying cx_Freeze\initscripts\SharedLib.py -> build\lib.win32-3.8\cx_Freeze\initscripts
    copying cx_Freeze\initscripts\SharedLibSource.py -> build\lib.win32-3.8\cx_Freeze\initscripts
    copying cx_Freeze\initscripts\__startup__.py -> build\lib.win32-3.8\cx_Freeze\initscripts
    creating build\lib.win32-3.8\cx_Freeze\samples
    creating build\lib.win32-3.8\cx_Freeze\samples\advanced
    copying cx_Freeze\samples\advanced\advanced_1.py -> build\lib.win32-3.8\cx_Freeze\samples\advanced
    copying cx_Freeze\samples\advanced\advanced_2.py -> build\lib.win32-3.8\cx_Freeze\samples\advanced
    copying cx_Freeze\samples\advanced\setup.py -> build\lib.win32-3.8\cx_Freeze\samples\advanced
    creating build\lib.win32-3.8\cx_Freeze\samples\asmodule
    copying cx_Freeze\samples\asmodule\asmodule.py -> build\lib.win32-3.8\cx_Freeze\samples\asmodule
    copying cx_Freeze\samples\asmodule\setup.py -> build\lib.win32-3.8\cx_Freeze\samples\asmodule
    creating build\lib.win32-3.8\cx_Freeze\samples\importlib
    copying cx_Freeze\samples\importlib\get_examples.py -> build\lib.win32-3.8\cx_Freeze\samples\importlib
    copying cx_Freeze\samples\importlib\server_simple.py -> build\lib.win32-3.8\cx_Freeze\samples\importlib
    copying cx_Freeze\samples\importlib\setup.py -> build\lib.win32-3.8\cx_Freeze\samples\importlib
    copying cx_Freeze\samples\importlib\web_srv.py -> build\lib.win32-3.8\cx_Freeze\samples\importlib
    copying cx_Freeze\samples\importlib\wsgiserver.py -> build\lib.win32-3.8\cx_Freeze\samples\importlib
    creating build\lib.win32-3.8\cx_Freeze\samples\matplotlib
    copying cx_Freeze\samples\matplotlib\matplotlib_eg.py -> build\lib.win32-3.8\cx_Freeze\samples\matplotlib
    copying cx_Freeze\samples\matplotlib\setup.py -> build\lib.win32-3.8\cx_Freeze\samples\matplotlib
    creating build\lib.win32-3.8\cx_Freeze\samples\openpyxl
    copying cx_Freeze\samples\openpyxl\setup.py -> build\lib.win32-3.8\cx_Freeze\samples\openpyxl
    copying cx_Freeze\samples\openpyxl\test_openpyxl.py -> build\lib.win32-3.8\cx_Freeze\samples\openpyxl
    creating build\lib.win32-3.8\cx_Freeze\samples\PyQt4
    copying cx_Freeze\samples\PyQt4\PyQt4app.py -> build\lib.win32-3.8\cx_Freeze\samples\PyQt4
    copying cx_Freeze\samples\PyQt4\setup.py -> build\lib.win32-3.8\cx_Freeze\samples\PyQt4
    creating build\lib.win32-3.8\cx_Freeze\samples\PyQt5
    copying cx_Freeze\samples\PyQt5\PyQt5app.py -> build\lib.win32-3.8\cx_Freeze\samples\PyQt5
    copying cx_Freeze\samples\PyQt5\setup.py -> build\lib.win32-3.8\cx_Freeze\samples\PyQt5
    creating build\lib.win32-3.8\cx_Freeze\samples\relimport
    copying cx_Freeze\samples\relimport\relimport.py -> build\lib.win32-3.8\cx_Freeze\samples\relimport
    copying cx_Freeze\samples\relimport\setup.py -> build\lib.win32-3.8\cx_Freeze\samples\relimport
    creating build\lib.win32-3.8\cx_Freeze\samples\service
    copying cx_Freeze\samples\service\Config.py -> build\lib.win32-3.8\cx_Freeze\samples\service
    copying cx_Freeze\samples\service\ServiceHandler.py -> build\lib.win32-3.8\cx_Freeze\samples\service
    copying cx_Freeze\samples\service\setup.py -> build\lib.win32-3.8\cx_Freeze\samples\service
    creating build\lib.win32-3.8\cx_Freeze\samples\simple
    copying cx_Freeze\samples\simple\hello.py -> build\lib.win32-3.8\cx_Freeze\samples\simple
    copying cx_Freeze\samples\simple\setup.py -> build\lib.win32-3.8\cx_Freeze\samples\simple
    creating build\lib.win32-3.8\cx_Freeze\samples\Tkinter
    copying cx_Freeze\samples\Tkinter\setup.py -> build\lib.win32-3.8\cx_Freeze\samples\Tkinter
    copying cx_Freeze\samples\Tkinter\SimpleTkApp.py -> build\lib.win32-3.8\cx_Freeze\samples\Tkinter
    creating build\lib.win32-3.8\cx_Freeze\samples\wx
    copying cx_Freeze\samples\wx\setup.py -> build\lib.win32-3.8\cx_Freeze\samples\wx
    copying cx_Freeze\samples\wx\wxapp.py -> build\lib.win32-3.8\cx_Freeze\samples\wx
    creating build\lib.win32-3.8\cx_Freeze\samples\zope
    copying cx_Freeze\samples\zope\qotd.py -> build\lib.win32-3.8\cx_Freeze\samples\zope
    copying cx_Freeze\samples\zope\setup.py -> build\lib.win32-3.8\cx_Freeze\samples\zope
    running build_ext
    building 'cx_Freeze.util' extension
    creating build\temp.win32-3.8
    creating build\temp.win32-3.8\Release
    creating build\temp.win32-3.8\Release\source
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\python\python38-32\include -Ic:\python\python38-32\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /Tcsource/util.c /Fobuild\temp.win32-3.8\Release\source/util.obj
    util.c
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\bin\HostX86\x86\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\python\python38-32\libs /LIBPATH:c:\python\python38-32\PCbuild\win32 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\ATLMFC\lib\x86" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\lib\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\ucrt\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\um\x86" imagehlp.lib Shlwapi.lib /EXPORT:PyInit_util build\temp.win32-3.8\Release\source/util.obj /OUT:build\lib.win32-3.8\cx_Freeze\util.cp38-win32.pyd /IMPLIB:build\temp.win32-3.8\Release\source\util.cp38-win32.lib
       Creating library build\temp.win32-3.8\Release\source\util.cp38-win32.lib and object build\temp.win32-3.8\Release\source\util.cp38-win32.exp
    Generating code
    Finished generating code
    creating build\temp.win32-3.8\Release\source\bases
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\python\python38-32\include -Ic:\python\python38-32\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /Tcsource/bases/Console.c /Fobuild\temp.win32-3.8\Release\source/bases/Console.obj
    Console.c
    creating C:\Users\rose\AppData\Local\Temp\pip-install-p3zcaift\cx-freeze\build\lib.win32-3.8\cx_Freeze\bases
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\bin\HostX86\x86\link.exe /nologo /INCREMENTAL:NO /LTCG /MANIFEST:EMBED,ID=1 /LIBPATH:c:\python\python38-32\libs /LIBPATH:c:\python\python38-32\PCbuild\win32 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\ATLMFC\lib\x86" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\lib\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\ucrt\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\um\x86" imagehlp.lib Shlwapi.lib build\temp.win32-3.8\Release\source/bases/Console.obj /OUT:build\lib.win32-3.8\cx_Freeze\bases\Console.exe /MANIFEST
    Generating code
    Finished generating code
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\python\python38-32\include -Ic:\python\python38-32\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /Tcsource/bases/Win32GUI.c /Fobuild\temp.win32-3.8\Release\source/bases/Win32GUI.obj
    Win32GUI.c
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\bin\HostX86\x86\link.exe /nologo /INCREMENTAL:NO /LTCG /MANIFEST:EMBED,ID=1 /LIBPATH:c:\python\python38-32\libs /LIBPATH:c:\python\python38-32\PCbuild\win32 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\ATLMFC\lib\x86" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\lib\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\ucrt\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\um\x86" imagehlp.lib Shlwapi.lib user32.lib build\temp.win32-3.8\Release\source/bases/Win32GUI.obj /OUT:build\lib.win32-3.8\cx_Freeze\bases\Win32GUI.exe /MANIFEST
    Generating code
    Finished generating code
    running build_scripts
    creating build\scripts-3.8
    copying and adjusting cxfreeze -> build\scripts-3.8
    copying and adjusting cxfreeze-quickstart -> build\scripts-3.8
    error: file 'C:\Users\rose\AppData\Local\Temp\pip-install-p3zcaift\cx-freeze\cxfreeze-postinstall' does not exist
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Thanatos\\AppData\\Local\\Temp\\pip-install-p3zcaift\\cx-freeze\\setup.py'"'"'; __file__='"'"'C:\\Users\\Thanatos\\AppData\\Local\\Temp\\pip-install-p3zcaift\\cx-freeze\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Thanatos\AppData\Local\Temp\pip-record-oes77sq1\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.

问题来源StackOverflow 地址:/questions/59382352/how-to-install-cx-freeze-using-the-cmd

展开
收起
kun坤 2019-12-27 17:20:21 732 0
1 条回答
写回答
取消 提交回答
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载