카테고리 없음

youtube api 사용 위하여 하였던 일

문자메일 2019. 12. 3. 06:22

from apiclient.discovery import build
from apiclient.errors import HttpError

라이브러리 import 하기 위하여

https://github.com/googleapis/google-api-python-client
# google 파이썬 api 설치해야함

# pip install google-api-python-client

 

 

위 라이브러리 2개 실행할 때 _ssl 에러 나오면 

#pip install --upgrade pip --trusted-host pypi.org --trusted-host files.pythonhosted.org

불러오는 중입니다...

명령어 입력 후 다시 시도 해볼 것

 

그래도 안되면 

https://charactermail.tistory.com/226

 

[에러나올때] WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.

https://stackoverflow.com/questions/45954528/pip-is-configured-with-locations-that-require-tls-ssl-however-the-ssl-module-in pip is configured with locations that require TLS/SSL, however the ssl mo..

charactermail.tistory.com

포스팅 참조하여 환경변수 설정하고 해볼 것. 

이 단계에서 필자는 문제없이 유튜브 공식 샘플 코드 실행되었음.

 

 

 

 

외부 라이브러리 저장 경로

C:\ProgramData\Anaconda3\Lib\site-packages\