【发布时间】:2015-09-29 17:09:02
【问题描述】:
我正在尝试在红帽机器上安装“os”模块和“os.path”模块。我尝试执行以下命令。
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
我可以使用上述命令安装其他模块,但无法安装这些。
我需要同时安装 os 和 os.path。
使用版本python 3.4.3
【问题讨论】:
-
这些都是标准/核心模块,存在于每个 Python 安装中(我相信
os实际上是内置在解释器中的)。是什么让您认为您需要安装它们/它们尚未安装? -
你不必像 jwodder 所说的那样安装它们
标签: python python-3.x redhat