deepdow
deepdow copied to clipboard
Trouble with cvxpy
I seem to have error in importing cvxpy for some reason.
I have looked for solutions, but I can't find the solution. Below is the error I got. I am using PyCharm and my OS is Mac.
Traceback (most recent call last):
File "/Users/chriskang/Desktop/OneDrive - HKUST Connect/Pycharm/2021_Toy/DeepDow/data_prep.py", line 5, in
File "/Users/chriskang/Desktop/OneDrive - HKUST Connect/Pycharm/2021_Toy/DeepDow/venv/PycharmProjects/VirtualEnvList/lib/python3.8/site-packages/diffcp/cone_program.py", line 3, in
Please help
Hey there!
Looking at the traceback I think this issue has to do with incorrect installation of cvxpylayers and more specifically it's dependency diffcp.
I would image that if you try to run the following import inside of Python you get the same error, right?
import diffcp.cones as cone_lib
Anyway, if that is the case, I would definitely encourage you to read through issues in the following repos. And if none of them addresses your problem you should probably create a new issue.
- https://github.com/cvxgrp/cvxpylayers/blob/master/setup.py
- https://github.com/cvxgrp/diffcp
If you figure out the problem, feel free to close this issue and potential describe what measures you took:)