无法下载cx_Freeze

时间:2017-08-22 18:57:59

标签: python

我在尝试下载cx_Freeze时遇到此错误。

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\BregmanM\Downloads\cx_Freeze-5.0.2>python setup.py install
running install
running bdist_egg
running egg_info
writing cx_Freeze.egg-info\PKG-INFO
writing dependency_links to cx_Freeze.egg-info\dependency_links.txt
writing top-level names to cx_Freeze.egg-info\top_level.txt
reading manifest file 'cx_Freeze.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.txt'
writing manifest file 'cx_Freeze.egg-info\SOURCES.txt'
installing library code to build\bdist.win32\egg
running install_lib
running build_py
running build_ext
building 'cx_Freeze.util' extension
cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\BregmanM\AppData\Local\Pro
grams\Python\Python36-32\include -IC:\Users\BregmanM\AppData\Local\Programs\Pyth
on\Python36-32\include /Tcsource/util.c /Fobuild\temp.win32-3.6\Release\source/u
til.obj
error: command 'cl.exe' failed: No such file or directory

但问题在于我与修复PATH问题有关并且对我不起作用(python pip on Windows - command 'cl.exe' failed)。我还必须注意,我不能只使用pip install下载,因为我在工作计算机上阻止我这样做。我唯一的选择是下载whltar.gz文件。我该怎么办呢?我在Python 3.6上运行,因此使用py2exe将无效。

当我尝试添加到PATH时,这就是我得到的:

cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\BregmanM\AppData\Local\Programs\Python\Python36-32\include -IC:\Users\BregmanM\AppData\Local\Programs\Python\Python36-32\include /Tcsource/util.c /Fobuild\temp.win32-3.6\Release\source/util.obj
error: command 'cl.exe' failed: No such file or directory

以下是我的目录:

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\cl.exe

我还有另外6个文件夹而不是cl.exe,但我假设它们不同。我甚至尝试将这些添加到PATH,但我得到更多错误。

0 个答案:

没有答案