Solution to traceback (most recent call last) error and error: The read operation timed out encountered when installing with pip

This method is used when sslError occurs when upgrading pip, where lightgbm is the package you want to install.

pip install lightgbm -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

おすすめ

転載: blog.csdn.net/MrKingloveyou/article/details/128597789