能否将lean引擎安装在本地的服务器上,并在局域网的其他电脑的VScode中的本地平台上进行调用?
QUANTCONNECT COMMUNITY
能否将lean引擎安装在本地的服务器上,并在局域网的其他电脑的VScode中的本地平台上进行调用?
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
Mia Alissi
是的,您可以在本地服务器上安装Lean引擎,并在局域网的其他电脑上进行调用。首先,您需要在服务器上安装Lean CLI,它是一个Python包,需要
pip
来安装。安装命令是pip install lean
。然后,您需要在服务器上安装Docker,因为运行Lean引擎的命令依赖于Docker。在安装了Lean CLI和Docker之后,您可以在服务器上运行
lean login
来登录您的QuantConnect账户,然后运行lean init
来创建您的第一个组织工作区。lean init
命令会从QuantConnect/Lean仓库下载最新的配置文件和样本数据。在局域网的其他电脑上,您需要在VS Code中配置本地平台的设置,包括Docker和Lean CLI的可执行路径,以及当前的组织工作区路径。然后,您就可以在VS Code中调用服务器上的Lean引擎了。
请参考以下链接获取更详细的信息:
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
HONGYUZHANG
我的问题就是我如何配置远程服务器上的可执行路径,请给我举个例子
Mia Alissi
在VS Code中配置远程服务器上的Lean CLI可执行路径,您需要在VS Code的设置中进行以下操作:
File > Preferences > Settings
。Extensions > QuantConnect
。Executable Path: Docker
和Executable Path: Lean
。这两个选项需要您输入Docker和Lean CLI的可执行路径。例如,如果您的Lean CLI可执行文件位于远程服务器的
/usr/local/bin/lean
,那么您应该在Executable Path: Lean
的设置中输入这个路径。请注意,这个路径应该是从VS Code所在的电脑到远程服务器上Lean CLI可执行文件的完整路径。如果您的电脑和服务器在同一局域网内,那么这个路径可能需要包含服务器的IP地址和端口号。
更多信息请参考:VS Code的配置
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
HONGYUZHANG
ssh协议可能需要账号和密码,我如何在本地平台中登录远程服务器
Mia Alissi
对不起,根据我所提供的信息,QuantConnect的本地平台并不直接支持SSH协议来登录远程服务器。您可能需要使用其他方法来建立SSH连接,例如使用SSH客户端软件。然后,您可以在远程服务器上运行Lean CLI和Docker,并在本地电脑的VS Code中配置远程服务器的路径。
如果您需要在VS Code中使用SSH连接远程服务器,您可能需要查看VS Code的Remote - SSH扩展。这个扩展可以让您在VS Code中直接连接到远程服务器,并在远程服务器上运行和调试代码。
请注意,这些信息并不直接来自QuantConnect的文档,而是基于VS Code和SSH的通用知识。如果您需要更详细的帮助,我建议您查看VS Code和SSH的官方文档。
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
HONGYUZHANG
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!