You need to have the module installed.
To install it, type : pip3 install cvxpy
If you already have it installed, please double check by typing pip3 list
I want to run a Python script in my terminal (mac) that takes a csv file as input. At the beginning of the Pyton script, a package named cvxpy is imported. When running the code with data in the terminal I get the error:
ImportError: No module named cvxpy.
I'm feeling it's a directory fault, but I don't know how to fix this (e.g. how to get the Python script and python packaga in the same directory)
Somebody got a clue?
Thanks.
Import python package from terminal