-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-anaconda-for-a-painless-python-experience.html
128 lines (105 loc) · 4.82 KB
/
install-anaconda-for-a-painless-python-experience.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Install Anaconda for a painless Python experience</title>
<link rel="stylesheet" href="http://icymist.github.io/theme/css/main.css" />
<link href="http://icymist.github.io/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Chaitanya Krishna Ande Atom Feed" />
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body id="index" class="home">
<header id="banner" class="body">
<h1><a href="http://icymist.github.io/">Chaitanya Krishna Ande </a></h1>
<nav><ul>
<li><a href="http://icymist.github.io/pages/about.html">About</a></li>
<li class="active"><a href="http://icymist.github.io/category/how-to.html">How To</a></li>
<li><a href="http://icymist.github.io/category/investing.html">Investing</a></li>
<li><a href="http://icymist.github.io/category/productivity.html">Productivity</a></li>
</ul></nav>
</header><!-- /#banner -->
<section id="content" class="body">
<article>
<header>
<h1 class="entry-title">
<a href="http://icymist.github.io/install-anaconda-for-a-painless-python-experience.html" rel="bookmark"
title="Permalink to Install Anaconda for a painless Python experience">Install Anaconda for a painless Python experience</a></h1>
</header>
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="2015-03-27T16:00:00+01:00">
Published: Fri 27 March 2015
</abbr>
<address class="vcard author">
By <a class="url fn" href="http://icymist.github.io/author/chaitanya-krishna-ande.html">Chaitanya Krishna Ande</a>
</address>
<p>In <a href="http://icymist.github.io/category/how-to.html">How To</a>. </p>
<p>tags: <a href="http://icymist.github.io/tag/linux.html">linux</a> <a href="http://icymist.github.io/tag/python.html">python</a> </p>
</footer><!-- /.post-info --> <p>I have recently migrated from the Enthought Python Distribution to the Anaconda Python Distribution.
Using anaconda has been a breeze compared to Enthought.
Somehow, I couldn't get around my head to understand the User and System enviroments in Enthought.
Also, I didn't quite understand how the command line management is different from the GUI.
With Anacond it has been pretty simple.
Just install, clone to get a new environment and start working.</p>
<p>To install a python environment for my blog using pelican, I just had to do the following.</p>
<ol>
<li>
<p>Install anaconda and add anaconda python to your path.</p>
<div class="highlight"><pre>chmod +x Anaconda-2.1.0-Linux-x86_64.sh
./Anaconda-2.1.0-Linux-x86_64.sh
</pre></div>
</li>
<li>
<p>Clone the <code>root</code> environment to a new environment named <code>pelican</code>.</p>
<div class="highlight"><pre>conda create -n pelican --clone root
</pre></div>
</li>
<li>
<p>Install pelican and markdown. markdown wasn't present in the base Anaconda distribution.</p>
<div class="highlight"><pre>pip install pelican
</pre></div>
</li>
<li>
<p>Change to the new pelican python environment and start working.</p>
<div class="highlight"><pre><span class="nb">source </span>activate pelican
</pre></div>
</li>
<li>
<p>That was it. And, to get back to the root environment:</p>
<div class="highlight"><pre><span class="nb">source </span>deactivate
</pre></div>
</li>
</ol>
<p>Other useful conda commands.</p>
<ul>
<li>
<p>Info about available environments.</p>
<div class="highlight"><pre>conda info -e
</pre></div>
</li>
<li>
<p>Completely remove an environment.</p>
<div class="highlight"><pre>conda remove -n <name of environment> --all
</pre></div>
</li>
</ul>
</div><!-- /.entry-content -->
</article>
</section>
<section id="extras" class="body">
<div class="social">
<h2>social</h2>
<ul>
<li><a href="http://icymist.github.io/feeds/all.atom.xml" type="application/atom+xml" rel="alternate">atom feed</a></li>
</ul>
</div><!-- /.social -->
</section><!-- /#extras -->
<footer id="contentinfo" class="body">
<address id="about" class="vcard body">
Proudly powered by <a href="http://getpelican.com/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
</address><!-- /#about -->
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
</footer><!-- /#contentinfo -->
</body>
</html>