<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Anaconda Environment Archives - relataly.com</title>
	<atom:link href="https://www.relataly.com/category/tech/datascienceenvironments/anaconda-environment/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.relataly.com/category/tech/datascienceenvironments/anaconda-environment/</link>
	<description>The Business AI Blog</description>
	<lastBuildDate>Sun, 26 Feb 2023 21:55:49 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://www.relataly.com/wp-content/uploads/2023/04/cropped-AI-cat-Icon-White.png</url>
	<title>Anaconda Environment Archives - relataly.com</title>
	<link>https://www.relataly.com/category/tech/datascienceenvironments/anaconda-environment/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">175977316</site>	<item>
		<title>Getting Started with the Anaconda Python Environment for Machine Learning</title>
		<link>https://www.relataly.com/anaconda-python-environment-machine-learning/1663/</link>
					<comments>https://www.relataly.com/anaconda-python-environment-machine-learning/1663/#comments</comments>
		
		<dc:creator><![CDATA[Florian Follonier]]></dc:creator>
		<pubDate>Fri, 14 Feb 2020 14:05:24 +0000</pubDate>
				<category><![CDATA[Anaconda Environment]]></category>
		<category><![CDATA[Data Science]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Beginner Tutorials]]></category>
		<guid isPermaLink="false">https://www.relataly.com/?p=1663</guid>

					<description><![CDATA[<p>Anaconda is a popular open-source Python environment specifically designed for data science and machine learning. It comes with a range of useful features and tools, including Jupyter Notebooks, pre-installed packages, and a powerful package manager. It is the most widely used Python environment among data scientists and machine learning practitioners. In this article, we will ... <a title="Getting Started with the Anaconda Python Environment for Machine Learning" class="read-more" href="https://www.relataly.com/anaconda-python-environment-machine-learning/1663/" aria-label="Read more about Getting Started with the Anaconda Python Environment for Machine Learning">Read more</a></p>
<p>The post <a href="https://www.relataly.com/anaconda-python-environment-machine-learning/1663/">Getting Started with the Anaconda Python Environment for Machine Learning</a> appeared first on <a href="https://www.relataly.com">relataly.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-8f761849 wp-block-columns-is-layout-flex">
<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow" style="flex-basis:66.66%">
<p class="wp-block-paragraph">Anaconda is a popular open-source Python environment specifically designed for data science and machine learning. It comes with a range of useful features and tools, including Jupyter Notebooks, pre-installed packages, and a powerful package manager. It is the most widely used Python environment among data scientists and machine learning practitioners.</p>



<p class="wp-block-paragraph">In this article, we will introduce some of the key features of Anaconda and show you how to set up the Anaconda Python environment for machine learning in Microsoft Windows. We will also cover some essential commands, such as managing virtual environments and installing packages, which will help you get started with your machine learning projects. Whether you are new to machine learning or an experienced practitioner, Anaconda is a valuable tool that can help you streamline your workflow and accelerate your progress. So, it is essential to learn how to use it effectively.</p>
</div>



<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow" style="flex-basis:33.33%">
<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="447" height="223" data-attachment-id="12453" data-permalink="https://www.relataly.com/anaconda-python-environment-machine-learning/1663/anaconda_logo/#main" data-orig-file="https://www.relataly.com/wp-content/uploads/2023/02/Anaconda_Logo.png" data-orig-size="447,223" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Anaconda_Logo" data-image-description="" data-image-caption="" data-large-file="https://www.relataly.com/wp-content/uploads/2023/02/Anaconda_Logo.png" src="https://www.relataly.com/wp-content/uploads/2023/02/Anaconda_Logo.png" alt="Setting up the Anaconda Python environment for data science and machine learning" class="wp-image-12453" srcset="https://www.relataly.com/wp-content/uploads/2023/02/Anaconda_Logo.png 447w, https://www.relataly.com/wp-content/uploads/2023/02/Anaconda_Logo.png 300w" sizes="(max-width: 447px) 100vw, 447px" /><figcaption class="wp-element-caption">Setting up the Anaconda Python environment for data science and machine learning</figcaption></figure>
</div>
</div>



<h2 class="wp-block-heading">What is the Anaconda Distribution Platform?</h2>



<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-8f761849 wp-block-columns-is-layout-flex">
<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow" style="flex-basis:66.66%">
<p class="wp-block-paragraph">For various reasons, Anaconda has become the most popular Python environment for machine learning. First of all, Anaconda includes a Python distribution, so there is no need for a separate Python installation. In addition, Anaconda has an integrated package manager that provides access to several tools and frameworks used in data science and software engineering, including Spyder, RStudio, Visual Studio Code, and Jupyter Notebooks. Below is a brief description of these tools:</p>



<ul class="wp-block-list">
<li><a href="https://jupyter.org/" target="_blank" rel="noreferrer noopener">Jupyter Notebook</a>s: They are open-source web applications that support creating and sharing code, equations, visualizations, and narrative text.</li>



<li><a href="https://www.jetbrains.com/de-de/pycharm/" target="_blank" rel="noreferrer noopener">Pycharm</a>: A fully integrated python programming environment for professional purposes</li>



<li><a href="https://github.com/jupyter/qtconsole/blob/54495ba073cda2802e410497f99a18c61ab4a599/docs/source/index.rst" target="_blank" rel="noreferrer noopener">Qt Console:</a> A light-weight terminal application for visualization</li>



<li><a href="https://www.spyder-ide.org/" target="_blank" rel="noreferrer noopener">Spyder:</a> Apython environment specifically designed for scientific purposes</li>



<li><a href="https://www.rstudio.com/" target="_blank" rel="noreferrer noopener">RStudio:</a> An environment for the programming language R</li>



<li><a href="https://code.visualstudio.com/" target="_blank" rel="noreferrer noopener">Visual Studio (VS) Code:</a> An IDE for professional purposes by Microsoft</li>



<li><a href="https://orangedatamining.com/download/#windows" target="_blank" rel="noreferrer noopener">Orange</a>: A python environment for data mining and visualization</li>



<li><a href="https://glueviz.org/" target="_blank" rel="noreferrer noopener">Glueviz</a>: An open-source Python library for exploring data relationships</li>
</ul>



<p class="wp-block-paragraph">Many essential libraries related to data science are already preinstalled, including NumPy, Pandas, matplotlib, etc. Furthermore, Anaconda comes with a desktop GUI called Anaconda Navigator (see below), making it easy to launch applications and manage packages and environments without using command-line commands. </p>
</div>



<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow" style="flex-basis:33.33%"></div>
</div>



<h2 class="wp-block-heading">About Jupyter Notebooks</h2>



<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-8f761849 wp-block-columns-is-layout-flex">
<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow" style="flex-basis:66.66%">
<p class="wp-block-paragraph">Most data scientists who use Anaconda also work with <a href="https://jupyter.org/" target="_blank" rel="noreferrer noopener">Jupyter</a> notebooks. Jupyter notebooks are often used in the field of data science because they provide a convenient and interactive way to work with data, and they make it easy to share your work with others. They are also widely used in education, allowing you to create interactive lectures and exercises.</p>



<p class="wp-block-paragraph">Jupyter notebooks are interactive documents that contain a mix of code, text, and other media, such as images, equations, and charts. They are commonly used for data exploration, visualization, and machine learning tasks. Jupyter notebooks support more than 40 programming languages, including R and Python, and can run in different environments, thus making them very flexible. Furthermore, they are web-based and easy to set up. They also make it easy to version your code and share it with others.</p>



<p class="wp-block-paragraph">Jupyter notebooks are composed of cells, which can contain either code or text (using the Markdown formatting language). The code in a cell can be executed by pressing Shift+Enter, and the output of the code will be displayed below the cell. This allows you to develop and test your code iteratively, and to document your work by including explanations and visualizations alongside the code.</p>



<p class="wp-block-paragraph">Anaconda includes Jupyter as part of the installation. Once you have Anaconda installed, you can launch Jupyter by running the Jupyter lab or Jupiter notebook command in the terminal. This will open the Jupyter web interface in your web browser, from which you can create and open notebooks.</p>
</div>



<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow" style="flex-basis:33.33%">
<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="652" data-attachment-id="11643" data-permalink="https://www.relataly.com/anaconda-python-environment-machine-learning/1663/jupyter-notebook-screenshot/#main" data-orig-file="https://www.relataly.com/wp-content/uploads/2022/12/jupyter-notebook-screenshot.png" data-orig-size="2955,1882" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="jupyter-notebook-screenshot" data-image-description="" data-image-caption="" data-large-file="https://www.relataly.com/wp-content/uploads/2022/12/jupyter-notebook-screenshot.png" src="https://www.relataly.com/wp-content/uploads/2022/12/jupyter-notebook-screenshot-1024x652.png" alt="Jupyter notebooks are interactive documents that allow you to mix code, text, and media in a single document, making them a powerful tool for data exploration, visualization, and analysis." class="wp-image-11643" srcset="https://www.relataly.com/wp-content/uploads/2022/12/jupyter-notebook-screenshot.png 1024w, https://www.relataly.com/wp-content/uploads/2022/12/jupyter-notebook-screenshot.png 300w, https://www.relataly.com/wp-content/uploads/2022/12/jupyter-notebook-screenshot.png 768w, https://www.relataly.com/wp-content/uploads/2022/12/jupyter-notebook-screenshot.png 1536w, https://www.relataly.com/wp-content/uploads/2022/12/jupyter-notebook-screenshot.png 2048w, https://www.relataly.com/wp-content/uploads/2022/12/jupyter-notebook-screenshot.png 2475w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption class="wp-element-caption">Jupyter notebooks are interactive documents that allow you to mix code, text, and media in a single document, making them a powerful tool for data exploration, visualization, and analysis.</figcaption></figure>
</div>
</div>



<p class="wp-block-paragraph"></p>



<h2 class="wp-block-heading" id="h-setup-the-anaconda-python-environment-for-machine-learning">Setup the Anaconda Python Environment for Machine Learning</h2>



<p class="wp-block-paragraph">We will set up Anaconda to work with Python and Jupyter notebooks in the following. </p>



<ol class="wp-block-list">
<li>Download Anaconda</li>



<li>Install Anaconda </li>



<li>Starting Anaconda</li>



<li>Create and manage environments</li>



<li>Install additional packages as needed</li>
</ol>



<p class="wp-block-paragraph">Each of the steps will be discussed in more detail in the following. Let&#8217;s get things started! </p>



<h3 class="wp-block-heading" id="h-step-1-choose-and-download-the-right-anaconda-version">Step #1 Choose and Download the Right Anaconda Version</h3>



<p class="wp-block-paragraph">First, download the latest version of the Anaconda individual edition from the <a href="https://www.anaconda.com/products/individual">Anaconda website</a>. The Anaconda full version comes with all packages preinstalled. If disk space is an issue, you can also use Miniconda, a complete Anaconda environment but without the preinstalled packages. </p>



<p class="wp-block-paragraph">You will need to select the version of Anaconda that is appropriate for your operating system. The Anaconda download page will choose between Anaconda for Python 2.x and 3.x. Today, most machine learning libraries support Python 3. However, it wasn&#8217;t long ago when many people debated whether version 2 or 3 was the better Python version. Many people will agree that Python 3 has won this battle and is the preferred choice among the data science community. </p>



<p class="wp-block-paragraph">When writing this article, the latest version of the Anaconda individual edition is 4.3.1. After the download, you can launch the Anaconda installer, which guides you through the installation process.</p>



<h3 class="wp-block-heading" id="h-step-2-install-the-anaconda-python-environment">Step #2 Install the Anaconda Python Environment</h3>



<p class="wp-block-paragraph">You can choose whether to add Anaconda to your PATH environment variable during the installation. You can leave this option unchecked. Also, the installation asks you to register Anaconda as the default Python environment, which I recommend because it enables other tools to access the Anaconda Python distributions.</p>



<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-8f761849 wp-block-columns-is-layout-flex">
<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow">
<figure class="wp-block-image is-resized"><img decoding="async" src="https://docs.anaconda.com/_images/win-install-options.png" alt="Install Screen During Anaconda Setup" width="482" height="373"/><figcaption class="wp-element-caption">Advanced Installation Options of Anaconda</figcaption></figure>
</div>



<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow">
<figure class="wp-block-image is-resized"><img decoding="async" src="https://docs.anaconda.com/_images/win-install-complete.png" alt="Install Screen During Anaconda Setup" width="478" height="371"/><figcaption class="wp-element-caption">Anaconda Installation Completed</figcaption></figure>
</div>
</div>



<h3 class="wp-block-heading" id="h-step-3-starting-the-anaconda-python-environment">Step #3 Starting the Anaconda Python Environment</h3>



<p class="wp-block-paragraph">Once the installation process is complete, you can launch the Anaconda Navigator, which provides access to all the tools and CLIs you will be working on within your data science projects. </p>



<figure class="wp-block-image size-large is-resized"><img decoding="async" data-attachment-id="1668" data-permalink="https://www.relataly.com/anaconda-python-environment-machine-learning/1663/image-14-2/#main" data-orig-file="https://www.relataly.com/wp-content/uploads/2020/05/image-14.png" data-orig-size="1939,1012" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="image-14" data-image-description="" data-image-caption="" data-large-file="https://www.relataly.com/wp-content/uploads/2020/05/image-14.png" src="https://www.relataly.com/wp-content/uploads/2020/05/image-14-1024x534.png" alt="Anaconda Navigator" class="wp-image-1668" width="512" height="267" srcset="https://www.relataly.com/wp-content/uploads/2020/05/image-14.png 1024w, https://www.relataly.com/wp-content/uploads/2020/05/image-14.png 300w, https://www.relataly.com/wp-content/uploads/2020/05/image-14.png 768w, https://www.relataly.com/wp-content/uploads/2020/05/image-14.png 1536w, https://www.relataly.com/wp-content/uploads/2020/05/image-14.png 1939w" sizes="(max-width: 512px) 100vw, 512px" /><figcaption class="wp-element-caption">Anaconda Navigator of the Anaconda Distribution Platform</figcaption></figure>



<p class="wp-block-paragraph">Anaconda comes with several Python packages preinstalled. The <a href="https://docs.anaconda.com/anaconda/packages/pkg-docs/" target="_blank" rel="noreferrer noopener">Anaconda website</a> provides an overview of these packages. To display a list of the packages in your Anaconda python environment, use the CMD command: </p>



<pre class="wp-block-preformatted">pip list</pre>



<p class="wp-block-paragraph">Before starting with your machine learning projects, you should ensure that you have the essential packages installed. Anaconda installation includes many packages, but some of the commonly used packages in machine learning still require a manual installation. In the relataly articles, we will be working with the following non-preinstalled packages:  </p>



<ul class="wp-block-list">
<li><a href="https://geopandas.org/" target="_blank" rel="noreferrer noopener">Geopandas</a>: GeoPandas is an open-source project to make working with geospatial data in Python easier.</li>



<li><a href="https://keras.io/getting_started/intro_to_keras_for_engineers/" target="_blank" rel="noreferrer noopener">Tensorflow (Keras):</a> Deep learning library used for neural networks.</li>



<li><a href="https://seaborn.pydata.org/" target="_blank" rel="noreferrer noopener">Seaborn</a>: A package for creating nice visualizations with lots of customization options.</li>



<li><a href="https://scikit-learn.org/stable/install.html">Scikit-learn</a>: Different tools and algorithms for predictive data analysis.</li>
</ul>



<p class="wp-block-paragraph">You can add these packages to your Anaconda environment by running the following conda install commands from the CMD prompt:</p>



<div class="wp-block-codemirror-blocks-code-block code-block"><pre class="CodeMirror" data-setting="{&quot;showPanel&quot;:false,&quot;languageLabel&quot;:false,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;null&quot;,&quot;mime&quot;:&quot;text/plain&quot;,&quot;theme&quot;:&quot;3024-day&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Plain Text&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;text&quot;}"># Tensorflow
conda install tensorflow
# or: pip install Tensorflow

# Scikitlearn
pip install sklearn

# GeoPandas
conda install geopandas
# or:pip install geopandas

# Pandas Data_Reader
conda install pandas-datareader
# or:pip install pandas-datareader

# Keras
pip install keras</pre></div>



<p class="wp-block-paragraph">With the conda install package command, you can access a cloud-based repository to find and install over 7,500 data science and machine learning packages. To download additional packages from the conda repository, use the command: &#8220;conda install package name&#8221;</p>



<h3 class="wp-block-heading" id="h-step-4-create-a-new-python-environment">Step #4 Create a New Python Environment</h3>



<p class="wp-block-paragraph">A key feature of Anaconda is its support for multiple virtual isolated programming environments. Virtual environments allow you to work with specific versions of libraries or Python. ThPythonhelpful because, from my experience, putting everything into a single environment leads to compatibility issues sooner or later.</p>



<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-8f761849 wp-block-columns-is-layout-flex">
<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow">
<p class="wp-block-paragraph">Virtual environments have their packages and paths. Therefore, you don&#8217;t have to worry about the effect of packages on other Python environments. The best way to solve compatibility issues is by creating a new environment where you install these specific libraries that you need for your current project.</p>



<p class="wp-block-paragraph">The preferred way to create and manage environments in Anaconda is by using CMD terminal commands. You can launch the CMD prompt from the Anaconda Navigator, as shown below. There is also a graphical interface for managing environments, but I find its use rather tedious.</p>
</div>



<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow">
<figure class="wp-block-image size-large is-resized"><img decoding="async" data-attachment-id="1729" data-permalink="https://www.relataly.com/anaconda-python-environment-machine-learning/1663/bild2-2/#main" data-orig-file="https://www.relataly.com/wp-content/uploads/2020/05/Bild2.png" data-orig-size="1443,1125" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Bild2" data-image-description="" data-image-caption="" data-large-file="https://www.relataly.com/wp-content/uploads/2020/05/Bild2.png" src="https://www.relataly.com/wp-content/uploads/2020/05/Bild2-1024x798.png" alt="Anaconda Welcome Screen" class="wp-image-1729" width="346" height="269" srcset="https://www.relataly.com/wp-content/uploads/2020/05/Bild2.png 1024w, https://www.relataly.com/wp-content/uploads/2020/05/Bild2.png 300w, https://www.relataly.com/wp-content/uploads/2020/05/Bild2.png 768w, https://www.relataly.com/wp-content/uploads/2020/05/Bild2.png 1443w" sizes="(max-width: 346px) 100vw, 346px" /><figcaption class="wp-element-caption">The Anaconda Navigator</figcaption></figure>
</div>
</div>



<p class="wp-block-paragraph">From the Anaconda Navigator, you can create new environments and install packages. To create a new environment, click on the &#8220;Environments&#8221; tab, then click the &#8220;Create&#8221; button. Give your environment a name and select the version of Python that you want to use. You can also select any additional packages that you want to be installed in the environment.</p>



<p class="wp-block-paragraph">Below is a list of essential CMD commands for creating and managing environments in Anaconda:</p>



<div class="wp-block-codemirror-blocks-code-block code-block"><pre class="CodeMirror" data-setting="{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:false,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;null&quot;,&quot;mime&quot;:&quot;text/plain&quot;,&quot;theme&quot;:&quot;3024-day&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Plain Text&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;text&quot;}"># Display a list of all environments
conda env list

# Create a new Environment with a specific Python version
conda create -n yourenvname python=x.x anaconda

# Create an exact copy of an existing environment
conda create --clone py35 --name py35-2

# Update Anaconda
conda update conda

# Activates the environment, so that all subsequent activities affect this environment
source activate yourenvname

# Install a new package into a specific environment
conda install -n yourenvname [package]

# Deactivate an environment
source deactivate

# Remove an environment including all packages
conda remove -n yourenvname -all</pre></div>



<p class="wp-block-paragraph">For additional commands, you can look at this <a href="https://docs.conda.io/projects/conda/en/4.6.0/_downloads/52a95608c49671267e40c689e0bc00ca/conda-cheatsheet.pdf" target="_blank" rel="noreferrer noopener">Conda cheat sheet.</a></p>



<h3 class="wp-block-heading" id="h-step-5-create-a-jupyter-notebook">Step #5 Create a Jupyter Notebook</h3>



<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-8f761849 wp-block-columns-is-layout-flex">
<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow">
<p class="wp-block-paragraph">Next, we create a new Python Jupyter notebook. You can launch Jupyter Notebooks from the Anaconda Navigator. The Jupyter Python environment will launch in a new browser window. Be aware that the notebook will use the virtual Anaconda environment that is currently active. The standard virtual environment is the &#8220;base&#8221; environment. </p>



<p class="wp-block-paragraph">If you want to create a new environment, you can do this by launching the command prompt and typing the following command:</p>



<pre class="wp-block-preformatted">conda create --name &lt;env name&gt; &lt;possible packages, e.g., keras, numpy, etc.&gt;</pre>



<p class="wp-block-paragraph">Once you have created a new environment, you can activate it with the following command:</p>



<pre class="wp-block-preformatted">conda activate &lt;env name&gt;</pre>
</div>



<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow">
<figure class="wp-block-image size-large is-resized"><img decoding="async" data-attachment-id="5530" data-permalink="https://www.relataly.com/anaconda-python-environment-machine-learning/1663/image-1-16/#main" data-orig-file="https://www.relataly.com/wp-content/uploads/2021/07/image-1.png" data-orig-size="1034,820" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="image-1" data-image-description="" data-image-caption="" data-large-file="https://www.relataly.com/wp-content/uploads/2021/07/image-1.png" src="https://www.relataly.com/wp-content/uploads/2021/07/image-1-1024x812.png" alt="Anaconda Navigator: Launch JupyterNotebook" class="wp-image-5530" width="512" height="406" srcset="https://www.relataly.com/wp-content/uploads/2021/07/image-1.png 1024w, https://www.relataly.com/wp-content/uploads/2021/07/image-1.png 300w, https://www.relataly.com/wp-content/uploads/2021/07/image-1.png 768w, https://www.relataly.com/wp-content/uploads/2021/07/image-1.png 1034w" sizes="(max-width: 512px) 100vw, 512px" /><figcaption class="wp-element-caption">Anaconda Navigator: Launch JupyterNotebook</figcaption></figure>
</div>
</div>



<p class="wp-block-paragraph">Once you have launched the Jupyter notebook environment, you should see the standard folder path. In the folder path, you can choose a workspace folder that will contain all the Python code and the resources of your python projects. I have located my workspace at <em>C:\Users\Username\My_Jupyter_Workspace.</em></p>



<p class="wp-block-paragraph">To create a new Python notebook, click the &#8220;New&#8221; tab and select Python. A Pythonndow will open, and you can start to code.</p>



<figure class="wp-block-image size-large is-resized"><img decoding="async" data-attachment-id="1734" data-permalink="https://www.relataly.com/anaconda-python-environment-machine-learning/1663/bild3/#main" data-orig-file="https://www.relataly.com/wp-content/uploads/2020/05/Bild3.png" data-orig-size="1867,1005" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Bild3" data-image-description="" data-image-caption="" data-large-file="https://www.relataly.com/wp-content/uploads/2020/05/Bild3.png" src="https://www.relataly.com/wp-content/uploads/2020/05/Bild3-1024x551.png" alt="File Management of the Jupyter Python Environment" class="wp-image-1734" width="768" height="413" srcset="https://www.relataly.com/wp-content/uploads/2020/05/Bild3.png 1024w, https://www.relataly.com/wp-content/uploads/2020/05/Bild3.png 300w, https://www.relataly.com/wp-content/uploads/2020/05/Bild3.png 768w, https://www.relataly.com/wp-content/uploads/2020/05/Bild3.png 1536w, https://www.relataly.com/wp-content/uploads/2020/05/Bild3.png 1867w" sizes="(max-width: 768px) 100vw, 768px" /><figcaption class="wp-element-caption">File Management of the Jupyter Python Environment</figcaption></figure>



<p class="wp-block-paragraph">That&#8217;s it. You have brought your Python infrastructure in place and can start coding.</p>



<h2 class="wp-block-heading" id="h-summary">Summary</h2>



<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-8f761849 wp-block-columns-is-layout-flex">
<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow" style="flex-basis:66.66%">
<p class="wp-block-paragraph">This article has provided a comprehensive guide on setting up the Anaconda Python Environment for machine learning projects. By following the steps outlined in this article, you have successfully installed and configured the Anaconda Python environment, which is an essential tool for any data scientist or machine learning engineer.</p>



<p class="wp-block-paragraph">One of the key takeaways from this article is learning how to manage virtual environments, which is an essential practice for any data scientist or machine learning engineer. By creating separate virtual environments for different projects, you can ensure that each project has the necessary dependencies and libraries without interfering with other projects. This also helps to avoid version conflicts and ensures reproducibility.</p>



<p class="wp-block-paragraph">Another important aspect covered in this article is package installation. By using Anaconda&#8217;s built-in package manager, Conda, you can easily install and manage the necessary packages and libraries for your machine learning projects. Conda also makes it easy to switch between different versions of packages and manage dependencies.</p>
</div>



<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow" style="flex-basis:33.33%">
<figure class="wp-block-image size-full"><img decoding="async" width="510" height="509" data-attachment-id="12455" data-permalink="https://www.relataly.com/anaconda-python-environment-machine-learning/1663/anaconda-python-environment-min/#main" data-orig-file="https://www.relataly.com/wp-content/uploads/2023/02/anaconda-python-environment-min.png" data-orig-size="510,509" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="anaconda-python-environment-min" data-image-description="" data-image-caption="" data-large-file="https://www.relataly.com/wp-content/uploads/2023/02/anaconda-python-environment-min.png" src="https://www.relataly.com/wp-content/uploads/2023/02/anaconda-python-environment-min.png" alt="" class="wp-image-12455" srcset="https://www.relataly.com/wp-content/uploads/2023/02/anaconda-python-environment-min.png 510w, https://www.relataly.com/wp-content/uploads/2023/02/anaconda-python-environment-min.png 300w, https://www.relataly.com/wp-content/uploads/2023/02/anaconda-python-environment-min.png 140w" sizes="(max-width: 510px) 100vw, 510px" /><figcaption class="wp-element-caption">Now that you have your Anaconda Python environment in place, you are ready to tackle exciting machine-learning projects. Image created with <a href="http://www.midjourney.com" target="_blank" rel="noreferrer noopener">Midjourney</a>.</figcaption></figure>



<p class="wp-block-paragraph"></p>
</div>
</div>



<p class="wp-block-paragraph"></p>



<h2 class="wp-block-heading" id="h-sources-and-further-reading">Sources and Further Reading</h2>



<ul class="wp-block-list">
<li><a href="https://www.anaconda.com/" target="_blank" rel="noreferrer noopener">anaconda.com</a></li>



<li><a href="https://jupyter.org/" target="_blank" rel="noreferrer noopener">jupyter.org</a></li>
</ul>



<p class="wp-block-paragraph">If you still need ideas for your first projects, the following tutorials may offer some inspiration:</p>



<ul class="wp-block-list">
<li><a href="https://www.relataly.com/simple-cluster-analysis-using-k-means-with-python/5070/" target="_blank" rel="noreferrer noopener">Simple Cluster Analysis using K-Means with Python</a></li>



<li><a href="https://www.relataly.com/simple-sentiment-analysis-using-naive-bayes-and-logistic-regression/2007/" target="_blank" rel="noreferrer noopener">Simple Sentiment Analysis using Naive Bayes and Logistic Regression</a></li>



<li><a href="https://www.relataly.com/building-a-movie-recommender-using-collaborative-filtering/4376/" target="_blank" rel="noreferrer noopener">Building a Movie Recommender using Collaborative Filtering in Python</a></li>



<li><a href="https://www.relataly.com/image-classification-with-deep-learning/2485/" target="_blank" rel="noreferrer noopener">Getting Started with Image Recognition: Classifying Cats and Dogs using Neural Networks with Python</a></li>



<li>Images created with Midjourney</li>



<li>ChatGPT helped to revise certain parts of this article.</li>
</ul>
<p>The post <a href="https://www.relataly.com/anaconda-python-environment-machine-learning/1663/">Getting Started with the Anaconda Python Environment for Machine Learning</a> appeared first on <a href="https://www.relataly.com">relataly.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.relataly.com/anaconda-python-environment-machine-learning/1663/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1663</post-id>	</item>
	</channel>
</rss>
