저는 최근에 파이썬으로 시작했고 지금은 내 트위터 피드를 보여주는 앱을 찾고 있습니다. 따라서 파이썬 트위터라고 불리는 모듈을 다운로드했다. 하지만 지금은 그것을 가져 오려고 할 때마다 그냥이 오류가 발생합니다 :파이썬 - 트위터를 가져올 수 없습니다.
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import twitter
File "build\bdist.win32\egg\twitter.py", line 38, in <module>
File "C:\Python27\lib\site-packages\requests_oauthlib-0.4.0-py2.7.egg\requests_oauthlib\__init__.py", line 1, in <module>
from .oauth1_auth import OAuth1
File "C:\Python27\lib\site-packages\requests_oauthlib-0.4.0-py2.7.egg\requests_oauthlib\oauth1_auth.py", line 4, in <module>
from requests.utils import to_native_string
ImportError: cannot import name to_native_string
누군가 내가 설치 또는 뭔가 잘못했을 수도 알고 있습니까? Thx
을 참조하십시오 - 때문에 요청 라이브러리의 이전 버전이 될 수 있습니다. – chhantyal
이것은 이전 버전의'requests' lib 때문에 실제로 발생했습니다. 내 대답은 아래를 참조하십시오. – chhantyal