title
Anaconda (Conda) for Python - What & Why?

description
Virtual environments allow us to manage Python projects, packages and versions efficiently. In this video, I’ll guide you through the basics by example of Conda. 🖥️ Official Website & Courses https://academind.com/courses/ 👨‍💻 Full Python Course https://acad.link/python-blockchain 📝 Other Resources Download the Anaconda Distribution: https://www.anaconda.com/download/#macos What is Miniconda: https://conda.io/docs/glossary.html#miniconda Install Miniconda: https://conda.io/miniconda.html Conda Forge: https://conda-forge.org/#page-top 👋 Social Media https://twitter.com/maxedapps https://twitter.com/academind_real https://www.instagram.com/academind_real/ https://www.facebook.com/academindchannel/ 💬 Academind Community on Discord https://discord.gg/gxvEWGU ---------- Academind is your source for online education in the areas of web development, frontend web development, backend web development, programming, coding and data science! No matter if you are looking for a tutorial, a course, a crash course, an introduction, an online tutorial or any related video, we try our best to offer you the content you are looking for. Our topics include Angular, React, Vue, Html, CSS, JavaScript, TypeScript, Redux, Nuxt.js, RxJs, Bootstrap, Laravel, Node.js, Progressive Web Apps (PWA), Ionic, React Native, Regular Expressions (RegEx), Stencil, Power BI, Amazon Web Services (AWS), Firebase or other topics, make sure to have a look at this channel or at academind.com to find the learning resource of your choice!

