试图使用pip和下面的推荐方法安装PythonQwt:
$ python3 -m pip install PythonQwt
Requirement already satisfied: PythonQwt in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (0.5.5)
Requirement already satisfied: NumPy>=1.3 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from PythonQwt) (1.17.2)
但是我仍然得到这个
$ python3
Python 3.7.4 (v3.7.4:e09359112e, Jul 8 2019, 14:54:52)
[Clang 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import PythonQwt
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'PythonQwt'
已经在堆栈溢出中查找了不同的答案并尝试了
答案 0 :(得分:1)
尽管程序包名称为PythonQwt,但您仅将其导入为qwt
。官方文档中的一个example是:
from qwt import tests
tests.run()