Back

Lean Install with Python on Linux - Not finding python3.6m

Hey guys,

I am attempting to run Lean on Ubuntu. I have looked at the other solutions on here but they have not made any difference. The C# code works fine but when I run the Python test Algorithm I get:

101493_1589745210.jpg

I have a Conda environment activated with python 3.6.10 installed.

101493_1589745178.jpg

I am not sure exactly what is going on? Has anyone seen this?

Update Backtest







0

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.


So, I got a little further:

sudo ln -s ~/anaconda3/envs/lean/lib/lib
python3.6m.so /usr/lib/libpython3.6m.so

Now it errors at finding another file.

This does not seem like a good way to do things, though.

Why does Lean look in /usr/lib/ for python and require us to make links there for our files instead of using the conda environment?

 

0

Hello Nicholas, unfortunately we only support 3.6.8. today due to the python integration technology. Please follow this install guide carefully step by step - 

https://github.com/QuantConnect/Lean/blob/master/Algorithm.Python/readme.md

 

0

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.


Hi Jared, yes I saw that and switched to Python 3.6.8 and this still persists.

The problem lies in adding links to my /usr/lib directory. This doesn't work well with conda environments (say I have two different environments with python 3.6 then the /usr/lib link will always use the one in the environment I linked it to and doesn't change with environment). Is there a better way to do this?

0

Thanks Nick and for the issue. We'll review and see if it's possible to avoid this link in the future. We build the foundation every 2-3 weeks so we will review it in the next build. 

0

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.


Update Backtest





0

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.


Loading...

This discussion is closed