Tôi đang sử dụng API Twitter có tên Tweepy. Nó đã được làm việc tốt, sau đó tôi khởi động lại máy chủ và bây giờ tôi nhận được điều này:Python: LookupError: mã hóa không xác định: hex
>>> 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
Tôi cố gắng này quá:
from encodings import hex_codec
Và nó đã không giúp đỡ.
Mọi ý tưởng tại sao?
Có một số loại cài đặt môi trường nào bạn đã mất kể từ khi khởi động lại không? – Raz
Không phải là tôi biết. – Zeno