为什么可以';你不使用python模块吗?

为什么可以';你不使用python模块吗?,python,python-3.x,python-module,Python,Python 3.x,Python Module,我通过MacOSforPython3上的终端下载了pyowm和coloram模块。 终端显示: Using /Library/Python/2.7/site-packages Processing dependencies for colorama Finished processing dependencies for colorama 但是当我尝试运行包含它们的代码时,IDLE会说ModuleNotFoundError:没有名为'pyowm'的模块请确保在用于编写代码的Python版本上安

我通过MacOSforPython3上的终端下载了pyowm和coloram模块。 终端显示:

Using /Library/Python/2.7/site-packages
Processing dependencies for colorama
Finished processing dependencies for colorama

但是当我尝试运行包含它们的代码时,IDLE会说
ModuleNotFoundError:没有名为'pyowm'的模块

请确保在用于编写代码的Python版本上安装软件包。MacOS已经在使用Python2.7:如果您
pip安装
,它将与您的Python2.7版本相链接


当您安装要与Python 3一起使用的软件包时,请选择
pip3安装

,这是因为从您的日志中,它看起来像是为Python2安装的软件包(
/Library/Python/2.7/site packages
)。对于Python3,请尝试使用
pip3安装colorama-pyowm
安装软件包。有时,您需要输入
python-m pip-install
。有时候这也行。