将cx_Freeze-5.0.2-cp36-cp36m-win_amd64.whl安装到我的Windows 10计算机上 [英] pip install cx_Freeze-5.0.2-cp36-cp36m-win_amd64.whl to my window 10 machine

查看:113
本文介绍了将cx_Freeze-5.0.2-cp36-cp36m-win_amd64.whl安装到我的Windows 10计算机上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试使用以下方法点安装cx_Freeze:

Tryng to pip install cx_Freeze using:

python -m pip install c:\Users\yosief\Downloads\cx_Freeze-5.0.2-cp36-cp36m-win_amd64.whl

在基于Windows 10的笔记本电脑上,我遇到了错误

on Window 10 based laptop and I end up with an error

cx_Freeze-5.0.2-cp36-cp36m-win_amd64.whl在此平台上不受支持

cx_Freeze-5.0.2-cp36-cp36m-win_amd64.whl is not a supported wheel on this platform

推荐答案

您可能无法安装cx_Freeze的原因有很多,但幸运的是,它通常很容易纠正.

There are several reasons why you may not be able to install cx_Freeze but luckily it is generally easy to correct.

您应该只能将cx_Freezepip install cx_Freeze一起安装.无需下载轮子.

You should just be able to install cx_Freeze with pip install cx_Freeze. No need to download the wheel.

但是,如果您想使用wheel文件.您应该知道已经下载了适用于Python 3.6的x64版本.您的Python安装必须是x64版本和Python版本3.6.

However if you want to use the wheel file. You should know have downloaded the x64 version for Python 3.6. Your Python installation must be an x64 build and the Python version 3.6.

检查Python版本并通过打开Python解释器进行构建.版本将显示在顶部以及内部版本.

Check the Python version and build by opening the Python interpreter. The version will be displayed at the top as well as the build.

例如,在我的PC上,解释器显示为:

For example on my PC the interpreter reads:

Python 3.6.3 (v3.6.3:2c5fed8, Oct 3 2017, 17:26:49) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>

所以我知道版本是3.6.3,并且是32位(MSC v.1900 32 bit).不用理会on win32,在某些情况下,它不能为您提供正确的Windows构建.

So I know the version is 3.6.3 and is 32 bit (MSC v.1900 32 bit). Take no notice of on win32 it does not give you the right windows build in some cases.

如果内部版本或版本与您下载的版本不同,则必须重新下载匹配Python构建和版本的轮子.

If the build or version is different from what you have downloaded then you must re download the wheel to match the Python build and version.

然后按照上面的步骤安装wheel文件.

Then install the wheel file as you did above.

这篇关于将cx_Freeze-5.0.2-cp36-cp36m-win_amd64.whl安装到我的Windows 10计算机上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