-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Can't install MONAI with C++ extensions #7464
Comments
You could check the undefined symbol by |
Hi @Nora-Go For the first question, I tried following commands in Windows 11 and the Anaconda environment.
There are NO errors happened.
As for the second question, I installed MONAI in Ubuntu 18.04 and the Anaconda environment.
There are NO errors that happened, too.
|
The building works fine like that, but still the error
For Option 2, I get the same error. Full output below. Anybody has an idea?
|
@hubutui Could you elaborate? I am not sure how that would help? I use either Windows or (Red Hat) Linux. |
I think the key is you need to make sure the gcc/g++ compiler, cuda, pytorch are compatible. In ArchLinux, all deps are the latest release. |
Thanks. I build a docker image with cuda 12.1 and that seems to solve the problem. Now running into the same issue as #7457 . |
I'm trying to install MONAI with C++ extensions but get errors while installing on Windows and errors while code execution on Linux.
On Windows I tried:
(1)
set BUILD_MONAI=1
$env:BUILD_MONAI=1
git clone https://github.com/Project-MONAI/MONAI
cd MONAI
python setup.py install
Here I get the error:
error.txt
and (2)
set BUILD_MONAI=1
$env:BUILD_MONAI=1
pip install --no-build-isolation git+https://github.com/Project-MONAI/MONAI#egg=monai
I'm using a conda environment with python3.9 and these are the libraries already installed:
On Linux, I tried:
BUILD_MONAI=1 pip install git+https://github.com/Project-MONAI/MONAI#egg=monai
Here the installation works, however when running my code I get:
I'm happy for any suggestions what I am doing wrong :))
The text was updated successfully, but these errors were encountered: