无法安装模块“os"和“os.path" [英] Can't install modules 'os' and 'os.path'

查看:102
本文介绍了无法安装模块“os"和“os.path"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 red hat 机器上安装os"模块和os.path"模块.我尝试以下命令.

I am trying to install 'os' module and 'os.path' module on a red hat machine. I tries following commands.

pip install os
yum install os

但我不断出现以下错误

Could not find a version that satisfies the requirement os.path (from versions: )
No matching distribution found for os.path

我可以使用上述命令安装其他模块,但无法安装这些.

I am able to install other modules using aforementioned command but not able to install these.

我需要安装 os 和 os.path.

I need to install both os and os.path.

使用版本 python 3.4.3

Using version python 3.4.3

推荐答案

看看这个 Python 库 3.4.如果在那里提到它,则意味着它已经包含在 Python 的原始安装中.更具体地说 os.path

Take a look into this extensive list of Python Library 3.4. If it's mentioned there that means it's already included in the original installation of Python. More specifically os.path

您收到此特定错误的原因是因为您正在尝试安装不存在的东西.对此的提示是 os.path (from versions: ) 意味着没有匹配os.path"或其任何正确版本的外部包.

The reason you're getting this specific error because you're trying to install something that doesn't exist. The hint for that is os.path (from versions: ) meaning there isn't an external package that matches "os.path" or any proper version of it.

这篇关于无法安装模块“os"和“os.path"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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