Conflicting dependencies for Anacona 2020.11
When setting up a fedora-33
virtual machine with Anaconda (Version 2020.11) in April 2021, I got conflicting dependencies, as graph-tool
was not compatible with python version 3.8.5
. An pointed out here, the way to go is using a virtual environment with a supported version of python (3.7.9. in my case, as I still new from Anaconda version 2020.03).
In my case it was important to install Anaconda NOT as sudo
.
Otherwise some conda
-alias was not set properly (which conda
should give an about 30 lines command with some if/else condition).
Here are the bash commands:
$ cd ~/Downloads/
$ wget https://repo.anaconda.com/archive/Anaconda3-2020.11-Linux-x86_64.sh
$ sudo chown -R user:user /opt/ # needed in my case to avoid sudo for installing Anaconda and calling conda later
$ bash Anaconda3-2020.11-Linux-x86_64.sh # location: /opt/anaconda3, run conda init: yes
$ source ~/.bashrc # make command conda available. Like restarting terminal in this case.
$ conda create -n envGraphTool anaconda python=3.7.9
$ conda activate envGraphTool
$ conda install -c conda-forge graph-tool
And a test if everything worked:
(envGraphTool) [user@f33 Downloads]$ which python
/opt/anaconda3/envs/envGraphTool/bin/python
(envGraphTool) [user@f33 Downloads]$ python -V
Python 3.7.9
(envGraphTool) [user@f33 Downloads]$ python
Python 3.7.9 (default, Aug 31 2020, 12:42:55)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import graph_tool as gt
>>> exit()
(envGraphTool) [user@f33 Downloads]$