Closed Skylark0924 closed 3 years ago
Hi! We are able to use both Magnum and python 3.7.9 with anaconda. I think you miss something during the installation procedure.
Our OS version is Ubuntu 20.04 and Anaconda 4.8.2. The procedure we use is the following:
Create your Virtual environment with conda with the following parameters and activate the environment: conda create -n $your_env_name python=3.7 cmake=3.14.0
Install using pip a pythorch version according to your version of CUDA
If you use a version of Os that has gcc and g++ >8:
sudo apt install build-essential sudo apt -y install gcc-7 g++-7 gcc-8 g++-8
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 7 sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 7 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 8 sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 8
It is possible to switch between the different versions of gcc and g++ by using the command: update-alternatives.
for C compiler execute:
sudo update-alternatives --config gcc
You will be able to choose for the alternative gcc (providing /usr/bin/gcc):
Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/bin/gcc-9 9 auto mode
1 /usr/bin/gcc-7 7 manual mode
2 /usr/bin/gcc-8 8 manual mode
3 /usr/bin/gcc-9 9 manual mode
Press to keep the current choice[*], or type selection number:
for C++ compiler execute:
$ sudo update-alternatives --config g++
You will be able to choose for the alternative g++ (providing /usr/bin/gcc):
Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/bin/g++-9 9 auto mode
1 /usr/bin/g++-7 7 manual mode
2 /usr/bin/g++-8 8 manual mode
3 /usr/bin/g++-9 9 manual mode
Press to keep the current choice[*], or type selection number:
We used gcc and g++ 8 Checking yours active compilers $ gcc --version $ g++ --version
Note: rememberr to set the default value (0) after the installation!! Follow the installation guide to install habitat-sim and habitat-api.
Note: we also needed to install the following packet to succes (but i think it's not related to your problem, just to inform you): libjpeg-dev libglm-dev libgl1-mesa-glx libegl1-mesa-dev mesa-utils xorg-dev freeglut3-dev libbullet-dev
Thank you for your reply! I will test it later.
Closing due to inactivity.
Hi, I am actually using the same version as you mentioned in the README.md file. However, I still got this error
As you mentioned in another issue, some problems may occur when using python 3.6 and you recommend using 3.7. But I think this package
magnum
does not fit 3.7.ImportError: Python version mismatch: module was compiled for Python 3.6, but the interpreter version is incompatible: 3.7.9