我已经在我的 ubuntu 18.04 中安装了 Charm-Crypto,并且我可以在/usr/lib/python2.7/dist-packages
路径中找到这个库文件。
但是当我尝试导入该库时收到以下错误消息:
Python 2.7.17 (default, Apr 15 2020, 17:20:14)
[GCC 7.5.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import charm
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named charm
>>>
有人能帮我解决这个问题吗?
的输出which python
为:
/usr/bin/python
sys.path
是:
['', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/home/solat/.local/lib/python2.7/site-packages', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages']