Import error in python
Harshvardhan1 opened this issue · 2 comments
Harshvardhan1 commented
An error arises in the line "from qcqp import * " saying:-
NameError: name 'QCQP' is not defined
I used pip to install cvxpy and qcqp and I'm working in python 2.7.
Please tell me how to fix this.
Thanks in advance
jaehyunp commented
sorry for the inconveniences. I've meant to fix the pip version import error for some time. I'll try to fix it sometime this week. meanwhile, please directly install from this repository.
jaehyunp commented
fixed. this was due to the import behavior difference in python2 and python3. please update your qcqp installation with pip install qcqp --upgrade
, and it should work now.