Can't install modules 'os' and 'os

2019-03-04 12:08发布

问题:

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

But I keep gettin the following error

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.

I need to install both os and os.path.

Using version python 3.4.3

回答1:

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

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.