-
Hi everyone, I am trying to install CyLP (v0.91.5) from source using CBC (2.10) which has also been installed from source. I run Sounds great. However, I run into issues when I try to import CyLP in an interpreter. (As a side note, when I install CBC from conda, installing CyLP from source works as expected and I get no issues importing any of the objects. Unfortunately, for my application, I need to be able to use CBC installed from source). When I open up my interpreter (from pycharm) inside the conda environment the setup suggests to build and I call
When I open my interpreter from the command line within my conda environment and call
Would anyone be able to advise how I can get CyLP to run when it and CBC are installed from source? If it helps, here are the steps on my machine (macOS Monterrey 12.4) that caused the error:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
So I reran the above with conda create and pip install both verbose ( After this, I then needed to add the
|
Beta Was this translation helpful? Give feedback.
So I reran the above with conda create and pip install both verbose (
-vv
argument appended to each). I found I was getting many warnings that CBC, CGL, CLP, etc. were built for arm (bc I have a mac with M1 chips) but CyLP is building for intel thus they can't link. Diving into it a little deeper, turns out CyLP was building for intel because all python packages build for intel by default in conda, as explained here. I updated the conda command to beCONDA_SUBDIR=osx-arm64 conda create -v -n CyLP cython numpy pkg-config scipy
.After this, I then needed to add the
--enable-shared
flag to coinbrew's build for the shared libraries to link correctly when building. Then, CyLP built as expected.…