简体   繁体   中英

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:

在此处输入图片说明

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.

It says something about Visual C++ above, but I do have it installed, so I dont know why its saying that.

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:

  • Wait until it is (shouldn't be more than a few days/weeks, it wasn't last time python updated in any case)

  • Compile it yourself

In the case of compiling, if you have VS installed then you probably have not set the correct environment variables

SET DISTUTILS_USE_SDK=1
SET MSSdk=1

Taken from here .

I would recomend the answers in this question over the duplicate suggested above.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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