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