<?xml version='1.0'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:atom="http://www.w3.org/2005/Atom" >
<channel>
	<title><![CDATA[BOL: Creating conda environment for python2.7]]></title>
	<link>https://bioinformaticsonline.com/pages/view/36502/creating-conda-environment-for-python27?</link>
	<atom:link href="https://bioinformaticsonline.com/pages/view/36502/creating-conda-environment-for-python27?" rel="self" type="application/rss+xml" />
	<description><![CDATA[]]></description>
	
	<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/pages/view/36502/creating-conda-environment-for-python27</guid>
	<pubDate>Mon, 07 May 2018 08:56:52 -0500</pubDate>
	<link>https://bioinformaticsonline.com/pages/view/36502/creating-conda-environment-for-python27</link>
	<title><![CDATA[Creating conda environment for python2.7]]></title>
	<description><![CDATA[<p>TIP: By default, environments are installed into the&nbsp;<code><span>envs</span></code>&nbsp;directory in your conda directory. Run&nbsp;<code><span>conda</span>&nbsp;<span>create</span>&nbsp;<span>--help</span></code>&nbsp;for information on specifying a different path.</p><p>Use the Terminal or an Anaconda Prompt for the following steps.</p><ol>
<li>
<p>To create an environment:</p>
<div>
<div>
<pre><span></span><span>conda</span> <span>create</span> <span>--</span><span>name</span> <span>myenv</span>
</pre>
</div>
</div>
<p>NOTE: Replace&nbsp;<code><span>myenv</span></code>&nbsp;with the environment name.</p>
</li>
<li>
<p>When conda asks you to proceed, type&nbsp;<code><span>y</span></code>:</p>
<div>
<div>
<pre><span></span>proceed ([y]/n)?
</pre>
</div>
</div>
</li>
</ol><p>This creates the myenv environment in&nbsp;<code><span>/envs/</span></code>. This environment uses the same version of Python that you are currently using, because you did not specify a version.</p><p>To create an environment with a specific version of Python:</p><div><div><pre><span></span>conda create -n myenv <span>python</span><span>=</span><span>3</span>.4
</pre></div></div><p>To create an environment with a specific package:</p><div><div><pre><span></span>conda create -n myenv scipy
</pre></div></div><p>OR:</p><div><div><pre><span></span>conda create -n myenv python
conda install -n myenv scipy
</pre></div></div><p>To create an environment with a specific version of a package:</p><div><div><pre><span></span>conda create -n myenv <span>scipy</span><span>=</span><span>0</span>.15.0
</pre></div></div><p>OR:</p><div><div><pre><span></span>conda create -n myenv python
conda install -n myenv <span>scipy</span><span>=</span><span>0</span>.15.0
</pre></div></div><p>To create an environment with a specific version of Python and multiple packages:</p><div><div><pre><span></span>conda create -n myenv <span>python</span><span>=</span><span>3</span>.4 <span>scipy</span><span>=</span><span>0</span>.15.0 astroid babel
</pre></div></div><p>TIP: Install all the programs that you want in this environment at the same time. Installing 1 program at a time can lead to dependency conflicts.</p><p>To automatically install pip or another program every time a new environment is created, add the default programs to the&nbsp;<a href="https://conda.io/docs/user-guide/configuration/use-condarc.html#config-add-default-pkgs">create_default_packages</a>&nbsp;section of your&nbsp;<code><span>.condarc</span></code>&nbsp;configuration file. The default packages are installed every time you create a new environment. If you do not want the default packages installed in a particular environment, use the&nbsp;<code><span>--no-default-packages</span></code>&nbsp;flag:</p><div><div><pre><span></span>conda create --no-default-packages -n myenv python
</pre></div></div><p>TIP: You can add much more to the&nbsp;<code><span>conda</span>&nbsp;<span>create</span></code>&nbsp;command. For details, run&nbsp;<code><span>conda</span>&nbsp;<span>create</span>&nbsp;<span>--help</span></code>.</p><p>➜ redundans git:(master) ✗ conda create --name py27 python=2.7<br />Solving environment: done</p><p><br />==&gt; WARNING: A newer version of conda exists. &lt;==<br /> current version: 4.5.0<br /> latest version: 4.5.2</p><p>Please update conda by running</p><p>$ conda update -n base conda</p><p>&nbsp;</p><p>## Package Plan ##</p><p>environment location: /home/urbe/anaconda3/envs/py27</p><p>added / updated specs: <br /> - python=2.7</p><p><br />The following packages will be downloaded:</p><p>package | build<br /> ---------------------------|-----------------<br /> wheel-0.31.0 | py27_0 61 KB<br /> python-2.7.15 | h1571d57_0 12.1 MB<br /> certifi-2018.4.16 | py27_0 142 KB<br /> sqlite-3.23.1 | he433501_0 1.5 MB<br /> setuptools-39.1.0 | py27_0 582 KB<br /> openssl-1.0.2o | h20670df_0 3.4 MB<br /> pip-10.0.1 | py27_0 1.7 MB<br /> ca-certificates-2018.03.07 | 0 124 KB<br /> ------------------------------------------------------------<br /> Total: 19.6 MB</p><p>The following NEW packages will be INSTALLED:</p><p>ca-certificates: 2018.03.07-0 <br /> certifi: 2018.4.16-py27_0 <br /> libedit: 3.1-heed3624_0 <br /> libffi: 3.2.1-hd88cf55_4 <br /> libgcc-ng: 7.2.0-hdf63c60_3 <br /> libstdcxx-ng: 7.2.0-hdf63c60_3 <br /> ncurses: 6.0-h9df7e31_2 <br /> openssl: 1.0.2o-h20670df_0<br /> pip: 10.0.1-py27_0 <br /> python: 2.7.15-h1571d57_0<br /> readline: 7.0-ha6073c6_4 <br /> setuptools: 39.1.0-py27_0 <br /> sqlite: 3.23.1-he433501_0<br /> tk: 8.6.7-hc745277_3 <br /> wheel: 0.31.0-py27_0 <br /> zlib: 1.2.11-ha838bed_2</p><p>Proceed ([y]/n)? y</p><p><br />Downloading and Extracting Packages<br />wheel 0.31.0: #################################################################################################################################################################################################### | 100% <br />python 2.7.15: ################################################################################################################################################################################################### | 100% <br />certifi 2018.4.16: ############################################################################################################################################################################################### | 100% <br />sqlite 3.23.1: ################################################################################################################################################################################################### | 100% <br />setuptools 39.1.0: ############################################################################################################################################################################################### | 100% <br />openssl 1.0.2o: ################################################################################################################################################################################################## | 100% <br />pip 10.0.1: ###################################################################################################################################################################################################### | 100% <br />ca-certificates 2018.03.07: ###################################################################################################################################################################################### | 100% <br />Preparing transaction: done<br />Verifying transaction: done<br />Executing transaction: done<br />#<br /># To activate this environment, use:<br /># &gt; source activate py27<br />#<br /># To deactivate an active environment, use:<br /># &gt; source deactivate<br />#</p><p>➜ redundans git:(master) ✗ source activate py27</p>]]></description>
	<dc:creator>Jit</dc:creator>
</item>

</channel>
</rss>