Master the basics of Conda environments in Python
HTML-код
- Опубликовано: 13 июл 2020
- 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.
Наука
BEST tutorial ever. I had a hard time figuring out how to work with conda until watching this video. Thank you so much.
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!
Thanks for the video. Now my confusion on conda virtual environments is cleared.
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.
Perfectly explained¡ I really apreciate it so much¡
Thank you so much, great tutorial
Your explaination over the topic is very clear. Thanks for the video and your hardwork. Appreciated😃😀
When creating a new environment do all packages from base carry over? Or is it a blank env. Alternatively should I clone the base env and then add all needed packages?
Great explanations. Enticing to use Anaconda more.
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?
Great video. Thank you.
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.
Hi may I ask what is less? You used it to view the environment.yml file
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?
Thank you
Thanks! I am new to Python environments and this tutorial helped me create one based on a Git repo I forked.
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.
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..
Very helpful and simple.
what would be the difference between packages under dependencies and packages under pip?
thanks alotttt love
very helpful.
How did you get out after the less environment.yml command? I can't go back.
Thanks man :)
How do I code after setting things up. I have every library I need but no way to code using those libraries
Hi, I am trying to install Mintpy. Can I try these?
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
Maybe he didn't know all those stuff back then :D
how to precompile a code from another computer to use in another computer
How can I do this in Windows Powershell instead of conda prompt?
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.
Would there be any differences on Windows machine at Anaconda prompt? I guess you are on a Linux machine if I am not mistaken.
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
I am getting Invalid archive error, and no such file or directory error, someone pls help
how to install conda new environment in Windows 10
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
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
@@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
hi can ask how to change the prefix of the given .yml file in anaconda?
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
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?
how did you solve it? I have the same problem.
@@roeslib10 i am still working on it.
@@chaihanya thank you for your answer
it is a linux command and he is using a linux terminal in the video.
hope this helps
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?
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
Seems like a great tutorial but I am on mac...
does not work in miniforge prompt
Tengo que andar batallando así no te gusta jugar juegos a ti 3:49
3:49
Translator
😮
2:4 contestar batallando así sabes que hace un mes y medio murió mi esposa
this is great but hopefully two years later you guys have learned to clear the terminal before new commands
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.
(base) ved@DESKTOP-EHGUM68:~$ less environment.yml
environment.yml: No such file or directory
I am getting this. please suggest the required correction
You don't have environment.yml file in your directory. You don't need that. Just proceed without that line.
The same thing happens to me and I can no longer continue
Thank you