Installing Conda in Google Colab - Tips Tricks 38

Ғылым және технология

Installing Conda in Google Colab
Code generated in the video can be downloaded from here:
github.com/bnsreenu/python_fo...
All other code: github.com/bnsreenu/python_fo...
This tutorial guides you through the process of installing Conda in your Colab.
Why do you need conda on Colab? Among other benefits, certain packages require Conda for installation. For example, trackpy installation: soft-matter.github.io/trackpy/...
Trackpy strongly recommends using Conda and not pip. Therefore, we need to set up conda environment for our colab notebook.
Miniconda system requirements: docs.conda.io/en/latest/minic...

Пікірлер: 29

  • @ajay0909
    @ajay09092 жыл бұрын

    Every time you amaze me sir. Hats off for the explanation you give.

  • @anirudhthatipelli8765
    @anirudhthatipelli8765 Жыл бұрын

    Thanks, this is very useful!

  • @cavanaulton8405
    @cavanaulton84058 күн бұрын

    Very helpful thank you

  • @KarthikeyanM-bs7ib
    @KarthikeyanM-bs7ib3 ай бұрын

    I was struggling with the issue of installing a package but not able to import it. Your video helped me out. Issue resolved after adding the site-packages to the sys.path. Thank you!

  • @SUDHIRSINGH-zh1du
    @SUDHIRSINGH-zh1du2 жыл бұрын

    Hello sir, I want to use image segmentation or semantic segmentation for joints mapping in rock structure how to label the output images to get just joints in output ?? I have tried video 67 but getting very low accuracy of 60%

  • @farnooshjoulaeian1550
    @farnooshjoulaeian15508 ай бұрын

    Thanks for the lectures. I have a questions: in every frame , we find different number of obj ( close to each other ofcourse). my problem is as following: like the first particle in 1 frame is not the same 1st particle in a second frame. maybe it is detected in 1st 3rd frames but not in 2nd. how do I manage this?

  • @alkalinebase
    @alkalinebase Жыл бұрын

    Thankyou so so much!

  • @beautyIsinEverything753
    @beautyIsinEverything753 Жыл бұрын

    hello sir I am trying to install torch=0.4.1 version using conda on colab but i am unable to do so. kindly also explain what is CUDA and how to use it with pytorch

  • @subhamsingh8610
    @subhamsingh8610 Жыл бұрын

    Thanks a lot !!!

  • @necuspam
    @necuspam Жыл бұрын

    Hi, great tutorial (again)! Can you please provide an instruction on how to get porespy working in colab?

  • @nuwaisir
    @nuwaisir Жыл бұрын

    You can use the --yes flag to automatically answer yes. e.g.: conda install [package_name] --yes

  • @Anon_life
    @Anon_life Жыл бұрын

    THANK YOU SIR

  • @abderrahmaneherbadji5478
    @abderrahmaneherbadji54782 жыл бұрын

    Hello Mr. Sreeni. Thank you for your amazing videos. Please, do not consider recording videos on machine learning/deep learning with C++ (Visual Code) ?. All the best.

  • @siddharth84s
    @siddharth84s Жыл бұрын

    Thank you

  • @patis.IA-AI
    @patis.IA-AI8 ай бұрын

    Sorry .... again , a very very usefull tuto great !! thanks .

  • @DigitalSreeni

    @DigitalSreeni

    8 ай бұрын

    Glad it was helpful!

  • @starrysky6681
    @starrysky66813 ай бұрын

    Hi, thank you very much for your work. I would like to know why after "!conda install -c condaforge pims" I have "Solving environment: failed with initial frozen solve. Retreating with flexible solve." and then the code does not work

  • @DigitalSreeni

    @DigitalSreeni

    3 ай бұрын

    You can try setting up Conda channels and then installing the package: !conda config --add channels conda-forge !conda install pims

  • @vovaermakov
    @vovaermakov Жыл бұрын

    I followed the steps, but Colab interactive notebook boxes are not using the same python version/libraries as I installed via pip under conda. Ex. I installed keras 2.2.4 via pip, but import keras print(keras.__version__) shows 2.9 even after restarting. Also python --version shows 3.7 while import sys print (sys.version) shows 3.8 .... any tips how to make Colab notebook use the same python/pip version as installed with Conda? Thank you!

  • @vovaermakov

    @vovaermakov

    Жыл бұрын

    For what its worth I found a workaround: %%python in the beginning of the cell will run the cell content with the 3.7 version that I installed. It probably won't share variables from other cells but this worked for me.

  • @renardi_adryan
    @renardi_adryan2 жыл бұрын

    Hello, How do we create multiple env? i use conda activate [name env] that doesnt work. Could you help me?

  • @chrislloyd1734

    @chrislloyd1734

    Жыл бұрын

    That is what I would like to know also.

  • @EyaBesbes-yd2gu

    @EyaBesbes-yd2gu

    3 ай бұрын

    I'm also facing the same problem

  • @monicasantamaria2020
    @monicasantamaria2020 Жыл бұрын

    I tried this procedure but installing Miniconda3 with python 3.8 (which I need for my package to work) and it does not work. Essentially, after installing the package and verifying it is installed with pip list, I get: "Module not found Error". Do you have any suggestions to solve this?

  • @yasntrktr

    @yasntrktr

    Жыл бұрын

    Same

  • @CR33D404
    @CR33D4048 ай бұрын

    That doesn't depend on your internet speed its already running on Google's cloud

  • @RAZZKIRAN
    @RAZZKIRAN2 жыл бұрын

    In 158 b video , i am getting this error. from keras.utils import to_categorical y_train_one_hot = to_categorical(y_train) y_test_one_hot = to_categorical(y_test) ImportError Traceback (most recent call last) in () ----> 1 from keras.utils import to_categorical 2 y_train_one_hot = to_categorical(y_train) 3 y_test_one_hot = to_categorical(y_test) ImportError: cannot import name 'to_categorical' from 'keras.utils' (/usr/local/lib/python3.7/dist-packages/keras/utils/__init__.py)

  • @DigitalSreeni

    @DigitalSreeni

    2 жыл бұрын

    See if this works: from tensorflow.keras.utils import to_categorical

  • @RAZZKIRAN

    @RAZZKIRAN

    2 жыл бұрын

    @@DigitalSreeni from tensorflow.keras.utils import to_categorical y_train_one_hot = to_categorical(y_train) y_test_one_hot = to_categorical(y_test) i tried sir, but getting error. in amax(*args, **kwargs) /usr/local/lib/python3.7/dist-packages/numpy/core/fromnumeric.py in _wrapreduction(obj, ufunc, method, axis, dtype, out, **kwargs) 84 return reduction(axis=axis, out=out, **passkwargs) 85 ---> 86 return ufunc.reduce(obj, axis, dtype, out, **passkwargs) 87 88 ValueError: zero-size array to reduction operation maximum which has no identity

Келесі