简体   繁体   English

Python-尝试点cx_Freeze == 5.0.2时出错

[英]Python - Error when trying to pip cx_Freeze==5.0.2

I am trying to install cx_Freeze==5.0.2 on Windows 8.1 / Python 3.7 but I am getting this Error: 我试图在Windows 8.1 / Python 3.7上安装cx_Freeze==5.0.2 ,但出现此错误:

在此处输入图片说明

I do not know what exactly cx_Freeze is for or why i need this version - it is from a requirements text file that threw and error, and this module is the only one that i could not install manually. 我不知道cx_Freeze到底是干什么的,或者为什么我需要这个版本-它是从一个要求文本文件中抛出并出错的,而这个模块是我无法手动安装的唯一模块。

It says something about Visual C++ above, but I do have it installed, so I dont know why its saying that. 它上面说了一些有关Visual C ++的内容,但是我确实安装了它,所以我不知道为什么这么说。

cx_Feeze needs compiling to run (this is usually done for you on Windows but it has not been done for 3.7 yet (see the releases on PyPi ) so you have two options: cx_Feeze需要编译才能运行(通常在Windows上已为您完成,但3.7尚未完成(请参阅PyPi上发行版 ),因此您有两个选择:

  • Wait until it is (shouldn't be more than a few days/weeks, it wasn't last time python updated in any case) 等到它(不要超过几天/几周,无论如何这不是上次python更新)

  • Compile it yourself 自己编译

In the case of compiling, if you have VS installed then you probably have not set the correct environment variables 在编译的情况下,如果安装了VS,则可能未设置正确的环境变量

SET DISTUTILS_USE_SDK=1
SET MSSdk=1

Taken from here . 取自这里

I would recomend the answers in this question over the duplicate suggested above. 对于以上建议的重复项,我将推荐这个问题的答案

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

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