Cvxopt install on python 3.8

Hi,

I am writing now the Capstone project for the Analyze Financial Data with Python Skill Path.
I write the code on my PC (Win10, AMD64, Python 3.8 and Visual Studio Code).
Using the optimal_portfolio() function is required to complete the project.
My problem is started here because this function use the cvxopt library.
This library is not so easy to install. After a half afternoon and many unsuccessful try I found a solution:
I needed install manually the library.

  1. I checked my python version: in command line: python --version
    (My version is 3.8.6)
  2. I updated numpy to the latest version: 1.19.2
  • get numpy version from command line:
    python -c "import numpy; print(numpy.version.version)"
  • pip install numpy --upgrade
  1. I downloaded numpy‑1.19.2+mkl‑cp38‑cp38‑win32.whl
  • 1.19.2: this is the numpy version
  • cp38: this is the Python version, if you have different version, look for your other version of numpy+mkl
  1. I downloaded cvxopt‑1.2.5‑cp38‑cp38‑win32.whl
  • cp38: this is the Python version
  1. Install manually: First have to install numpy+mkl
  • cd < pathway of the files >
  • python -m pip install numpy-1.19.2+mkl-cp38-cp38-win32.whl
    python -m pip install cvxopt-1.2.5-cp38-cp38-win32.whl