用CMD下载xgboost(第三方库)提示warning怎么办?

试了一晚上各种方法都不行
1、在pycharm里搜索“xgboost”从hithub上导入,下了四五个小时还是installing

2、在cmd install 显示以下错误:

C:\Users\HP>pip install xgboost
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting xgboost
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/xgboost/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/xgboost/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/xgboost/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/xgboost/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/xgboost/
Could not fetch URL https://pypi.org/simple/xgboost/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/xgboost/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
ERROR: Could not find a version that satisfies the requirement xgboost (from versions: none)
ERROR: No matching distribution found for xgboost
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping

搞了一晚上了,月底要交论文,求指点!

首先,请在teiminal执行pip,不要使用cmd,会把环境弄乱。
当然,你现在的问题是下载没有ssl证书,超时。
所以解决方法:

pip install xgboost  -i https://pypi.tuna.tsinghua.edu.cn/simple

如果你基础不好,可以看看我博客的教程:
https://blog.csdn.net/weixin_46211269/category_11313211.html?spm=1001.2014.3001.5482