Hi,
import numpy as np
import cvxpy as cvx
y = np.arange(1,5, 0.1)
x = cvx.Variable(len(y))
obj = cvx.Minimize(cvx.sum_squares(y-x))
The error message appears after this line.
If I do not use Spyder, but just use the normal python started from terminal, the error does not appear and cvxpy runs normally, but I would prefer to use cvxpy in Spyder if possible.
Can I find out if there is some way to resolve this error in Spyder please? Thank you.
Regards
yk