SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))
인증서 오류 시 --trusted-host 옵션을 사용한다.
$ pip install requests bs4 lxml openpyxl numpy
There was a problem confirming the ssl certificate
$ pip --trusted-host pypi.python.org --trusted-host files.pythonhosted.org --trusted-host pypi.org install requests bs4 lxml openpyxl numpy
Usage:
pip <command> [options]
Commands:
install Install packages.
download Download packages.
uninstall Uninstall packages.
freeze Output installed packages in requirements format.
list List installed packages.
show Show information about installed packages.
check Verify installed packages have compatible dependencies.
config Manage local and global configuration.
search Search PyPI for packages.
cache Inspect and manage pip's wheel cache.
index Inspect information available from package indexes.
wheel Build wheels from your requirements.
hash Compute hashes of package archives.
completion A helper command used for command completion.
debug Show information useful for debugging.
help Show help for commands.
General Options:
-h, --help Show help.
--isolated Run pip in an isolated mode, ignoring environment variables and user configuration.
-v, --verbose Give more output. Option is additive, and can be used up to 3 times.
-V, --version Show version and exit.
--trusted-host <hostname>
Mark this host or host:port pair as trusted, even though it does not have valid or any HTTPS.
... 중략 ...
end.
'Programming Language > Python' 카테고리의 다른 글
[Python] 판다스 pandas 기본 (0) | 2022.03.12 |
---|---|
[Python] logging.config 구성, log file encoding 설정 (0) | 2022.03.10 |
[Python] map 함수. 새로운 리스트를 반환 (0) | 2022.03.10 |
[Python] SettingWithCopyWarning 오류 해결 (0) | 2022.03.09 |
파이썬 코딩 스타일 가이드 (0) | 2022.02.20 |