Installing Conda in Google Colab - Tips Tricks 38

Поділитися
Вставка
  • Опубліковано 26 січ 2025
  • Installing Conda in Google Colab
    Code generated in the video can be downloaded from here:
    github.com/bns...
    All other code: github.com/bns...
    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.git...
    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/...

КОМЕНТАРІ • 30

  • @ajay0909
    @ajay0909 2 роки тому +1

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

  • @KarthikeyanM-bs7ib
    @KarthikeyanM-bs7ib 9 місяців тому +1

    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!

  • @nuwaisir
    @nuwaisir 2 роки тому +1

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

  • @farnooshjoulaeian1550
    @farnooshjoulaeian1550 Рік тому +1

    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?

  • @renardi_adryan
    @renardi_adryan 2 роки тому +3

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

  • @monicasantamaria2020
    @monicasantamaria2020 2 роки тому +3

    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?

  • @starrysky6681
    @starrysky6681 9 місяців тому

    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  9 місяців тому

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

  • @deepanshukacher1536
    @deepanshukacher1536 3 місяці тому

    very very thank you, for this video

  • @cavanaulton8405
    @cavanaulton8405 6 місяців тому +1

    Very helpful thank you

  • @anirudhthatipelli8765
    @anirudhthatipelli8765 2 роки тому +1

    Thanks, this is very useful!

  • @SUDHIRSINGH-zh1du
    @SUDHIRSINGH-zh1du 2 роки тому

    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%

  • @beautyIsinEverything753
    @beautyIsinEverything753 2 роки тому

    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

  • @vovaermakov
    @vovaermakov 2 роки тому

    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 2 роки тому

      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.

  • @necuspam
    @necuspam 2 роки тому

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

  • @patis.IA-AI
    @patis.IA-AI Рік тому

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

  • @abderrahmaneherbadji5478
    @abderrahmaneherbadji5478 2 роки тому

    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.

  • @CR33D404
    @CR33D404 Рік тому

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

  • @alkalinebase
    @alkalinebase 2 роки тому

    Thankyou so so much!

  • @Anon_life
    @Anon_life 2 роки тому

    THANK YOU SIR

  • @siddharth84s
    @siddharth84s 2 роки тому

    Thank you

  • @RAZZKIRAN
    @RAZZKIRAN 2 роки тому

    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 роки тому +1

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

    • @RAZZKIRAN
      @RAZZKIRAN 2 роки тому +1

      @@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

  • @subhamsingh8610
    @subhamsingh8610 Рік тому

    Thanks a lot !!!