导入错误:没有找到名称为httplib2的模块,但是httplib2已安装

2024-05-23 13:40:14 发布

您现在位置:Python中文网/ 问答频道 /正文

我知道这可能有点重复,但不同的是我安装了httplib2,看:

    D4zk1tty@kali:~$ sudo apt-get install python-httplib2
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    python-httplib2 is already the newest version.
    python-httplib2 set to manually installed.
    0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded

也许它不在正确的目录中?

这是我的回溯:

Traceback (most recent call last):
  File "test.py", line 9, in <module>
    import httplib2
ImportError: No module named httplib2

Tags: installinstalledtopackagegetsudoaptlists