我正在使用一个名为Tweepy的Twitter API。它一直运行良好,但是我重新启动了服务器,现在遇到了以下问题:
>>> import tweepy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "tweepy/__init__.py", line 17, in <module>
from tweepy.streaming import Stream, StreamListener
File "tweepy/streaming.py", line 16, in <module>
json = import_simplejson()
File "tweepy/utils.py", line 83, in import_simplejson
import simplejson as json
File "build/bdist.linux-i686/egg/simplejson/__init__.py", line 111, in <module>
File "build/bdist.linux-i686/egg/simplejson/decoder.py", line 29, in <module>
File "build/bdist.linux-i686/egg/simplejson/decoder.py", line 21, in _floatconstants
LookupError: unknown encoding: hex
我也尝试了这个:
from encodings import hex_codec
但这并没有起到帮助的作用。
你有什么想法为什么会这样?