Comments (7)
Hi. I was installing scikit-survival, which has OSQP as one of its requirements (?), and it kept throwing some errors. I stumbled across this thread and did python3 -m pip install --user cmake
and afterwards python3 -m pip install --user scikit-survival
finally worked.
I'm on a 2016 MacBook Pro macOS 11.0.1 with python 3.8. I don't know if this will inform your development any.
from osqp-python.
from osqp-python.
Thanks! Added it in 4078327
from osqp-python.
I'm sorry this doesn't work as expected. The setup_requires
option does not install the package in a full fledged way, it only downloads it temporarily into a local folder, making packages importable. It works for cases like numpy, where it can be imported from within a custom command in setup.py. But cmake is called in setup.py as a subprocess (also before the setup function), which requires it to be in the sys path. Perhaps cmake needs to be called as a python module.
I tried installing the master branch, but doesn't work.
from osqp-python.
The best option is to install cmake separately independently from the language. That's what we suggest in the instructions.
The fact that OSQP is not directly installed using a binary is probably because you are using pip and linux (see #3). Note that cmake is also needed for code generation.
from osqp-python.
Yes you are right. I guess then CMake is best installed separately.
from osqp-python.
I have reverted the commit in 8336546. I will close the issue since it looks like it will not appear again when we release the manylinux binaries.
from osqp-python.
Related Issues (20)
- Error in building wheel for osqp because "No module named cmake' " HOT 1
- No wheels for Python 3.11 HOT 1
- Cannot install osqp on MacOSX HOT 3
- Numpy 1.24 breaks builtin type aliases HOT 1
- symbol not found in flat namespace '_csc_matrix'
- Python solve is faster than C code-generated one HOT 4
- FLOAT codegen argument doesn't work as expected
- Install fails because of metadata version on Mac OS HOT 14
- Apparent non-determinism when using OSQP via CVXPY HOT 5
- Turn solving verbosity off HOT 1
- no ‘cuda pcg’ support
- OSQP.update and scaling error
- unit test failures with scipy 1.12 HOT 2
- Enhancements for skbuild migration HOT 1
- OSQP requirement of scipy < 1.12.0 slows applications down on Apple Silicon HOT 3
- Wrap generated C code with tiny python functionalities HOT 1
- Integrate new codegen with cvxpygen HOT 1
- Add CONTRIBUTING.md
- Support codegen in editable install HOT 1
- Add macOS arm64 wheel HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from osqp-python.