-
Notifications
You must be signed in to change notification settings - Fork 1
/
python-env.html
352 lines (230 loc) · 12.3 KB
/
python-env.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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Python Installation Guide — Project Title</title>
<script type="text/javascript" src="_static/js/modernizr.min.js"></script>
<script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
<script src="_static/jquery.js"></script>
<script src="_static/underscore.js"></script>
<script src="_static/doctools.js"></script>
<script src="_static/language_data.js"></script>
<script crossorigin="anonymous" integrity="sha256-Ae2Vz/4ePdIu6ZyI/5ZGsYnb+m0JlOmKPjt6XZ9JJkA=" src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js"></script>
<script type="text/javascript" src="_static/js/theme.js"></script>
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/theme_overrides.css" type="text/css" />
<link rel="stylesheet" href="_static/custom.css" type="text/css" />
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="next" title="Docker Installation Guide" href="docker-env.html" />
<link rel="prev" title="Remote learning environment" href="remote-learning-env.html" />
</head>
<body class="wy-body-for-nav">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-scroll">
<div class="wy-side-nav-search" style="background: #000099" >
<a href="index.html">
<img src="_static/galvanize-logo.png" class="logo" alt="Logo"/>
</a>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
<input type="text" name="q" placeholder="Search docs" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div>
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
<p class="caption"><span class="caption-text">Install Guides</span></p>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="remote-learning-env.html">Remote learning environment</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">Python Installation Guide</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#on-ubuntu">On Ubuntu</a></li>
<li class="toctree-l2"><a class="reference internal" href="#on-osx">On OSX</a></li>
<li class="toctree-l2"><a class="reference internal" href="#on-windows">On Windows</a></li>
<li class="toctree-l2"><a class="reference internal" href="#keeping-conda-up-to-date">Keeping conda up-to-date</a></li>
<li class="toctree-l2"><a class="reference internal" href="#troubleshooting">Troubleshooting</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#removing-an-old-version">Removing an old version</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#additional-resources">Additional Resources</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="docker-env.html">Docker Installation Guide</a></li>
</ul>
</div>
</div>
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
<nav class="wy-nav-top" aria-label="top navigation">
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="index.html">Python</a>
</nav>
<div class="wy-nav-content">
<div class="rst-content">
<div role="navigation" aria-label="breadcrumbs navigation">
<ul class="wy-breadcrumbs">
<li><a href="index.html">Docs</a> »</li>
<li>Python Installation Guide</li>
<li class="wy-breadcrumbs-aside">
<a href="_sources/python-env.rst.txt" rel="nofollow"> View page source</a>
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">
<style>
/* CSS overrides for sphinx_rtd_theme */
/* 24px margin */
.nbinput.nblast.container,
.nboutput.nblast.container {
margin-bottom: 19px; /* padding has already 5px */
}
/* ... except between code cells! */
.nblast.container + .nbinput.container {
margin-top: -19px;
}
.admonition > p:before {
margin-right: 4px; /* make room for the exclamation icon */
}
/* Fix math alignment, see https://github.com/rtfd/sphinx_rtd_theme/pull/686 */
.math {
text-align: unset;
}
</style>
<div class="section" id="python-installation-guide">
<h1>Python Installation Guide<a class="headerlink" href="#python-installation-guide" title="Permalink to this headline">¶</a></h1>
<p>Regardless of how you choose to install Python, please make sure you install Python version 3.x. The latest increment
of version 3 is ideal. <a class="reference external" href="https://www.python.org/doc/sunset-python-2/">Python 2 is no longer supported</a>. As part of
your educational experience, throughout class you will use <a class="reference external" href="https://jupyter.org/">jupyter notebooks</a>, a programming environment that
runs in a web browser. For this to work you will need a reasonably up-to-date browser, like the current
version of Chrome, Safari or Firefox. For more information see the
<a class="reference external" href="https://jupyter-notebook.readthedocs.io/en/stable/notebook.html#browser-compatibility">browsers supported by Jupyter</a>.</p>
<p>We recommend the use of the <a class="reference external" href="https://www.anaconda.com/products/individual">Anaconda distribution</a> to maintain your
Python environment for most data science applications. Python is currently the most popular data science language used
in industry. A major reason it is an industry standard today is its diverse and well-maintained ecosystem of
packages. Anaconda is essentially a bundle of many of these packages, and it comes with
<a class="reference external" href="https://conda.io/docs/">Conda</a>, a package management system.</p>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>You do not need administrator or root permissions to install Anaconda if you select a user-writable install
location.</p>
</div>
<p>Download the image or install script from <a class="reference external" href="https://www.anaconda.com/download/">https://www.anaconda.com/download/</a></p>
<div class="section" id="on-ubuntu">
<h2>On Ubuntu<a class="headerlink" href="#on-ubuntu" title="Permalink to this headline">¶</a></h2>
<ol class="arabic simple">
<li><p>install via the command line</p></li>
</ol>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>~$ bash ~/Downloads/Anaconda3-2020.02-Linux-x86_64.sh
</pre></div>
</div>
<p>The above link may not have the same name as the actual file downloaded</p>
<div class="admonition important">
<p class="admonition-title">Important</p>
<p>Answer yes to questions that you are prompted with</p>
</div>
<ol class="arabic simple" start="2">
<li><p>Restart terminal</p></li>
</ol>
</div>
<div class="section" id="on-osx">
<h2>On OSX<a class="headerlink" href="#on-osx" title="Permalink to this headline">¶</a></h2>
<ol class="arabic simple">
<li><p>Run the installer on the downloaded image</p></li>
</ol>
<div class="admonition important">
<p class="admonition-title">Important</p>
<p>Answer yes to the path adding question</p>
</div>
<ol class="arabic simple" start="2">
<li><p>restart terminal</p></li>
</ol>
</div>
<div class="section" id="on-windows">
<h2>On Windows<a class="headerlink" href="#on-windows" title="Permalink to this headline">¶</a></h2>
<ol class="arabic simple">
<li><p>Ensure that you install the <code class="docutils literal notranslate"><span class="pre">Anaconda</span> <span class="pre">installer</span> <span class="pre">for</span> <span class="pre">Windows</span></code> for Python 3</p></li>
<li><p>Double-click the .exe file</p></li>
<li><p>Follow the instructions on the screen</p></li>
</ol>
<p>If you are unsure about any setting, accept the defaults. You can change them later.
When installation is finished, from the Start menu, open the Anaconda Prompt.</p>
<div class="admonition important">
<p class="admonition-title">Important</p>
<p>Ensure that you check <strong>Make Anaconda the default Python</strong></p>
</div>
<p>For more info, see <a class="reference external" href="https://conda.io/docs/user-guide/install/windows.html">https://conda.io/docs/user-guide/install/windows.html</a></p>
</div>
<div class="section" id="keeping-conda-up-to-date">
<h2>Keeping conda up-to-date<a class="headerlink" href="#keeping-conda-up-to-date" title="Permalink to this headline">¶</a></h2>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>~$ conda update --all
</pre></div>
</div>
</div>
<div class="section" id="troubleshooting">
<h2>Troubleshooting<a class="headerlink" href="#troubleshooting" title="Permalink to this headline">¶</a></h2>
<div class="section" id="removing-an-old-version">
<h3>Removing an old version<a class="headerlink" href="#removing-an-old-version" title="Permalink to this headline">¶</a></h3>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>~$ rm -rf ~/anaconda*
</pre></div>
</div>
</div>
</div>
<div class="section" id="additional-resources">
<h2>Additional Resources<a class="headerlink" href="#additional-resources" title="Permalink to this headline">¶</a></h2>
<ul class="simple">
<li><p><a class="reference external" href="https://docs.anaconda.com/anaconda/user-guide/">Anaconda User Guide</a></p></li>
<li><p><a class="reference external" href="https://docs.anaconda.com/anaconda/user-guide/tasks/integration/">To integrate Anaconda with an IDE</a></p></li>
</ul>
</div>
</div>
</div>
</div>
<footer>
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
<a href="docker-env.html" class="btn btn-neutral float-right" title="Docker Installation Guide" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
<a href="remote-learning-env.html" class="btn btn-neutral float-left" title="Remote learning environment" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
</div>
<hr/>
<div role="contentinfo">
<p>
</p>
</div>
Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
</div>
</div>
</section>
</div>
<script type="text/javascript">
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>
<!-- Theme Analytics -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-XXXXXXX-1', 'auto');
ga('send', 'pageview');
</script>
<script type="text/javascript">
$(document).ready(function() {
$(".toggle > *").hide();
$(".toggle .header").show();
$(".toggle .header").click(function() {
$(this).parent().children().not(".header").toggle(400);
$(this).parent().children(".header").toggleClass("open");
})
});
</script>
</body>
</html>