Тёмный

Installing conda on Google Colab for Data Science 

Data Professor
Подписаться 191 тыс.
Просмотров 18 тыс.
50% 1

In this video, I will show you how to install conda in Google Colab to enable your data science projects. Although "pip install" will allow you to install desired packages, the installation of some may require lengthy installation process and long list of dependencies as prerequisite. The "conda install" command will allow you to easily install essential packages along with their dependencies.
🌟 Buy me a coffee: www.buymeacoff...
📎CODE: github.com/dat...
⭕ Playlist:
Check out our other videos in the following playlists.
✅ Data Science 101: bit.ly/datapro...
✅ Data Science RU-vidr Podcast: bit.ly/datasci...
✅ Data Science Virtual Internship: bit.ly/datapro...
✅ Bioinformatics: bit.ly/dataprof...
✅ Data Science Toolbox: bit.ly/datapro...
✅ Streamlit (Web App in Python): bit.ly/datapro...
✅ Shiny (Web App in R): bit.ly/datapro...
✅ Google Colab Tips and Tricks: bit.ly/datapro...
✅ Pandas Tips and Tricks: bit.ly/datapro...
✅ Python Data Science Project: bit.ly/datapro...
✅ R Data Science Project: bit.ly/datapro...
⭕ Subscribe:
If you're new here, it would mean the world to me if you would consider subscribing to this channel.
✅ Subscribe: www.youtube.co...
⭕ Recommended Tools:
Kite is a FREE AI-powered coding assistant that will help you code faster and smarter. The Kite plugin integrates with all the top editors and IDEs to give you smart completions and documentation while you’re typing. I've been using Kite and I love it!
✅ Check out Kite: www.kite.com/g...
⭕ Recommended Books:
✅ Hands-On Machine Learning with Scikit-Learn : amzn.to/3hTKuTt
✅ Data Science from Scratch : amzn.to/3fO0JiZ
✅ Python Data Science Handbook : amzn.to/37Tvf8n
✅ R for Data Science : amzn.to/2YCPcgW
✅ Artificial Intelligence: The Insights You Need from Harvard Business Review: amzn.to/33jTdcv
✅ AI Superpowers: China, Silicon Valley, and the New World Order: amzn.to/3nghGrd
⭕ Stock photos, graphics and videos used on this channel:
✅ 1.envato.marke...
⭕ Follow us:
✅ Medium: bit.ly/chanin-m...
✅ FaceBook: / dataprofessor
✅ Website: dataprofessor.org/ (Under construction)
✅ Twitter: / thedataprof
✅ Instagram: / data.professor
✅ LinkedIn: / chanin-nantasenamat
✅ GitHub 1: github.com/dat...
✅ GitHub 2: github.com/cha...
⭕ Disclaimer:
Recommended books and tools are affiliate links that gives me a portion of sales at no cost to you, which will contribute to the improvement of this channel's contents.
#dataprofessor #conda #anaconda #miniconda #jupyternotebook #jupyter #googlecolab #colaboratory #notebook #machinelearning #datascienceproject #randomforest #decisiontree #svm #neuralnet #neuralnetwork #supportvectormachine #python #learnpython #pythonprogramming #datascience #datamining #bigdata #datascienceworkshop #dataminingworkshop #dataminingtutorial #datasciencetutorial #ai #artificialintelligence #tutorial #dataanalytics #dataanalysis #machinelearningmodel #condainstall

Опубликовано:

 

