Commit 0212410b authored by Maximilian Dolling's avatar Maximilian Dolling

updated python install instructions

parent 0c1a2101
Pipeline #16187 passed with stages
in 6 minutes and 30 seconds
......@@ -11,33 +11,15 @@ https://jupyter-notebook.readthedocs.io/en/stable/notebook.html#browser-compatib
<p>
<a href="https://python.org">Python</a> is a popular language for
research computing, and great for general-purpose programming as
well. Installing all of its research packages individually can be
a bit difficult, so we recommend
<a href="https://www.anaconda.com/products/individual">Anaconda</a>,
an all-in-one installer.
well. We will use plain Python for the workshop.
</p>
<p>
Regardless of how you choose to install it,
<strong>please make sure you install Python version 3.x</strong>
<strong>Please make sure you install Python version 3.x</strong>
(e.g., 3.6 is fine).
</p>
{% comment %}
Please remove or comment out this paragraph using
<!-- and --> or {% comment %} and {% endcomment %}
if you do not plan to use Jupyter Notebook environment.
{% endcomment %}
<p>
We will teach Python using the <a href="https://jupyter.org/">Jupyter Notebook</a>,
a programming environment that runs in a web browser (Jupyter Notebook will be installed by Anaconda). For this to work you will need a reasonably
up-to-date browser. The current versions of the Chrome, Safari and
Firefox browsers are all
<a href="https://jupyter-notebook.readthedocs.io/en/stable/notebook.html#browser-compatibility">supported</a>
(some older browsers, including Internet Explorer version 9
and below, are not).
</p>
<p>If you encounter problems, please contact us (see above).</p>
<div>
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="active"><a data-os="windows" href="#python-windows" aria-controls="Windows" role="tab" data-toggle="tab">Windows</a></li>
......@@ -48,63 +30,37 @@ https://jupyter-notebook.readthedocs.io/en/stable/notebook.html#browser-compatib
<div class="tab-content">
<article role="tabpanel" class="tab-pane active" id="python-windows">
<ol>
<li>Open <a href="https://www.anaconda.com/products/individual#download-section">https://www.anaconda.com/products/individual#download-section</a> with your web browser.</li>
<li>Download the Anaconda for Windows installer with Python 3. (If you are not sure which version to choose, you probably want the 64-bit Graphical Installer <em>Anaconda3-...-Windows-x86_64.exe</em>)</li>
<li>Install Python 3 by running the Anaconda Installer, using all of the defaults for installation <em>except</em> make sure to check <strong>Add Anaconda to my PATH environment variable</strong>.</li>
<li>On Windows 10 open up the Powershell (open the start menu and start typing 'Powershell' to find it)</li>
<li>In the opened window type 'python --version' and hit enter</li>
<li>The Windows App Store opens and and provides you with the Python setup. If instead the Powershell gives you an output like 'Python 3.x.x', you already have installed it.</li>
<li>After the installation is done, close and reopen the Powershell and again type 'python --version'.</li>
</ol>
<h4>Video Tutorial</h4>
<div class="yt-wrapper2">
<div class="yt-wrapper">
<iframe type="text/html" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" src="https://www.youtube-nocookie.com/embed/xxQ0mzZ8UvA?modestbranding=1&playsinline=1&iv_load_policy=3&rel=0" class="yt-frame" allowfullscreen></iframe>
</div>
</div>
</article>
<article role="tabpanel" class="tab-pane" id="python-macos">
<ol>
<li>Open <a href="https://www.anaconda.com/products/individual#download-section">https://www.anaconda.com/products/individual#download-section</a> with your web browser.</li>
<li>Download the Anaconda Installer with Python 3 for macOS (you can either use the Graphical or the Command Line Installer).</li>
<li>Install Python 3 by running the Anaconda Installer using all of the defaults for installation.</li>
<li>
Python should be installed by default on you system.
Verify the installation by opening the Terminal app and type 'python3 --version'.
The output should be something like 'Python 3.x.x'
</li>
</ol>
<h4>Video Tutorial</h4>
<div class="yt-wrapper2">
<div class="yt-wrapper">
<iframe type="text/html" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" src="https://www.youtube-nocookie.com/embed/TcSAln46u9U?modestbranding=1&playsinline=1&iv_load_policy=3&rel=0" class="yt-frame" allowfullscreen></iframe>
</div>
</div>
</article>
<article role="tabpanel" class="tab-pane" id="python-linux">
<ol>
<li>Open <a href="https://www.anaconda.com/products/individual#download-section">https://www.anaconda.com/products/individual#download-section</a> with your web browser.</li>
<li>Download the Anaconda Installer with Python 3 for Linux.<br>
(The installation requires using the shell. If you aren't
comfortable doing the installation yourself
stop here and request help at the workshop.)
</li>
<li>
Open a terminal window and navigate to the directory where
the executable is downloaded (e.g., `cd ~/Downloads`).
</li>
<li>
Type <pre>bash Anaconda3-</pre> and then press
<kbd>Tab</kbd> to autocomplete the full file name. The name of
file you just downloaded should appear.
</li>
<li>
Press <kbd>Enter</kbd>
(or <kbd>Return</kbd> depending on your keyboard).
You will follow the text-only prompts.
To move through the text, press <kbd>Spacebar</kbd>.
Type <code>yes</code> and press enter to approve the license.
Press <kbd>Enter</kbd> (or <kbd>Return</kbd>)
to approve the default location
for the files.
Type <code>yes</code> and press
<kbd>Enter</kbd> (or <kbd>Return</kbd>)
to prepend Anaconda to your <code>PATH</code>
(this makes the Anaconda distribution the default Python).
Python might be installed by default on your system.
Verify the installation by opening the Terminal app and type 'python3 --version'.
The output should be something like 'Python 3.x.x'
</li>
<li>If it is not installed, open a terminal</li>
<li>
Close the terminal window.
Depending on your operating system, install python with on of these:
<ol>
<li>sudo apt install python</li>
<li>sudo apt-get install python</li>
<li>sudo pacman -S python</li>
<li>sudo dfn install python</li>
</ol>
</li>
</ol>
</article>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment