Can't install modules 'os' and 'os.path'

后端 未结 2 1715
迷失自我
迷失自我 2020-12-11 17:57

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

相关标签:
2条回答
  • 2020-12-11 18:34

    Try this command. It worked in my system.

    pip install path.py
    
    0 讨论(0)
  • 2020-12-11 18:44

    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.

    0 讨论(0)
提交回复
热议问题