18 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 79   
@DataProfessor
@DataProfessor 4 года назад
Which packages in Python do you use that are not already pre-installed on Google Colab? Love to hear from you all, comments down below! 👇
@yahampathmarambe8879
@yahampathmarambe8879 3 года назад
rasterio geopandas
@manugummadi
@manugummadi Год назад
@Data Professor, How can we downgrade the python version in google colab? (from 3.8 to 3.7)
@FerdinandDedja-m5h
@FerdinandDedja-m5h Год назад
I have the same question!@@manugummadi
@SoCBrain
@SoCBrain Год назад
Thank you!, this still works in 2023 :D
@emilchirila216
@emilchirila216 4 года назад
Short, concise and very helpful! Thank you man!
@DataProfessor
@DataProfessor 4 года назад
Emil Chirila Thanks for the kind comment!
@hannahminas7848
@hannahminas7848 4 года назад
Thank you very much for your videos on Google Colab! Could you do a tutorial on how to use different environments in conda and how to activate/ deactivate them?
@DataProfessor
@DataProfessor 4 года назад
Thanks Hannah for the suggestion! I’ll look into this 😃
@muhammadsarimmehdi
@muhammadsarimmehdi 4 года назад
This doesn't work. I get the following error after I type !conda active [name of my environment] CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'. To initialize your shell, run $ conda init Currently supported shells are: - bash - fish - tcsh - xonsh - zsh - powershell See 'conda init --help' for more information and options. IMPORTANT: You may need to close and restart your shell after running 'conda init'.
@DataProfessor
@DataProfessor 4 года назад
Hi Sarim, its: conda activate name-of-environment
@saisudha1962
@saisudha1962 4 года назад
Thank you sir for informative content in bioinformatics
@DataProfessor
@DataProfessor 4 года назад
@@saisudha1962 Thanks for your comment. Your training so far seems rock solid, you have a great advantage with your skills in Data science. As for opportunities, traditionally you would have 2 options whether to go into academia or industry. Nowadays there is a third option which is to become an entrepreneur and initiate a start up company. For the first 2 paths, you would need to go for a postdoctoral training where you will work with loose supervision of a mentor while you supervise PhD and masters students on research projects. Wish you success in your journey. Feel free to share with us with path interests you.
@saisudha1962
@saisudha1962 4 года назад
Thank you sir.
@ktmorgan3292
@ktmorgan3292 2 года назад
Thank you for posting. Very clear and very useful!
@DataProfessor
@DataProfessor 2 года назад
Glad it was helpful!
@rlabinesh7911
@rlabinesh7911 3 года назад
Can you please put a video... How to do this in jupyter notebook
@mabyes
@mabyes 3 года назад
Thank you very much. You explained it very well!
@DataProfessor
@DataProfessor 3 года назад
Glad it was helpful!
@dohyun0047
@dohyun0047 4 года назад
thank you!!! it was so helpful saved so much time thank you!!
@DataProfessor
@DataProfessor 4 года назад
Thanks for the kind words! Glad it was useful!
@santiagovalenciaa
@santiagovalenciaa 3 года назад
Excellent video. Greetings from Ecuador.
@DataProfessor
@DataProfessor 3 года назад
Thanks Santiago, welcome to the channel 😊
@NattapongPUN
@NattapongPUN 4 года назад
Superb! สุดยอดครับอาจารย์
@DataProfessor
@DataProfessor 4 года назад
Thanks krub Khun Natthaphong for the kind words!
@amitbhatia90
@amitbhatia90 3 года назад
You are great! This saved my day.
@DataProfessor
@DataProfessor 3 года назад
You’re welcome!
@shwetaredkar734
@shwetaredkar734 4 года назад
Thanks for the helpful tutorial.
@DataProfessor
@DataProfessor 4 года назад
Shweta, thanks for the kind words, after a few short tutorial videos, I will be releasing some more lengthy bioinformatics / cheminformatics tutorial videos in Python.
@shwetaredkar734
@shwetaredkar734 4 года назад
@@DataProfessor thanks a lot for all the efforts you make to help people educate about such topics. I am eagerly waiting for the bioinformaticians/cheminformatics tutorials.
@DataProfessor
@DataProfessor 4 года назад
@@shwetaredkar734 Thanks for your comment. It's my pleasure. The bioinformatics/cheminformatics tutorial video is in the making and may take a bit of time. In the meanwhile, I have already finished filming the next 2 videos which are simpler videos on the Google Colab Tips and Tricks.
@lrh712
@lrh712 3 года назад
Thank you for your sharing!
@DataProfessor
@DataProfessor 3 года назад
My pleasure!
@georgebatchkala556
@georgebatchkala556 4 года назад
Great tutorial, thank you very much! Only one follow-up question: I have created a conda-environment in Google Colab after installing it as you explained. I tried to activate it using: '! conda activate my_env_name', however, I keep getting errors from Colab. Can you please cover it in your next video, or give a quick hint here :)
@DataProfessor
@DataProfessor 4 года назад
Hi George, thanks for the kind comment. I am afraid that will not work on colab, though it will work on a local computer. In this video, I provide the Jupyter notebook that contains the cell code that installs python 3.7 via conda and it sets the path of the newly installed conda python 3.7 and it can be used for "conda install" of any package you may need without activating any environment. Please refer to github.com/dataprofessor/code/blob/master/python/google_colab_install_conda.ipynb
@georgebatchkala556
@georgebatchkala556 4 года назад
Data Professor, thank you! It worked for me!
@DataProfessor
@DataProfessor 4 года назад
@@georgebatchkala556 😃
@siddharthshrivastava5823
@siddharthshrivastava5823 3 года назад
Thanks a Lot!!
@DataProfessor
@DataProfessor 3 года назад
You're welcome!
@li-pinjuan4714
@li-pinjuan4714 4 года назад
Thanks very much for the effort. I followed your tutorial and successfully install Conda with new version of Python. I am wondering if it is doable to add the kernel of the newer Python into the Jupyter (including kernels of Python3.6, Python2.7, and swift by default) rather than using the Colab notebook.
@DataProfessor
@DataProfessor 4 года назад
I think that is possible, replace the url with the url of different python version then modify the name of the file to be run
@roshanshihab8515
@roshanshihab8515 Месяц назад
I already have anaconda installed in my pc. Should I do something different?
@DataProfessor
@DataProfessor Месяц назад
You’re good, this is essentially the same but more light weight
@jonasc8569
@jonasc8569 3 года назад
Is there a way to keep the conda installation so that I do not need to install it every time I open colad?
@DataProfessor
@DataProfessor 3 года назад
Unfortunately not, since the user session for Colab lasts for a maximum of 8 hours and would reset after which.
@pulkitnijhawan653
@pulkitnijhawan653 4 года назад
Thanks a lot sir!
@DataProfessor
@DataProfessor 4 года назад
Thanks for watching 😃
@jayshay7416
@jayshay7416 3 года назад
Thanks, thats perfect. Awesome
@Peter8831
@Peter8831 4 года назад
Is there anyway to install the packages to your own defined directories? This way, I wouldn't have to reinstall them with each session.
@DataProfessor
@DataProfessor 4 года назад
Google colab is running on shared resources and unfortunately they have a timeout every 12 hours if the browser is left open for running calculations afterwards it resets and you have to reconnect. You could however run a customized jupyter notebook on Google Cloud Platform and permanently install packages once.
@Peter8831
@Peter8831 4 года назад
@@DataProfessor That's true. The reason I ask is because I know PIP does allow a custom path to save packages in. Google Colab's Developers should really consider adding native Conda Support (all the bells and whistles) in their next big update. But, not sure if I'm ready to actually invest in Google Cloud Platform. I've recently uploaded to Colab Pro. Any idea how Cloud Platform compares in terms of pricing?
@utkarshpratiush281
@utkarshpratiush281 Год назад
I do it by installing python libraries on my Google drive and the putting it on sys path in colab. Avoids installing it using pip every time. Hit me up if you want the details.
@archydragon5213
@archydragon5213 4 года назад
Hi just wonder do i need to do this every time i try to open conda or this will save automatic
@DataProfessor
@DataProfessor 4 года назад
Yes, the code block for installing conda will need to be run at the top when running the notebook (once every 8 or 9 hours, or once everytime the notebook is open after the browser has been closed). Colab has a time limit on its session, which resets the environment state and data after 8 or 9 hours of active calculation. Or also after closing he browser.
@ervinwilneder
@ervinwilneder 4 года назад
Woow! This is such usefull!
@DataProfessor
@DataProfessor 4 года назад
Thanks Ervin!
@atefehramzani5022
@atefehramzani5022 2 года назад
How to install virtualenv in Google colab?
@iqrawaheed6032
@iqrawaheed6032 4 года назад
successfully installed but suddenly this error appears ......Could not fetch /10 from backend
@MiguelSilva-vq6qe
@MiguelSilva-vq6qe 4 года назад
Thanks a lot , this vid was really helpful , Is there a way to edit / .bashrc on Google colab. In order to finally use " conda activate my env" which Is py27
@DataProfessor
@DataProfessor 4 года назад
I am afraid not, the colab notebook resets itself after every session.
@gustavoviana1178
@gustavoviana1178 4 года назад
Tks!
@DataProfessor
@DataProfessor 4 года назад
Thanks for watching 😀
@ishangupta9675
@ishangupta9675 4 года назад
Tysm dear professor. Love you 🎂🎂🥂🥂
@DataProfessor
@DataProfessor 4 года назад
Thanks Ishan!
@ishangupta9675
@ishangupta9675 4 года назад
My pleasure DataProf.
@ishangupta9675
@ishangupta9675 4 года назад
Please make GUI programming videos in "Colab" using python!!!
@ishangupta9675
@ishangupta9675 4 года назад
Gui prograaming in colab videos are no where!! I need it very much. So i request you dear dataprofessor
@DataProfessor
@DataProfessor 4 года назад
Thanks Ishan for the suggestion. I will put this in the to-do list. I have been experimenting with the GUI widgets and will hopefully make a video on it soon. Please stay tuned, and remember to turn on the notifications for being notified when a new video is released. 😃
@Tsung-ChihTsai-y1c
@Tsung-ChihTsai-y1c 7 месяцев назад
It's an amazing video, it helps me a lot! I have an issue about creating new environment. After your two cells. I use "!conda create -n env37 python=3.7 !conda activate env37" But, it dosen't work. When I use "conda activate env37", it reveals "CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'. To initialize your shell, run $ conda init Currently supported shells are: - bash - fish - tcsh - xonsh - zsh - powershell See 'conda init --help' for more information and options. IMPORTANT: You may need to close and restart your shell after running 'conda init'. Could you please tell me how to resolve it.
@incorporate_biases
@incorporate_biases 4 года назад
Hi Mr. Data, I have one question when trying to install conda in colab to implement Mask RCNN. Concretely, this is source code of Mask RCNN: github.com/facebookresearch/maskrcnn-benchmark. I can't activate my env to install pytorch and torchvision in the right way. Can you help me to install this code.
@purwodiyono
@purwodiyono 4 года назад
How to install gromacs under conda in google colab?
@DataProfessor
@DataProfessor 4 года назад
You can run the following in a code cell in Colab: ! conda install -c bioconda gromacs
@purwodiyono
@purwodiyono 3 года назад
@@DataProfessor command not found, sir.
@user-gj4nb1hj4g
@user-gj4nb1hj4g 2 года назад
О великий, спасибо тебе.
@khouakhi007
@khouakhi007 4 года назад
Many thanks for that! I have tried to install a conda package using similar steps, everything seems to correctly installed but I couldn't import the package. Please see the colab lines of code colab.research.google.com/drive/1232TdpXuju8VEZd77CWyBusRd3CyBctI?usp=sharing
@slhcn8609
@slhcn8609 2 года назад
thanks for the video, I'm sorry, but useless information! since I can't create different environments. I even don't need it, I can easily create another notebook as an environment.
Далее
Use native R on Google Colab for Data Science
6:33
Просмотров 20 тыс.
File Handling in Google Colab for Data Science
18:59
Просмотров 22 тыс.
Prank Orchestra
00:10
Просмотров 1,7 млн
Installing Conda in Google Colab - Tips Tricks 38
9:37
The Ultimate Coding Setup for Data Science
17:35
Просмотров 114 тыс.
What REALLY is Data Science? Told by a Data Scientist
11:09
Anaconda (Conda) for Python - What & Why?
26:10
Просмотров 231 тыс.
Data Science Environments
1:06:01
Просмотров 434
Exploratory Data Analysis in Python using pandas
28:52