-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fail to install CVXPY (or SCS) #1082
Comments
This package contains native components, so it would have to be built into a wheel file. If you'd like to try doing this yourself, follow the instructions here. And if you're successful, please make a pull request so we can add the package to the public repository. If anyone else wants this package too, let us know by clicking the thumbs-up button above. |
I tried to add wheel file of cvxpy. As cvxpy need numpy and scipy, I add
. I think the problem is in scipy. scipy is installed by wheel file of If I install numpy by numpy wheel file of
How can I solve it? |
Windows, Linux and macOS wheels will not work on Android. The only wheels that will work are Android wheels built with the instructions l I linked in my previous comment, or pure-Python wheels tagged with The Android wheel repository, which Chaquopy uses automatically, contains NumPy for Python 3.8-3.12, and SciPy for Python 3.8-3.10. So as long as your app's Python version is between 3.8 and 3.10, you'll be able to install both of those packages. But you'll still have to make your own builds of cvxopt, scs, and maybe other libraries they depend on. |
Thanks for your reply. I am trying to build it. I saw it needs I tried to make a meta.yaml file for cvxpy following that in multidict and run
I checked the ANDROID_HOME path is correct. I look into android-sdk folder and there is only cmdline-tools folder which is created according to README. How can I solve it? Also I tried
and no file in in dist. Why would be like that? Thanks. |
I've had a few reports of this, but I don't know the cause, Please see #1084 (comment), and post a response in that issue.
You'll have to create it yourself by following the examples of the other recipes.
There's no need to build NumPy yourself. If your package needs it during the build, you can download it from the repository as the message says. But I suggest you start with a minimal meta.yaml file, and add requirements only when necessary. |
Thanks. I just download ndk from web and unzip it in android-sdk. |
@kmykman Hi, I am also interested in using cvxpy in chaquopy. Have you successfully built it? Do you mind sharing more details on how you built it? Thanks! |
@jxx123 I have tried to build it but I didn't test it because my target is cvxopt but it failed (#1085 (comment)). You can try if it works. I have attached it. |
I have tried to install CVXPY by
pip { install("cvxpy")}
but it gives errorERROR: Command errored out with exit status 1:
andFailed to install scs==3.2.0
. Then I triedpip { install("scs")}
to install scs alone, but it gives the same error. I saw from bodono/scs-python#32 (comment) said install scs in conda or new environment. I tried to install in Colab and it is fine. So it is not able to install in chaquopy. How can I do this in chaquopy? Or is there a way to install cvxpy?The text was updated successfully, but these errors were encountered: