conda-incubator / condacolab

Install Conda and friends on Google Colab, easily
MIT License
341 stars 48 forks source link

Installing a specific version of python #59

Open rose-jinyang opened 1 year ago

rose-jinyang commented 1 year ago

Hello How are you? Thanks for contributing to this project. Now days, the default version of python3 on Google Colab is 3.10. I am going to use python3.8 on Colab. So I am going to install & use this condacolab. How should & install I this condacolab for python3.8?

samux87 commented 1 year ago

Hi @rose-jinyang, I have the same issue/task; have you solved it?

Thank you, Sam.

jaimergp commented 1 year ago

Hey folks, currently published version only supports whatever condacolab runs on. However, the development version on main should support arbitrary Python runtimes, but this hasn't been tested widely yet and there are a few details that need to be polished.

If you want to give it a try, you can use:

!pip install https://github.com/conda-incubator/condacolab/archive/main.tar.gz

Let me know how it goes!

KtzeAbyss commented 1 year ago

Hey folks, currently published version only supports whatever condacolab runs on. However, the development version on main should support arbitrary Python runtimes, but this hasn't been tested widely yet and there are a few details that need to be polished.

If you want to give it a try, you can use:

!pip install https://github.com/conda-incubator/condacolab/archive/main.tar.gz

Let me know how it goes!

So the command to specify a specific version of python is?

I found a fork before where you can specify the python version as follows

condacolab.install(
   environment_file="https://raw.githubusercontent.com/ssurbhi560/condacolab/07b92d827/environment.yaml",
   python_version="3.10",
   specs=["matplotlib", "numpy"],
   channels=["conda-forge", "bioconda"],
   pip_args=["blue"]
   extra_conda_args=["-yq"]
   )

But that doesn't work, the main branch I don't seem to see any demos and instructions for that, how do I specify a specific python version?

ctr26 commented 1 year ago

any news on how this works?

ctr26 commented 1 year ago
!pip install https://github.com/conda-incubator/condacolab/archive/main.tar.gz
import condacolab
condacolab.install_from_url("https://github.com/ctr26/DL4MicEverywhere/releases/download/test18/3.6-ubuntu.sh")

This fails for instance

limaolin2017 commented 7 months ago

Hey folks, currently published version only supports whatever condacolab runs on. However, the development version on main should support arbitrary Python runtimes, but this hasn't been tested widely yet and there are a few details that need to be polished.

If you want to give it a try, you can use:


!pip install https://github.com/conda-incubator/condacolab/archive/main.tar.gz

Let me know how it goes!

I have tried it, instal failed