我遇到了以下错误:
➜ iPokeMon-Server git:(dev) sudo python server.py
Password:
Traceback (most recent call last):
File "server.py", line 2, in <module>
import redis
ImportError: No module named redis
这里有一些线索:
➜ iPokeMon-Server git:(dev) sudo easy_install redis
Searching for redis
Best match: redis 2.8.0
Processing redis-2.8.0-py2.7.egg
redis 2.8.0 is already the active version in easy-install.pth
Using /Library/Python/2.7/site-packages/redis-2.8.0-py2.7.egg
Processing dependencies for redis
Finished processing dependencies for redis
➜ iPokeMon-Server git:(dev) sudo pip install redis
Requirement already satisfied (use --upgrade to upgrade): redis in /Library/Python/2.7/site-packages/redis-2.8.0-py2.7.egg
Cleaning up...
对于下面说的
➜ iPokeMon-Server git:(dev) pip install redis
Requirement already satisfied (use --upgrade to upgrade): redis in /Library/Python/2.7/site-packages/redis-2.8.0-py2.7.egg
Cleaning up...