detail
{'title': 'Anaconda (Conda) for Python - What & Why?', 'heatmap': [], 'summary': "Covers python virtual environments, package management, creating ai environment with miniconda, and managing environments and troubleshooting package installation, emphasizing the advantages of anaconda/miniconda for data analysis and science, and aims to increase viewer's comfort with python.", 'chapters': [{'end': 111.517, 'segs': [{'end': 45.325, 'src': 'embed', 'start': 20.571, 'weight': 2, 'content': [{'end': 27.737, 'text': 'you might have multiple project for multiple purposes and you have all these packages installed globally on your machine.', 'start': 20.571, 'duration': 7.166}, {'end': 30.84, 'text': 'now this can cause some problems or at least inconveniences.', 'start': 27.737, 'duration': 3.103}, {'end': 35.021, 'text': 'For that, we can use so-called virtual environments in Python.', 'start': 31.42, 'duration': 3.601}, {'end': 42.764, 'text': 'What these are, why we use them, how we use them and how we can specifically use them in connection with Conda.', 'start': 35.501, 'duration': 7.263}, {'end': 45.325, 'text': 'well, this is what we will have a look at in this video.', 'start': 42.764, 'duration': 2.561}], 'summary': 'Using virtual environments in python helps manage packages and avoid global installation issues, and their connection with conda is explored in this video.', 'duration': 24.754, 'max_score': 20.571, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/23aQdrS58e0/pics/23aQdrS58e020571.jpg'}, {'end': 111.517, 'src': 'embed', 'start': 66.284, 'weight': 0, 'content': [{'end': 71.786, 'text': 'The thing is that each of these purposes requires specific packages.', 'start': 66.284, 'duration': 5.502}, {'end': 74.707, 'text': 'For example, for web development, we might use Flask.', 'start': 72.086, 'duration': 2.621}, {'end': 77.789, 'text': 'For data analysis, we might use Matplotlib.', 'start': 75.427, 'duration': 2.362}, {'end': 79.631, 'text': 'We talked about that on this channel already.', 'start': 77.93, 'duration': 1.701}, {'end': 83.475, 'text': 'And for artificial intelligence, we can use something like PyTorch.', 'start': 80.152, 'duration': 3.323}, {'end': 88.481, 'text': 'Now, these packages are not related at all because they have different purposes.', 'start': 84.196, 'duration': 4.285}, {'end': 94.547, 'text': 'Why would I need Flask if I just want to create a big chart in a Jupyter notebook, for example?', 'start': 88.941, 'duration': 5.606}, {'end': 100.39, 'text': 'Additionally, you also might use different versions of Python itself, for example.', 'start': 95.708, 'duration': 4.682}, {'end': 106.554, 'text': 'You might use Python 3.5 for your web dev project and Python 3.7 for a data analysis project, just to name an example.', 'start': 100.551, 'duration': 6.003}, {'end': 111.517, 'text': 'So you have these different version topics and this different package topic in general.', 'start': 107.215, 'duration': 4.302}], 'summary': 'Different projects require specific packages and python versions for web, data analysis, and ai.', 'duration': 45.233, 'max_score': 66.284, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/23aQdrS58e0/pics/23aQdrS58e066284.jpg'}], 'start': 2.136, 'title': 'Python virtual environments and package management', 'summary': 'Discusses the need for virtual environments in python to manage different packages and versions for various projects. it emphasizes the specific packages and python versions required for different purposes such as web development, data analysis, and artificial intelligence.', 'chapters': [{'end': 111.517, 'start': 2.136, 'title': 'Python virtual environments and package management', 'summary': 'Discusses the need for virtual environments in python to manage different packages and versions for various projects, highlighting the inconvenience of having multiple projects with globally installed packages. it also emphasizes the specific packages and python versions required for different purposes such as web development, data analysis, and artificial intelligence.', 'duration': 109.381, 'highlights': ['The need for virtual environments in Python arises from the inconvenience of having multiple projects with globally installed packages, which can cause problems (or at least inconveniences).', "Python's versatility allows it to be used for various purposes such as web development, data analysis, artificial intelligence, and machine learning, each requiring specific packages like Flask, Matplotlib, and PyTorch.", 'Different projects may require different versions of Python, for instance, Python 3.5 for web development and Python 3.7 for data analysis, highlighting the need for managing different Python versions within virtual environments.']}], 'duration': 109.381, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/23aQdrS58e0/pics/23aQdrS58e02136.jpg', 'highlights': ['Different projects may require different versions of Python, for instance, Python 3.5 for web development and Python 3.7 for data analysis, highlighting the need for managing different Python versions within virtual environments.', "Python's versatility allows it to be used for various purposes such as web development, data analysis, artificial intelligence, and machine learning, each requiring specific packages like Flask, Matplotlib, and PyTorch.", 'The need for virtual environments in Python arises from the inconvenience of having multiple projects with globally installed packages, which can cause problems (or at least inconveniences).']}, {'end': 487.733, 'segs': [{'end': 157.238, 'src': 'embed', 'start': 134.647, 'weight': 3, 'content': [{'end': 145.09, 'text': 'the solution is that we basically have an unlimited amount of computers on our single computer by using so-called virtual environments and these environments.', 'start': 134.647, 'duration': 10.443}, {'end': 147.131, 'text': 'let us do exactly what you can see right here.', 'start': 145.09, 'duration': 2.041}, {'end': 152.615, 'text': 'we can create separate environments for each purpose of python,', 'start': 147.771, 'duration': 4.844}, {'end': 157.238, 'text': 'so we can create an environment for our webdev project and one for our data analysis project.', 'start': 152.615, 'duration': 4.623}], 'summary': 'Using virtual environments allows unlimited computers on single computer for different purposes.', 'duration': 22.591, 'max_score': 134.647, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/23aQdrS58e0/pics/23aQdrS58e0134647.jpg'}, {'end': 283.848, 'src': 'embed', 'start': 256.98, 'weight': 1, 'content': [{'end': 262.623, 'text': 'and Anaconda or Miniconda have the great advantage that they install Conda on your system.', 'start': 256.98, 'duration': 5.643}, {'end': 266.846, 'text': 'Now, what is Conda? Well, Conda is basically both.', 'start': 262.944, 'duration': 3.902}, {'end': 276.352, 'text': "It's a package manager and it allows you to also manage your virtual environments, so to create and manage these virtual environments on your machine.", 'start': 267.526, 'duration': 8.826}, {'end': 283.848, 'text': "Now, what's the usage of these two? When would I choose which approach? As I said, these are just two examples, though.", 'start': 277.338, 'duration': 6.51}], 'summary': 'Anaconda and miniconda install conda, a package manager for managing virtual environments.', 'duration': 26.868, 'max_score': 256.98, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/23aQdrS58e0/pics/23aQdrS58e0256980.jpg'}, {'end': 323.546, 'src': 'embed', 'start': 298.303, 'weight': 0, 'content': [{'end': 305.669, 'text': 'Well, Anaconda or Miniconda come with a lot of packages required for data analysis and data science,', 'start': 298.303, 'duration': 7.366}, {'end': 309.052, 'text': 'or at least these packages make working in these fields a lot easier.', 'start': 305.669, 'duration': 3.383}, {'end': 312.495, 'text': 'And they also make it easier for beginners to get started with Python.', 'start': 309.512, 'duration': 2.983}, {'end': 315.578, 'text': "That's why we will follow this Anaconda,", 'start': 313.055, 'duration': 2.523}, {'end': 323.546, 'text': 'Mini-Conda approach here and we want to have a look at how we can do the package management and the virtual environment management with Conda.', 'start': 315.578, 'duration': 7.968}], 'summary': 'Anaconda and miniconda simplify data analysis, making it easier for beginners to get started with python.', 'duration': 25.243, 'max_score': 298.303, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/23aQdrS58e0/pics/23aQdrS58e0298303.jpg'}], 'start': 112.258, 'title': 'Python virtual environments and package management', 'summary': "Explains the use of virtual environments in python for efficient project management, comparing python's package manager with virtual env and anaconda/miniconda, highlighting anaconda/miniconda's advantages for data analysis and science.", 'chapters': [{'end': 176.152, 'start': 112.258, 'title': 'Managing python environments for efficient development', 'summary': 'Introduces the concept of using virtual environments in python to efficiently manage and create separate environments for different projects, allowing for an unlimited amount of purpose-specific environments on a single computer.', 'duration': 63.894, 'highlights': ['By using virtual environments in Python, it is possible to create separate environments for different purposes, such as web development and data analysis, allowing for an unlimited amount of purpose-specific environments on a single computer.', 'The solution to the issue of having only one computer for different purposes is to use virtual environments, which enable the creation of separate environments for each project in Python, providing flexibility and efficiency for development.', 'Virtual environments allow for multiple environments to be created for each specific purpose, enabling efficient management of various projects in Python.']}, {'end': 487.733, 'start': 176.152, 'title': 'Python virtual environments and package management', 'summary': "Discusses the installation and usage of virtual environments in python, comparing the use of python's integrated package manager with virtual env and anaconda/miniconda, emphasizing the advantages of anaconda/miniconda for data analysis and data science.", 'duration': 311.581, 'highlights': ['Anaconda/Miniconda advantages for data analysis and data science Anaconda/Miniconda come with a lot of packages required for data analysis and data science, making working in these fields easier, and also facilitating beginners to get started with Python.', "Comparison of Python's integrated package manager with Virtual Env and Anaconda/Miniconda The chapter compares the usage of Python's integrated package manager, Virtual Env, and Anaconda/Miniconda for managing virtual environments in Python, highlighting the specific advantages of Anaconda/Miniconda for data analysis and data science.", 'Installation and usage of Virtual Env and Anaconda/Miniconda The chapter discusses the installation steps of Virtual Env and Anaconda/Miniconda, emphasizing the differences in package installation, environment management, and user interface, and the advantages of Miniconda for a more minimal installation and flexible package management.']}], 'duration': 375.475, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/23aQdrS58e0/pics/23aQdrS58e0112258.jpg', 'highlights': ['Anaconda/Miniconda advantages for data analysis and data science Anaconda/Miniconda come with a lot of packages required for data analysis and data science, making working in these fields easier, and also facilitating beginners to get started with Python.', "Comparison of Python's integrated package manager with Virtual Env and Anaconda/Miniconda The chapter compares the usage of Python's integrated package manager, Virtual Env, and Anaconda/Miniconda for managing virtual environments in Python, highlighting the specific advantages of Anaconda/Miniconda for data analysis and data science.", 'Installation and usage of Virtual Env and Anaconda/Miniconda The chapter discusses the installation steps of Virtual Env and Anaconda/Miniconda, emphasizing the differences in package installation, environment management, and user interface, and the advantages of Miniconda for a more minimal installation and flexible package management.', 'By using virtual environments in Python, it is possible to create separate environments for different purposes, such as web development and data analysis, allowing for an unlimited amount of purpose-specific environments on a single computer.', 'The solution to the issue of having only one computer for different purposes is to use virtual environments, which enable the creation of separate environments for each project in Python, providing flexibility and efficiency for development.', 'Virtual environments allow for multiple environments to be created for each specific purpose, enabling efficient management of various projects in Python.']}, {'end': 801.215, 'segs': [{'end': 597.53, 'src': 'embed', 'start': 533.424, 'weight': 0, 'content': [{'end': 538.946, 'text': 'Of course, this is this Miniconda folder right here, depending on the path you chose to install Miniconda.', 'start': 533.424, 'duration': 5.522}, {'end': 543.688, 'text': "I'm just pointing towards this because we'll have a look at this folder structure in a few seconds once again.", 'start': 539.306, 'duration': 4.382}, {'end': 547.975, 'text': 'So we have conda installed and we have all these packages here.', 'start': 544.809, 'duration': 3.166}, {'end': 550.581, 'text': 'But actually we want to work with environments.', 'start': 548.216, 'duration': 2.365}, {'end': 557.892, 'text': 'For that we can simply type conda env and now enter list once again.', 'start': 551.222, 'duration': 6.67}, {'end': 565.954, 'text': 'With conda list we had a list of the packages, with conda env list we get, guess what, a list of our environments that we have.', 'start': 558.533, 'duration': 7.421}, {'end': 571.556, 'text': 'At the moment, we only have the default environment, this base environment, right here,', 'start': 566.575, 'duration': 4.981}, {'end': 575.157, 'text': 'and we are currently working in this environment indicated right here.', 'start': 571.556, 'duration': 3.601}, {'end': 579.498, 'text': 'Now the thing is that this environment will be chosen by default.', 'start': 576.077, 'duration': 3.421}, {'end': 589.325, 'text': "Now let's say I want to keep this environment unchanged and now I want to create different environments to well install my different packages in there.", 'start': 580.6, 'duration': 8.725}, {'end': 594.368, 'text': "Before we do that, let's have a look at the theory once again, and then see how this works in practice.", 'start': 589.826, 'duration': 4.542}, {'end': 597.53, 'text': 'So at the moment, we basically achieved this right here.', 'start': 595.209, 'duration': 2.321}], 'summary': 'Using miniconda, we have installed conda and are now exploring environments and packages.', 'duration': 64.106, 'max_score': 533.424, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/23aQdrS58e0/pics/23aQdrS58e0533424.jpg'}, {'end': 690.624, 'src': 'embed', 'start': 660.437, 'weight': 4, 'content': [{'end': 664.238, 'text': "Because you don't have to remember all the commands.", 'start': 660.437, 'duration': 3.801}, {'end': 667.479, 'text': 'You can simply look into that sheet and see how this works.', 'start': 664.418, 'duration': 3.061}, {'end': 671.34, 'text': "If you're wondering how do I know these commands, well, that's basically the source for these.", 'start': 667.599, 'duration': 3.741}, {'end': 673.44, 'text': "So let's now create this new environment.", 'start': 671.76, 'duration': 1.68}, {'end': 675.901, 'text': 'For that, we enter conda, create.', 'start': 673.8, 'duration': 2.101}, {'end': 682.742, 'text': 'dash dash name, because we will have to give this environment a name and i will call it ai37,', 'start': 676.801, 'duration': 5.941}, {'end': 690.624, 'text': 'because this will be our ai environment and i want to use python 3.7 in this environment just for demonstration purposes.', 'start': 682.742, 'duration': 7.882}], 'summary': "Creating a new environment 'ai37' using conda with python 3.7 for demonstration.", 'duration': 30.187, 'max_score': 660.437, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/23aQdrS58e0/pics/23aQdrS58e0660437.jpg'}, {'end': 736.919, 'src': 'embed', 'start': 706.4, 'weight': 5, 'content': [{'end': 711.143, 'text': 'If you now hit yes and hit enter, it will take a few seconds to extract these packages.', 'start': 706.4, 'duration': 4.743}, {'end': 713.824, 'text': 'And here we are.', 'start': 713.164, 'duration': 0.66}, {'end': 715.866, 'text': 'We now created our new environment.', 'start': 714.025, 'duration': 1.841}, {'end': 719.507, 'text': 'You can also see how we can activate and deactivate this environment.', 'start': 716.286, 'duration': 3.221}, {'end': 723.129, 'text': "And before we do that, let's have a look at our environment list right now.", 'start': 720.128, 'duration': 3.001}, {'end': 728.412, 'text': "So we'd enter a conda, oops, not conda list, conda environment list, right? List would show us the packages.", 'start': 723.31, 'duration': 5.102}, {'end': 729.073, 'text': 'You remember that.', 'start': 728.532, 'duration': 0.541}, {'end': 736.919, 'text': 'So with the environment list, we can now see that we have still our base, our default environment and this new environment.', 'start': 729.913, 'duration': 7.006}], 'summary': 'Creating new environment with conda, showing package list and activation process.', 'duration': 30.519, 'max_score': 706.4, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/23aQdrS58e0/pics/23aQdrS58e0706400.jpg'}, {'end': 801.215, 'src': 'embed', 'start': 755.68, 'weight': 3, 'content': [{'end': 762.609, 'text': 'For that, we just saw it, we simply type source, activate, and now the name of this environment, in our case, AI37.', 'start': 755.68, 'duration': 6.929}, {'end': 764.652, 'text': "Let's hit enter.", 'start': 764.071, 'duration': 0.581}, {'end': 771.978, 'text': 'And as you can see now indicated here in the brackets, we are now working in this environment, in this new environment.', 'start': 765.192, 'duration': 6.786}, {'end': 779.946, 'text': 'So if we enter conda list right now, we can see that Python 3.7.1 was installed with the approach you just followed.', 'start': 772.399, 'duration': 7.547}, {'end': 784.35, 'text': 'So by entering Python equals Python 3.7, so the latest Python version was installed.', 'start': 779.966, 'duration': 4.384}, {'end': 787.792, 'text': 'And if we scroll up a little bit right here.', 'start': 784.87, 'duration': 2.922}, {'end': 792.133, 'text': 'so this is our default package list that we had when we installed miniconda.', 'start': 787.792, 'duration': 4.341}, {'end': 795.814, 'text': 'so the package list that is active in our default environment.', 'start': 792.133, 'duration': 3.681}, {'end': 801.215, 'text': 'we can see that here we activated or we use python 3.7.0.', 'start': 795.814, 'duration': 5.401}], 'summary': 'Activated environment ai37 with python 3.7.1 installed and set as default.', 'duration': 45.535, 'max_score': 755.68, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/23aQdrS58e0/pics/23aQdrS58e0755680.jpg'}], 'start': 487.733, 'title': 'Using miniconda and creating ai environment with conda', 'summary': "Introduces the use of miniconda in creating and managing environments, demonstrating the command 'conda env list' to display the default environment and the process of creating separate environments for specific packages. it also demonstrates creating a new ai environment using conda, specifying python 3.7, installing new packages, and activating the environment, with emphasis on utilizing a conda cheat sheet. the goal is to have two packages installed separately in three environments.", 'chapters': [{'end': 638.275, 'start': 487.733, 'title': 'Using miniconda for creating environments', 'summary': "Introduces the use of miniconda in creating and managing environments, demonstrating the command 'conda env list' to display the default environment and the process of creating separate environments for specific packages, with the goal of having two packages installed separately in three environments.", 'duration': 150.542, 'highlights': ['The chapter introduces the use of Miniconda in creating and managing environments. It highlights the main focus of the chapter.', "Demonstrates the command 'conda env list' to display the default environment. It provides a specific command used to display the default environment.", 'The process of creating separate environments for specific packages, with the goal of having two packages installed separately in three environments. It outlines the objective of creating separate environments for specific packages and the desired outcome of having two packages installed separately in three environments.']}, {'end': 801.215, 'start': 638.595, 'title': 'Creating ai environment with conda', 'summary': 'Demonstrates creating a new ai environment using conda, specifying python 3.7, installing new packages, and activating the environment, with emphasis on utilizing a conda cheat sheet.', 'duration': 162.62, 'highlights': ['Demonstrating creating a new AI environment using Conda The chapter walks through creating a new environment named ai37 and specifying Python 3.7 for demonstration purposes.', 'Utilizing a conda cheat sheet for commands reference The speaker emphasizes using a conda cheat sheet to look up commands and highlights its role in command reference.', 'Installing new packages in the new environment The process of installing new packages in the newly created environment is demonstrated, indicating the successful installation of new packages.', 'Activating the new AI environment The chapter demonstrates activating the new AI environment named AI37, and confirms the installation of Python 3.7.1 in the environment.', 'Viewing default package list and version The default package list of the base environment is shown, highlighting the activation and usage of Python 3.7.0 in the default environment.']}], 'duration': 313.482, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/23aQdrS58e0/pics/23aQdrS58e0487733.jpg', 'highlights': ['The chapter introduces the use of Miniconda in creating and managing environments. It highlights the main focus of the chapter.', "Demonstrates the command 'conda env list' to display the default environment. It provides a specific command used to display the default environment.", 'The process of creating separate environments for specific packages, with the goal of having two packages installed separately in three environments. It outlines the objective of creating separate environments for specific packages and the desired outcome of having two packages installed separately in three environments.', 'Demonstrating creating a new AI environment using Conda The chapter walks through creating a new environment named ai37 and specifying Python 3.7 for demonstration purposes.', 'Utilizing a conda cheat sheet for commands reference The speaker emphasizes using a conda cheat sheet to look up commands and highlights its role in command reference.', 'Installing new packages in the new environment The process of installing new packages in the newly created environment is demonstrated, indicating the successful installation of new packages.', 'Activating the new AI environment The chapter demonstrates activating the new AI environment named AI37, and confirms the installation of Python 3.7.1 in the environment.', 'Viewing default package list and version The default package list of the base environment is shown, highlighting the activation and usage of Python 3.7.0 in the default environment.']}, {'end': 1334.32, 'segs': [{'end': 880.754, 'src': 'embed', 'start': 843.783, 'weight': 2, 'content': [{'end': 848.646, 'text': 'So we can see we will install Python 3.5.6, so the latest Python 3.5 version here.', 'start': 843.783, 'duration': 4.863}, {'end': 849.567, 'text': "So let's proceed.", 'start': 848.886, 'duration': 0.681}, {'end': 853.609, 'text': 'And with that, we now created our second environment.', 'start': 850.747, 'duration': 2.862}, {'end': 858.032, 'text': 'So if we enter conda environment list once again here.', 'start': 853.649, 'duration': 4.383}, {'end': 863.427, 'text': 'we can see that we now already also have our DA35 environment right here.', 'start': 859.082, 'duration': 4.345}, {'end': 864.748, 'text': 'So this worked fine.', 'start': 863.967, 'duration': 0.781}, {'end': 867.952, 'text': 'With that, we are basically working in three different environments.', 'start': 864.868, 'duration': 3.084}, {'end': 880.754, 'text': 'And if we enter conda list, not conda list, and if we enter source, activate DA35 now and conda list,', 'start': 868.893, 'duration': 11.861}], 'summary': 'Installed python 3.5.6, created da35 environment, and working in three different environments.', 'duration': 36.971, 'max_score': 843.783, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/23aQdrS58e0/pics/23aQdrS58e0843783.jpg'}, {'end': 958.545, 'src': 'embed', 'start': 923.268, 'weight': 1, 'content': [{'end': 927.069, 'text': "This being aware thing will become important in a few seconds, but we'll see that.", 'start': 923.268, 'duration': 3.801}, {'end': 929.669, 'text': "So let's proceed right here.", 'start': 927.469, 'duration': 2.2}, {'end': 933.07, 'text': 'And with that, we install NumPy on our machine.', 'start': 930.209, 'duration': 2.861}, {'end': 935.75, 'text': 'And with that took a few seconds.', 'start': 934.13, 'duration': 1.62}, {'end': 939.691, 'text': 'We now installed NumPy in our DNA environment.', 'start': 936.09, 'duration': 3.601}, {'end': 948.918, 'text': 'So if we have a look at our packages list right here, you cannot see NumPy in here in our DNA environment.', 'start': 940.191, 'duration': 8.727}, {'end': 958.545, 'text': 'But if I would go to our AI environment, so activate AI 3.7, I think it was the name.', 'start': 949.278, 'duration': 9.267}], 'summary': 'Numpy installed in dna environment in few seconds', 'duration': 35.277, 'max_score': 923.268, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/23aQdrS58e0/pics/23aQdrS58e0923268.jpg'}, {'end': 1052.974, 'src': 'embed', 'start': 1029.309, 'weight': 4, 'content': [{'end': 1037.015, 'text': 'The package channel simply describes the path or the location where Conda looks for the packages that we want to install.', 'start': 1029.309, 'duration': 7.706}, {'end': 1044.528, 'text': 'So if you type Conda install package whatever, then conda has a certain path it can use to see if this package is available.', 'start': 1037.135, 'duration': 7.393}, {'end': 1052.974, 'text': 'now this looks something like that basically, by default, we use the default path that is available in conda and if we type something like conda,', 'start': 1044.528, 'duration': 8.446}], 'summary': 'Conda uses package channels to locate and install packages, with default path as default option.', 'duration': 23.665, 'max_score': 1029.309, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/23aQdrS58e0/pics/23aQdrS58e01029309.jpg'}, {'end': 1129.736, 'src': 'embed', 'start': 1101.54, 'weight': 0, 'content': [{'end': 1106.424, 'text': 'we know that, but now minus c, because we want to use a specific channel.', 'start': 1101.54, 'duration': 4.884}, {'end': 1113.649, 'text': 'then we can add the channel name, which would be pytorch in our example i will show you that in a few seconds and then the name of the package,', 'start': 1106.424, 'duration': 7.225}, {'end': 1114.73, 'text': 'which is also pytorch.', 'start': 1113.649, 'duration': 1.081}, {'end': 1121.292, 'text': 'so with that we can access this channel and install packages from this channel one time.', 'start': 1115.55, 'duration': 5.742}, {'end': 1123.633, 'text': 'so only after entering this command.', 'start': 1121.292, 'duration': 2.341}, {'end': 1125.254, 'text': "let's have a look at that approach.", 'start': 1123.633, 'duration': 1.621}, {'end': 1129.736, 'text': 'and before we do that, let me dive a bit deeper into these channels right here in the terminal.', 'start': 1125.254, 'duration': 4.482}], 'summary': "Using specific channel 'pytorch' to access and install packages one time.", 'duration': 28.196, 'max_score': 1101.54, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/23aQdrS58e0/pics/23aQdrS58e01101540.jpg'}, {'end': 1297.884, 'src': 'embed', 'start': 1268.315, 'weight': 3, 'content': [{'end': 1270.477, 'text': 'For that, we will switch our environment.', 'start': 1268.315, 'duration': 2.162}, {'end': 1272.379, 'text': 'We will now go to our..', 'start': 1270.857, 'duration': 1.522}, {'end': 1275.607, 'text': 'dna environment once again.', 'start': 1273.846, 'duration': 1.761}, {'end': 1281.472, 'text': 'so da35, i think it was it yes, and now we will go to condaforge.com.', 'start': 1275.607, 'duration': 5.865}, {'end': 1288.857, 'text': "condaforge is a different channel, a different page, you could say, also offering python packages, but it's a community-led collection,", 'start': 1281.472, 'duration': 7.385}, {'end': 1290.578, 'text': 'as you can see it right here.', 'start': 1288.857, 'duration': 1.721}, {'end': 1297.884, 'text': 'if we go to the packages page right here, then you can see conda forge specific packages,', 'start': 1290.578, 'duration': 7.306}], 'summary': 'Switch to condaforge.com for community-led python packages.', 'duration': 29.569, 'max_score': 1268.315, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/23aQdrS58e0/pics/23aQdrS58e01268315.jpg'}], 'start': 801.215, 'title': 'Managing environments and troubleshooting package installation', 'summary': 'Covers creating multiple environments, installing packages like python 3.5 and numpy in anaconda, and troubleshooting conda package installation by addressing issues and adding new channels for accessing and installing packages, including a demonstration of installing pytorch from a specific channel.', 'chapters': [{'end': 978.557, 'start': 801.215, 'title': 'Creating multiple environments and installing packages', 'summary': 'Outlines the process of creating multiple environments and installing packages such as python 3.5 and numpy in anaconda, demonstrating the installation and availability of these packages across different environments.', 'duration': 177.342, 'highlights': ["Creating multiple environments and installing Python 3.5 The process of creating a new environment named 'da' with Python 3.5 is described, indicating the successful installation and availability of the environment.", "Installing NumPy in the 'da' environment The installation of NumPy in the 'da' environment is detailed, highlighting the successful installation and availability of the package in the environment.", "Availability of NumPy in different environments The comparison of NumPy availability in different environments is demonstrated, indicating its availability in the 'da' environment but absence in the 'AI' environment."]}, {'end': 1334.32, 'start': 979.057, 'title': 'Troubleshooting conda package installation', 'summary': 'Explains how to troubleshoot conda package installation issues by adding and using different channels to access and install packages, including a demonstration of installing pytorch from a specific channel and adding a new channel to the default channel list.', 'duration': 355.263, 'highlights': ['By default, Conda uses a specific package channel to locate and install packages, but if a package is not found in the default channel, errors occur, and alternate channels need to be used to find and install the required packages.', "The solution to this is to add other channels to Conda using the 'conda install -c' command, allowing Conda to access and install packages from the specified channel.", "A demonstration of adding the PyTorch channel and installing the PyTorch package using the 'conda install -c pytorch' command is provided, showing how to access and install packages from a specific channel.", "Another option is to add a specific channel to the default channel list using the 'conda config --add channels' command, enabling Conda to use different channels by default to locate and install specific packages.", 'The process of switching environments and accessing a different channel, conda-forge, is explained, demonstrating how to install packages from a community-led collection of Python packages available on the conda-forge channel.']}], 'duration': 533.105, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/23aQdrS58e0/pics/23aQdrS58e0801215.jpg', 'highlights': ['Demonstration of installing pytorch from a specific channel', "Installing NumPy in the 'da' environment", "Creating a new environment named 'da' with Python 3.5", 'The process of switching environments and accessing a different channel, conda-forge, is explained', 'By default, Conda uses a specific package channel to locate and install packages']}, {'end': 1567.383, 'segs': [{'end': 1362.812, 'src': 'embed', 'start': 1334.841, 'weight': 1, 'content': [{'end': 1339.604, 'text': 'As this package is not part of the default channel, conda has no idea where to get this package from.', 'start': 1334.841, 'duration': 4.763}, {'end': 1341.145, 'text': "It simply can't find this package.", 'start': 1339.744, 'duration': 1.401}, {'end': 1346.509, 'text': 'Now, we can add this channel to our channel list, as I said.', 'start': 1342.006, 'duration': 4.503}, {'end': 1351.693, 'text': 'For that, we simply type conda config, like that.', 'start': 1346.809, 'duration': 4.884}, {'end': 1357.157, 'text': 'Now, dash dash add channels, and now the channel name.', 'start': 1352.233, 'duration': 4.924}, {'end': 1359.719, 'text': 'In our case, this is conda forge.', 'start': 1357.917, 'duration': 1.802}, {'end': 1362.812, 'text': "If I'd enter now, this channel will be added.", 'start': 1360.931, 'duration': 1.881}], 'summary': 'Conda cannot find package, add conda forge channel to resolve.', 'duration': 27.971, 'max_score': 1334.841, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/23aQdrS58e0/pics/23aQdrS58e01334841.jpg'}, {'end': 1427.51, 'src': 'embed', 'start': 1388.263, 'weight': 2, 'content': [{'end': 1395.325, 'text': "I'm able to check all the channels we have and with that install the packages, if they are available, in one of these channels.", 'start': 1388.263, 'duration': 7.062}, {'end': 1396.965, 'text': 'Still might take a few seconds though.', 'start': 1395.725, 'duration': 1.24}, {'end': 1399.626, 'text': 'And as you can see, this is working.', 'start': 1398.246, 'duration': 1.38}, {'end': 1402.767, 'text': "So let's proceed and let's install this package now.", 'start': 1399.886, 'duration': 2.881}, {'end': 1410.06, 'text': 'Not the smallest package, as you can see right here, at least the installation takes a few seconds, but well, it is what it is, I guess.', 'start': 1404.536, 'duration': 5.524}, {'end': 1413.602, 'text': 'So this really took a while, but now we installed it.', 'start': 1411.32, 'duration': 2.282}, {'end': 1418.565, 'text': 'So if we type conda list right here, then we have the list of our packages that we installed.', 'start': 1413.982, 'duration': 4.583}, {'end': 1425.909, 'text': 'And right here in the last column, you can also see that Python gives us back the channel where this package was retrieved from.', 'start': 1418.745, 'duration': 7.164}, {'end': 1427.51, 'text': 'Always an interesting information.', 'start': 1426.349, 'duration': 1.161}], 'summary': 'Able to check all channels, install packages, and retrieve package info from channels.', 'duration': 39.247, 'max_score': 1388.263, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/23aQdrS58e0/pics/23aQdrS58e01388263.jpg'}, {'end': 1519.576, 'src': 'embed', 'start': 1482.773, 'weight': 0, 'content': [{'end': 1484.913, 'text': 'They are added to conda in general.', 'start': 1482.773, 'duration': 2.14}, {'end': 1488.114, 'text': "That's why we can access these channels from all our environments.", 'start': 1485.193, 'duration': 2.921}, {'end': 1495.057, 'text': 'And one final interesting thing about these channels, there is more to say about that, of course, but I want to stick to the basics, of course.', 'start': 1488.554, 'duration': 6.503}, {'end': 1507.565, 'text': 'If we enter conda config, dash, dash, get channels like that then you can also see that we have different priorities right here.', 'start': 1495.677, 'duration': 11.888}, {'end': 1514.151, 'text': 'this simply means that conda will first have a look at the conda forge channel and after that look at the default channel.', 'start': 1507.565, 'duration': 6.586}, {'end': 1519.576, 'text': 'this also can be important if you have different versions of certain packages available in both channels,', 'start': 1514.151, 'duration': 5.425}], 'summary': 'Conda channels allow access from all environments, with different priorities and package versions.', 'duration': 36.803, 'max_score': 1482.773, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/23aQdrS58e0/pics/23aQdrS58e01482773.jpg'}, {'end': 1567.383, 'src': 'embed', 'start': 1541.704, 'weight': 5, 'content': [{'end': 1544.325, 'text': 'i think we covered a lot of ground right here.', 'start': 1541.704, 'duration': 2.621}, {'end': 1547.386, 'text': 'we had a look at virtual environments in general.', 'start': 1544.325, 'duration': 3.061}, {'end': 1552.33, 'text': 'We saw how we can use conda as part of the mini conda distribution.', 'start': 1547.586, 'duration': 4.744}, {'end': 1556.434, 'text': 'We also had a look at installing packages in these different environments.', 'start': 1552.871, 'duration': 3.563}, {'end': 1559.136, 'text': 'And we also covered the basics of channels.', 'start': 1556.894, 'duration': 2.242}, {'end': 1564.14, 'text': 'And with that, I hope that you got a bit more comfortable with the world of Python in here.', 'start': 1559.757, 'duration': 4.383}, {'end': 1566.722, 'text': 'And I hope to see you in one of the next videos.', 'start': 1564.761, 'duration': 1.961}, {'end': 1567.383, 'text': 'Bye.', 'start': 1567.183, 'duration': 0.2}], 'summary': 'Covered virtual environments, conda in mini conda, package installation, and basics of channels in python.', 'duration': 25.679, 'max_score': 1541.704, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/23aQdrS58e0/pics/23aQdrS58e01541704.jpg'}], 'start': 1334.841, 'title': 'Conda forge channel and package installation', 'summary': "Explains adding conda forge channel, enabling installation of packages from both channels, and demonstrates successful installation. it also covers installing packages using conda, retrieval of packages from specific channels, impact of channel deactivation, priority system for package installation, basics of virtual environments, and aims to increase viewer's comfort with python.", 'chapters': [{'end': 1410.06, 'start': 1334.841, 'title': 'Adding conda forge channel', 'summary': 'Explains how to add the conda forge channel to the default channel list, enabling the installation of packages from both channels and demonstrating the successful installation process.', 'duration': 75.219, 'highlights': ['By adding the Conda Forge channel to the default channel list, users can install packages from both channels, increasing the availability of packages for installation.', "The command 'conda config --add channels conda-forge' adds the Conda Forge channel to the channel list, expanding the package options for installation.", 'Demonstrating the successful installation process, the chapter shows the installation of a package, highlighting the ability to check all available channels and install packages from them.']}, {'end': 1567.383, 'start': 1411.32, 'title': 'Using conda channels for package installation', 'summary': "Demonstrates the process of installing packages using conda, including the retrieval of packages from specific channels, the impact of channel deactivation on environments, and the priority system for package installation. it also covers the basics of virtual environments and aims to increase the viewer's comfort with python.", 'duration': 156.063, 'highlights': ["The chapter explains the process of installing packages using Conda, showcasing the retrieval of packages from specific channels and the information provided by Python regarding the package's source channel.", 'It demonstrates the impact of channel deactivation on environments, emphasizing that channels added to Conda are accessible from all environments.', 'The video covers the basics of virtual environments and the utilization of Conda as part of the mini Conda distribution, providing a comprehensive understanding of package installation and the fundamentals of channels.', 'It also explains the priority system for package installation, highlighting that Conda first checks the higher priority channel for package versions, ensuring the installation of the package from the higher priority channel.']}], 'duration': 232.542, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/23aQdrS58e0/pics/23aQdrS58e01334841.jpg', 'highlights': ['By adding the Conda Forge channel, users can install packages from both channels, increasing availability.', "The command 'conda config --add channels conda-forge' expands package options for installation.", 'The chapter demonstrates successful installation, highlighting the ability to check all available channels and install packages from them.', 'The chapter explains the process of installing packages using Conda, showcasing retrieval of packages from specific channels.', 'It demonstrates the impact of channel deactivation on environments, emphasizing that channels added to Conda are accessible from all environments.', 'The video covers the basics of virtual environments and the utilization of Conda as part of the mini Conda distribution.', 'It explains the priority system for package installation, highlighting that Conda first checks the higher priority channel for package versions.']}], 'highlights': ['Different projects may require different versions of Python, highlighting the need for managing different Python versions within virtual environments.', "Python's versatility allows it to be used for various purposes such as web development, data analysis, artificial intelligence, and machine learning, each requiring specific packages like Flask, Matplotlib, and PyTorch.", 'The need for virtual environments in Python arises from the inconvenience of having multiple projects with globally installed packages, which can cause problems (or at least inconveniences).', 'Anaconda/Miniconda advantages for data analysis and data science Anaconda/Miniconda come with a lot of packages required for data analysis and data science, making working in these fields easier, and also facilitating beginners to get started with Python.', "Comparison of Python's integrated package manager with Virtual Env and Anaconda/Miniconda The chapter compares the usage of Python's integrated package manager, Virtual Env, and Anaconda/Miniconda for managing virtual environments in Python, highlighting the specific advantages of Anaconda/Miniconda for data analysis and data science.", 'By using virtual environments in Python, it is possible to create separate environments for different purposes, such as web development and data analysis, allowing for an unlimited amount of purpose-specific environments on a single computer.', 'The solution to the issue of having only one computer for different purposes is to use virtual environments, which enable the creation of separate environments for each project in Python, providing flexibility and efficiency for development.', 'Virtual environments allow for multiple environments to be created for each specific purpose, enabling efficient management of various projects in Python.', 'The chapter introduces the use of Miniconda in creating and managing environments. It highlights the main focus of the chapter.', "Demonstrates the command 'conda env list' to display the default environment. It provides a specific command used to display the default environment.", 'The process of creating separate environments for specific packages, with the goal of having two packages installed separately in three environments. It outlines the objective of creating separate environments for specific packages and the desired outcome of having two packages installed separately in three environments.', 'Demonstrating creating a new AI environment using Conda The chapter walks through creating a new environment named ai37 and specifying Python 3.7 for demonstration purposes.', 'Utilizing a conda cheat sheet for commands reference The speaker emphasizes using a conda cheat sheet to look up commands and highlights its role in command reference.', 'Installing new packages in the new environment The process of installing new packages in the newly created environment is demonstrated, indicating the successful installation of new packages.', 'Activating the new AI environment The chapter demonstrates activating the new AI environment named AI37, and confirms the installation of Python 3.7.1 in the environment.', 'Viewing default package list and version The default package list of the base environment is shown, highlighting the activation and usage of Python 3.7.0 in the default environment.', 'Demonstration of installing pytorch from a specific channel', "Installing NumPy in the 'da' environment", "Creating a new environment named 'da' with Python 3.5", 'The process of switching environments and accessing a different channel, conda-forge, is explained', 'By default, Conda uses a specific package channel to locate and install packages', 'By adding the Conda Forge channel, users can install packages from both channels, increasing availability.', "The command 'conda config --add channels conda-forge' expands package options for installation.", 'The chapter demonstrates successful installation, highlighting the ability to check all available channels and install packages from them.', 'The chapter explains the process of installing packages using Conda, showcasing retrieval of packages from specific channels.', 'It demonstrates the impact of channel deactivation on environments, emphasizing that channels added to Conda are accessible from all environments.', 'The video covers the basics of virtual environments and the utilization of Conda as part of the mini Conda distribution.', 'It explains the priority system for package installation, highlighting that Conda first checks the higher priority channel for package versions.']}