How can I change my default python version (from upper to lower) in Ubuntu OS using virtual machine ?
2
0
Entering edit mode
2.1 years ago
ohtang7 ▴ 40

Hello folks,

I am now trying to conduct network analysis using q2-SCNIC plug in and q2-SCNIC is available via bioconda. Hence, I commanded as below but the message is saying that my python version is not compatible.

conda install -c lozuponelab q2-SCNIC

Error message :  UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:

Specifications:

q2-scnic -> python=3.5
Your python: python=3.8.13

If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.

The following specifications were found to be incompatible with your system:

feature:/linux-64::__glibc==2.27=0
feature:|@/linux-64::__glibc==2.27=0
Your installed version is: 2.27

My question is - How can I change my default python version (from upper to lower) in Ubuntu OS using virtual machine ? I am not familiar with this Linux virtual machine environment.

I've tried update my Linux and install python 3.5 as below

sudo apt-get update
sudo apt-get install python3.5

and python 3.5 was successfully instal

led.

However, when I check my python version, it's 3.8 as below

python --version
Python 3.8.13

How can I choose the python version using command ?

Thank you

Qiime2 Linux Machine Virtual Python • 1.8k views
ADD COMMENT
1
Entering edit mode
23 months ago
ohtang7 ▴ 40

Thank you guys. I've solved the problem with this commend. -> pip install SCNIC

ADD COMMENT
0
Entering edit mode
2.1 years ago
Michael 55k

My question is - How can I change my default python version (from upper to lower) in Ubuntu OS using virtual machine ? I am not familiar with this Linux virtual machine environment.

You don't need to, at least not for python, you can have multiple python versions in one system. But in this case you should try to install the software into a dedicated environment, like so: conda create -n SCNIC -c lozuponelab q2-SCNIC. Then see what happens.

ADD COMMENT
0
Entering edit mode

Thanks, I've tried the command "onda create -n SCNIC -c lozuponelab q2-SCNIC" and, got this error message.

------------------------------
Collecting package metadata (current_repodata.json): done
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: | 
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
failed                       
-----------------------------

What would be another suggestion ?

ADD REPLY

Login before adding your answer.

Traffic: 2473 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6