linux查看python可以安装whl的版本
时间: 2023-12-10 08:05:31 浏览: 233
python3.6-python3.9版本的pyltp的安装文件,文件为.whl文件
5星 · 资源好评率100%
要查看Linux下可以安装whl的Python版本,可以使用以下命令:
```shell
python3 -c "import wheel.pep425tags as w; print(w.get_supported())"
```
该命令将输出当前系统支持的Python版本和对应的whl标签。其中,cp表示CPython,后面的数字表示Python的版本号,m表示操作系统类型,如linux_x86_64表示64位Linux系统。例如,输出可能如下所示:
```
[('cp36', 'cp36m', 'linux_x86_64'), ('cp36', 'cp36m', 'manylinux1_x86_64'), ('cp36', 'cp36m', 'manylinux2010_x86_64'), ('cp36', 'cp36m', 'manylinux2014_x86_64'), ('cp36', 'cp36m', 'manylinux_2_5_x86_64'), ('cp36', 'cp36m', 'manylinux_2_6_x86_64'), ('cp36', 'cp36m', 'manylinux_2_7_x86_64'), ('cp36', 'cp36m', 'manylinux2010_i686'), ('cp36', 'cp36m', 'manylinux2014_i686'), ('cp36', 'cp36m', 'manylinux_2_5_i686'), ('cp36', 'cp36m', 'manylinux_2_6_i686'), ('cp36', 'cp36m', 'manylinux_2_7_i686'), ('cp37', 'cp37m', 'linux_x86_64'), ('cp37', 'cp37m', 'manylinux1_x86_64'), ('cp37', 'cp37m', 'manylinux2010_x86_64'), ('cp37', 'cp37m', 'manylinux2014_x86_64'), ('cp37', 'cp37m', 'manylinux_2_5_x86_64'), ('cp37', 'cp37m', 'manylinux_2_6_x86_64'), ('cp37', 'cp37m', 'manylinux_2_7_x86_64'), ('cp37', 'cp37m', 'manylinux2010_i686'), ('cp37', 'cp37m', 'manylinux2014_i686'), ('cp37', 'cp37m', 'manylinux_2_5_i686'), ('cp37', 'cp37m', 'manylinux_2_6_i686'), ('cp37', 'cp37m', 'manylinux_2_7_i686'), ('cp38', 'cp38', 'linux_x86_64'), ('cp38', 'cp38', 'manylinux1_x86_64'), ('cp38', 'cp38', 'manylinux2010_x86_64'), ('cp38', 'cp38', 'manylinux2014_x86_64'), ('cp38', 'cp38', 'manylinux_2_5_x86_64'), ('cp38', 'cp38', 'manylinux_2_6_x86_64'), ('cp38', 'cp38', 'manylinux_2_7_x86_64'), ('cp38', 'cp38', 'manylinux2010_i686'), ('cp38', 'cp38', 'manylinux2014_i686'), ('cp38', 'cp38', 'manylinux_2_5_i686'), ('cp38', 'cp38', 'manylinux_2_6_i686'), ('cp38', 'cp38', 'manylinux_2_7_i686')]
```
阅读全文