Python WhatsApp:没有名为yowsup的模块

Python WhatsApp:没有名为yowsup的模块,python,macos,python-2.7,whatsapp,yowsup,Python,Macos,Python 2.7,Whatsapp,Yowsup,尽管已经安装了,我还是不断收到这个错误。检查以下内容: MacBook:examples User$ python Python 2.7.6 (default, Sep 9 2014, 15:04:36) [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>&

尽管已经安装了,我还是不断收到这个错误。检查以下内容:

MacBook:examples User$ python
Python 2.7.6 (default, Sep  9 2014, 15:04:36) 
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from whatsapp import Client
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Python/2.7/site-packages/whatsapp.py", line 5, in <module>
    from yowsup import env
ImportError: No module named yowsup
>>> quit()
MacBook:examples User$ sudo pip install yowsup
Password:
The directory '/Users/User/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/User/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied (use --upgrade to upgrade): yowsup in /Library/Python/2.7/site-packages
MacBook:示例用户$python
Python 2.7.6(默认,2014年9月9日,15:04:36)
[GCC 4.2.1达尔文兼容苹果LLVM 6.0(clang-600.0.39)]
有关详细信息,请键入“帮助”、“版权”、“信用证”或“许可证”。
>>>来自whatsapp导入客户端
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
文件“/Library/Python/2.7/site packages/whatsapp.py”,第5行,在
从yowsup导入环境
ImportError:没有名为yowsup的模块
>>>退出
MacBook:示例用户$sudo pip安装yowsup
密码:
当前用户不拥有目录“/Users/User/Library/Caches/pip/http”或其父目录,缓存已被禁用。请检查该目录的权限和所有者。如果使用sudo执行pip,您可能需要sudo的-H标志。
当前用户不拥有目录“/Users/User/Library/Caches/pip”或其父目录,并且已禁用缓存控制盘。检查该目录的权限和所有者。如果使用sudo执行pip,您可能需要sudo的-H标志。
已满足要求(使用--升级到升级):yowsup in/Library/Python/2.7/site-packages

如果您尝试直接导入yowsup,会发生什么情况?显示相同的错误。您应该尝试使用conda environments或VirtualEnvironment。这将使管理软件包和修复此类问题变得更容易。@riotburn很好,但为什么在所有其他软件包都在工作时发生此问题呢。我需要重新启动系统吗?