travisfu / rqalpha-1

A extendable, replaceable Python algorithmic backtest && trading framework supporting multiple securities
http://rqalpha.io
Other
0 stars 0 forks source link

rqrisk 无法安装 #2

Closed travisfu closed 4 years ago

travisfu commented 4 years ago

需要正常安装rqrisk

travisfu commented 4 years ago

出现错误信息:

初步分析是因为虚拟环境中ssl模块的问题

Could not fetch URL https://pypi.org/simple/rqrisk/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/rqrisk/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping 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

WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. 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/rqrisk/ 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/rqrisk/ 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/rqrisk/ 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/rqrisk/ 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/rqrisk/ ERROR: Could not find a version that satisfies the requirement rqrisk>=0.0.9 (from versions: none) ERROR: No matching distribution found for rqrisk>=0.0.9 WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.

travisfu commented 4 years ago

在虚拟环境中安装有问题,但是在本体解释器中可以正常安装rqrisk,考虑在本体中安装再复制一个和本体一样的虚拟环境

travisfu commented 4 years ago

最终还是选择在本体环境中运行,rqrisk可以正常识别