googledatalab / datalab

Interactive tools and developer experiences for Big Data on Google Cloud Platform.
Apache License 2.0
975 stars 249 forks source link

Python 3.6 or later #2177

Open OrielResearchCure opened 3 years ago

OrielResearchCure commented 3 years ago

Hello,

I want to use biopython library. Probably trivial question that I am not familiar with the process.

When I run:

!pip install biopython

I get the following message:

Collecting biopython
  Using cached https://files.pythonhosted.org/packages/3d/2f/d9df24de05d651c5e686ee8fea3afe3985c03ef9ca02f4cc1e7ea10aa31e/biopython-1.77.tar.gz
    Complete output from command python setup.py egg_info:
    Biopython requires Python 3.6 or later. Python 3.5 detected.

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-f7lipnn_/biopython/

I tried to upgrade the python with

!conda update --yes python

when i type !python --version I get:

Python 3.5.6 :: Anaconda, Inc.

how do I update the python version in the environment?

Thanks, eilalan

Mohit1-K commented 3 years ago

You can try with this command:

conda install python=3.6.0 (whatever version you want)

If this doesn't work, close your environment and install outside the environment, it will surely work.

OrielResearchCure commented 3 years ago

thanks. Sorry for the late response. will try