을, 내가 가진 :파이썬 요청 - HTTPProxyAuth를 가져올 수 없습니다 (AttributeError : '모듈'개체가 어떤 속성 'HTTPPRoxyAuth'이없는) 내 파이썬 파일의 상단에
import requests
from requests.auth import HTTPPRoxyAuth
라인 auth = requests.auth.HTTPPRoxyAuth(username, password)
오류 AttributeError: 'module' object has no attribute 'HTTPPRoxyAuth'
을 내뿜으며, 가져 오기 라인에서 ImportError: cannot import name HTTPPRoxyAuth
으로 다시 연결됩니다.
C:\Python27\Lib\site-packages\requests\auth.py
에서 볼 수 있으며 HTTPProxyAuth
클래스를 참조하십시오.
나는 from requests.auth import *
를 사용하고
g = globals().copy()
for name, obj in g.iteritems():
print name
으로 모든 모듈을보고 목록에 HTTPProxyAuth
을 볼 수 있지만, 나는 여전히 AttributeError
를 받고있어 수 있습니다.
누군가가 왜 제대로 가져 오지 않는지 설명 할 수 있습니까? 파이썬 2.7을 사용하고 프록시의 R은 소문자이어야 2.18.4