Master the basics of Conda environments in Python

  Рет қаралды 119,442

The Jackson Laboratory

The Jackson Laboratory

4 жыл бұрын

Master the basics of conda environments in Python: create environments (from command-line and YAML files), get information on them, activate and deactivate, install extra packages, export environments into YAML for reproducibility. Conda is our favorite open-source package management and environment management system. It runs in Windows, macOS and Linux and allows users to easily install different versions of packages and libraries and switch between them.

Пікірлер: 59
@amirshadmehr7752
@amirshadmehr7752 2 жыл бұрын
BEST tutorial ever. I had a hard time figuring out how to work with conda until watching this video. Thank you so much.
@Patiencelad
@Patiencelad Жыл бұрын
Erick. Thanks so much! This was a VERY helpful video and instructions, especially on the use of YML files. I plan to use what you taught today!
@kavyajeetbora2585
@kavyajeetbora2585 2 жыл бұрын
Thanks for the video. Now my confusion on conda virtual environments is cleared.
@williamgomez6087
@williamgomez6087 3 жыл бұрын
Perfectly explained¡ I really apreciate it so much¡
@davidcenteno8477
@davidcenteno8477 3 жыл бұрын
Thank you so much, great tutorial
@QScientist
@QScientist 2 жыл бұрын
Thanks for the video. Question: if I update python version by creating new env, how I can add all the packages from old version but newer? So, maybe it can be done with creating yml file without explicit specifying version of libs? Instead numpy=0.25 just numpy? How to create this file?
@RyanPu-js9gl
@RyanPu-js9gl 2 жыл бұрын
Great tutorial! Thanks for sharing this. One question: where are we supposed to find those yml files we wrote out. Can you give an example? Maybe the root folder of the Conda env? Thanks.
@jeroen36
@jeroen36 2 жыл бұрын
My conda environment has pip installed but when I use the pip command (inside the conda environment) to install a package its installed inside my root instead of the environment. The command "which -a pip" shows me the path /usr/bin/pip and /bin/pip, but not the pip inside my conda environment. I tried adding the pip from my conda environment to my WSL2 PATH, but that doesn't work either. What do I do? How do I get pip to install my packages inside my conda environment?
@Rishu_Dakshin
@Rishu_Dakshin 9 ай бұрын
Your explaination over the topic is very clear. Thanks for the video and your hardwork. Appreciated😃😀
@joshuantw
@joshuantw 3 жыл бұрын
Hi may I ask what is less? You used it to view the environment.yml file
@juleswombat5309
@juleswombat5309 2 жыл бұрын
Nice. I also prefer use Conda environment to native python virtual environment. I learn't a bit about yaml based Conda environment create package lists. Albeit I do get a little confused about any differences between Conda install packahes and Pip installed packages. They appear slightly different in Anaconda Navigator listing. I guess as they are sourced from different repositories.
@AFCAjaxO
@AFCAjaxO 2 жыл бұрын
great vid. I have a problem - when trying to load an environment I have installed it tells me that it could not find the encironment. even though while doing conda info --envs I see the same name..
@sukulmahadik0303
@sukulmahadik0303 2 жыл бұрын
Great video. Thank you.
@tyswenson7542
@tyswenson7542 2 жыл бұрын
Great explanations. Enticing to use Anaconda more.
@stephanie_ong
@stephanie_ong 3 жыл бұрын
Thanks! I am new to Python environments and this tutorial helped me create one based on a Git repo I forked.
@koabraylen1142
@koabraylen1142 2 жыл бұрын
sorry to be off topic but does anybody know of a tool to get back into an Instagram account..? I was stupid lost the password. I would love any tricks you can offer me.
@karinamatos4253
@karinamatos4253 2 жыл бұрын
How did you get out after the less environment.yml command? I can't go back.
@VishwasShukla12345
@VishwasShukla12345 Жыл бұрын
what would be the difference between packages under dependencies and packages under pip?
@ludovikc2032
@ludovikc2032 2 жыл бұрын
How do I code after setting things up. I have every library I need but no way to code using those libraries
@minyang497
@minyang497 4 жыл бұрын
Thank you
@drewfrench8784
@drewfrench8784 Жыл бұрын
Very helpful and simple.
@azkarehman8366
@azkarehman8366 3 жыл бұрын
thanks alotttt love
@shivamdobariya63
@shivamdobariya63 2 жыл бұрын
Thanks man :)
@wigglyhoney6711
@wigglyhoney6711 2 жыл бұрын
very helpful.
@namratadash123
@namratadash123 3 жыл бұрын
Hi, I am trying to install Mintpy. Can I try these?
@theyb7802
@theyb7802 3 жыл бұрын
I wish you've made this video couple of years ago) - would save me a lot of time if i'd stumble upon it earlier. But, at least now i know
@djuzla89
@djuzla89 3 жыл бұрын
Maybe he didn't know all those stuff back then :D
@Mahankalinikhil
@Mahankalinikhil Жыл бұрын
How can I do this in Windows Powershell instead of conda prompt?
@HappyAnimals3D
@HappyAnimals3D 3 жыл бұрын
Would there be any differences on Windows machine at Anaconda prompt? I guess you are on a Linux machine if I am not mistaken.
@jacksonlaboratory
@jacksonlaboratory 3 жыл бұрын
I was running everything using Windows Subsystem for Linux (WSL), which is essentially a Linux virtual machine inside Linux. Your Anaconda prompt should be able to do the exact same things! -- Erick
@sailfromsurigao
@sailfromsurigao 3 жыл бұрын
how to precompile a code from another computer to use in another computer
@maneeshd247
@maneeshd247 2 жыл бұрын
I am getting condaHTTPError while creating new environment. I tried lot of steps, but it is not resolving. Anyone can help me out with this.
@kayeceedangca5214
@kayeceedangca5214 3 жыл бұрын
hi can ask how to change the prefix of the given .yml file in anaconda?
@jacksonlaboratory
@jacksonlaboratory 3 жыл бұрын
You can manually edit the .yml file in your text editor of choice to change the prefix. Most of the time you can safely delete that whole line altogether, in fact! I didn’t get into details because I was trying to keep the video short, but the exported .yml file we generated could be improved in a few other ways, like using the “--no-builds” option to make them more general. - Erick
@Kunal4980
@Kunal4980 3 жыл бұрын
Other day I was trying to create environment for my azure DataBricks and eventually created as well but could not use it pycharm if possible please come up with a video showing the same . Thanks
@jacksonlaboratory
@jacksonlaboratory 3 жыл бұрын
PyCharm automates a lot of the environment creation, both from scratch and from an yml file. You can check their documentation at www.jetbrains.com/help/pycharm/conda-support-creating-conda-virtual-environment.html . If you already have conda environments, PyCharm should be able to see them on their “interpreter selector” option. -- Erick
@Kunal4980
@Kunal4980 3 жыл бұрын
@@jacksonlaboratory My issue is specific to using DataBricks from pycharm because DataBricks does not have line by line debug facility and I could not find any video related with this issue
@chaihanya
@chaihanya 2 жыл бұрын
when I use the command less test.yml, it says that less : The term 'less' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. can u help me out with this?
@roeslib10
@roeslib10 2 жыл бұрын
how did you solve it? I have the same problem.
@chaihanya
@chaihanya 2 жыл бұрын
@@roeslib10 i am still working on it.
@roeslib10
@roeslib10 2 жыл бұрын
@@chaihanya thank you for your answer
@adi6516
@adi6516 Жыл бұрын
it is a linux command and he is using a linux terminal in the video. hope this helps
@SaranyaS-yv3ud
@SaranyaS-yv3ud Жыл бұрын
I am getting Invalid archive error, and no such file or directory error, someone pls help
@maplebob23
@maplebob23 3 жыл бұрын
What's the first step here? How do you get to where you are in conda in the first place to be able to set the environment?
@jacksonlaboratory
@jacksonlaboratory 3 жыл бұрын
You will need to have Anaconda (or Miniconda) installed and start a prompt. The prompt you need will depend on your system - we briefly discuss different prompts and how to access them on the video. With a version of conda installed, your prompt should start at base environment already! - Erick
@techbays675
@techbays675 2 жыл бұрын
how to install conda new environment in Windows 10
@jacquelingonza9685
@jacquelingonza9685 2 жыл бұрын
Seems like a great tutorial but I am on mac...
@StevenLangOfficial
@StevenLangOfficial 9 ай бұрын
does not work in miniforge prompt
@JorgeHernandez-kj2ul
@JorgeHernandez-kj2ul 3 ай бұрын
Tengo que andar batallando así no te gusta jugar juegos a ti 3:49
@JorgeHernandez-kj2ul
@JorgeHernandez-kj2ul 3 ай бұрын
3:49
@JorgeHernandez-kj2ul
@JorgeHernandez-kj2ul 3 ай бұрын
Translator
@JorgeHernandez-kj2ul
@JorgeHernandez-kj2ul 3 ай бұрын
😮
@sabinoramirez2600
@sabinoramirez2600 2 жыл бұрын
this is great but hopefully two years later you guys have learned to clear the terminal before new commands
@JorgeHernandez-kj2ul
@JorgeHernandez-kj2ul 3 ай бұрын
2:4 contestar batallando así sabes que hace un mes y medio murió mi esposa
@lukeno4143
@lukeno4143 Жыл бұрын
Conda is so terrible. First they dont auto-add Windows paths, second you cant even choose conda interpreter as a virtual environment even if its listed as a global interpreter. the Conda developers are the worst. And never going to trust Conda for anything.
@vedprakash2056
@vedprakash2056 3 жыл бұрын
(base) ved@DESKTOP-EHGUM68:~$ less environment.yml environment.yml: No such file or directory I am getting this. please suggest the required correction
@qm142009
@qm142009 3 жыл бұрын
You don't have environment.yml file in your directory. You don't need that. Just proceed without that line.
@leirepapepv2411
@leirepapepv2411 3 жыл бұрын
The same thing happens to me and I can no longer continue
@aliozeir708
@aliozeir708 2 жыл бұрын
Thank you
The Complete Guide to Python Virtual Environments!
15:52
teclado
Рет қаралды 337 М.
What it feels like cleaning up after a toddler.
00:40
Daniel LaBelle
Рет қаралды 84 МЛН
World’s Largest Jello Pool
01:00
Mark Rober
Рет қаралды 93 МЛН
Fast and Furious: New Zealand 🚗
00:29
How Ridiculous
Рет қаралды 41 МЛН
Learn how to use Fiji to analyze biology images
15:11
The Jackson Laboratory
Рет қаралды 46 М.
What is Anaconda? | Travis Oliphant and Lex Fridman
4:25
Lex Clips
Рет қаралды 24 М.
Anaconda (Conda) for Python - What & Why?
26:10
Academind
Рет қаралды 224 М.
Pip, Easy_install, Conda | В Чём Разница? | Что Такое Wheel И Egg
8:29
PyLounge - программирование на Python и всё о IT
Рет қаралды 10 М.
Anaconda Environments - What you need to know.
6:43
Python Programmer
Рет қаралды 19 М.
How to Create and Use Virtual Environments in Python With Poetry
14:43
7 Essential Command Line Tools (2022)
9:12
Tech Craft
Рет қаралды 204 М.
Pydantic is all you need: Jason Liu
17:55
AI Engineer
Рет қаралды 172 М.
S24 Ultra and IPhone 14 Pro Max telephoto shooting comparison #shorts
0:15
Photographer Army
Рет қаралды 10 МЛН
Сколько реально стоит ПК Величайшего?
0:37
$1 vs $100,000 Slow Motion Camera!
0:44
Hafu Go
Рет қаралды 28 МЛН
Частая ошибка геймеров? 😐 Dareu A710X
1:00
Вэйми
Рет қаралды 2,7 МЛН