Installation Process
Conda Installation
- Install conda from here
- Run
conda
on your terminal/CMD Output should be something like this: - Create a new environment using
conda create -n portfolio python=3.7
Output should be something like this: - Activate the environment using
conda activate portfolio
Output should be something like this: - Install ipykernel using
conda install ipykernel
- Add the environment to jupyter notebook using
python -m ipykernel install --user --name portfolio
- Run
jupyter notebook
on your terminal/CMD - Open the notebook
portfolio.ipynb
- Change the kernel to
portfolio
usingKernel > Change Kernel > portfolio
Output should be something like this: - Install the required packages using
pip install -r requirements.txt
ORpip install pandas numpy yfinance
- Install riskfolio-lib using
pip install riskfolio-lib
- First Error
setup.py
not found output should be something like this: - Install setuptools using
pip install setuptools
- Second Error
Microsoft Visual C++ 14.0 is required
- Install Miscrosoft Visual C++ Build Tools using
https://visualstudio.microsoft.com/visual-cpp-build-tools/
- Select all of the above 4 options
- Install riskfolio-lib using
pip install riskfolio-lib
- Run the notebook
- Enjoy!