Closed eohara-ie closed 3 years ago
Getting this error when running pip install -r requirements.txt
:
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft
.com/downloads/
Seems to not affect the notebook so far
I think it's needed for the pyportfolioopt parts. The DB part should work fine without this. But the solvers used for efficient frontier probably won't work
Yeah pyportfolioopt didn't install as a result
Just have to call our that visual studio as a pre requisite
Yeah I see it's stated in the pyportfolioopt repo but no harm to emphasise it
You can take the cattle to water but ya can't make them drink....
I installed the C++ Build Tools as instructed in https://github.com/robertmartin8/PyPortfolioOpt/blob/master/README.md
Got this error numpy.core.multiarray failed to import
which I fixed by updating numpy
Now seeing this
No module named 'plotly'
pip install plotly
fixed that.
Now breaking here
cf.go_offline()
'cf' is not defined
Please add plotly to the requirements txt
I think you can comment out the CF line which notebook is that in
V1
Removed cf references from the files as it is not used anywhere, we can add the note: error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft .com/downloads/ to the readme but its fairly self explandatory from the pyportfolioopt error
I think no harm to have it in pre-reqs section of the README Idiot-proof it
Closing for now
Testing in relatively fresh environment on my Windows PC to check for additional required packages to add to requirements.txt