我正在尝试导入几个我知道已安装的模块,但我收到 ModuleNotFoundError: No module named '' 错误。
$ sudo -H pip install numpy
Requirement already satisfied: numpy in /usr/local/lib/python3.6/site-packages (1.18.1)
$ python3
Python 3.6.9 (default)
>>> import numpy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'numpy'
>>> import PrettyTable
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'PrettyTable'
你能告诉我如何解决这个问题吗?