首页 Python修行正文

如何手动安装pyhton里面whl文件的库呢

欲儿 Python修行 2020-04-04 315 0

首先你得先下匹配你本地python的whl否则

is not a supported wheel on this platform


记住以下命令是用python的shell输入,不是CMD直接输入哦

在一个正常的CMD窗口输入python 就进入python的shell了

image.png






OKK,话不多说,如何查看本地python匹配文件

import pip._internal
print(pip._internal.pep425tags.getsupported())




若出现如下错误:

image.png


那说明你的python版本过高,不能用如下方法查看

import pip._internal.pep425tags
print(pip._internal.pep425tags.get_supported())




那么这样一来就可以查看了

image.png


分析一下,我可以装cp37 cp35 cp32 ...等等


到python库总目录:https://www.lfd.uci.edu/~gohlke/pythonlibs/

按下Ctrl +f 搜索你需要的库 ,点击

image.png


注意看到这些cpxx ,下载好你对应的到本地

image.png







然后打开一个普通的CMD窗口输入一下命令, pip install whl绝对路径 ,即可本地安装了!

pip install D://VideoCapture-0.9.5-cp37-cp37m-win_amd64.whl


版权声明

本文仅代表作者观点,不代表本站立场。
本文系作者授权发表,未经许可,不得转载。

评论