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/...
Every time you amaze me sir. Hats off for the explanation you give.
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!
You can use the --yes flag to automatically answer yes.
e.g.: conda install [package_name] --yes
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?
Hello,
How do we create multiple env?
i use conda activate [name env] that doesnt work.
Could you help me?
That is what I would like to know also.
I'm also facing the same problem
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?
Same
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
You can try setting up Conda channels and then installing the package:
!conda config --add channels conda-forge
!conda install pims
very very thank you, for this video
Very helpful thank you
Thanks, this is very useful!
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%
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
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!
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.
Hi, great tutorial (again)! Can you please provide an instruction on how to get porespy working in colab?
Sorry .... again , a very very usefull tuto great !! thanks .
Glad it was helpful!
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.
That doesn't depend on your internet speed its already running on Google's cloud
Thankyou so so much!
THANK YOU SIR
Thank you
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)
See if this works: from tensorflow.keras.utils import to_categorical
@@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
Thanks a lot !!!