Skip to content

Commit

Permalink
Added more instructions for installing conda
Browse files Browse the repository at this point in the history
  • Loading branch information
saeedamen committed Oct 14, 2020
1 parent 76a9812 commit 4e55f75
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ https://nbviewer.jupyter.org/github/cuemacro/teaching/blob/master/pythoncourse/i

# Coding log

* 14 Oct 2020
* Added extra instructions for finding environment.yml files when installing conda environment
* 01 Oct 2020
* Updated Python environments to include FinancePy
* 13 Sep 2020
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13190,11 +13190,13 @@ <h2 id="Installing-a-conda-environment-for-Windows-from-YML-file-(quickest-metho
<li>Open up the Anaconda Prompt (should be in the Start Menu)</li>
<li><p>In this prompt, your Anaconda folder will be on the path (ie. it will recognise where <code>conda</code> is installed etc.)</p>
<ul>
<li>Type in <code>conda activate</code> to exit the current conda environment, then <code>conda remove -n py37class --all --yes</code> to remove any existing environments called <code>py37class</code></li>
<li>Type in <code>conda activate</code> and press Enter to exit the current conda environment, then <code>conda remove -n py37class --all --yes</code> and press Enter to remove any existing environments called <code>py37class</code></li>
<li>Type in <code>conda env create -f environment_windows.yml</code> and press Enter</li>
<li>Anaconda will then run all the necessary command to download the various packages above using conda and pip</li>
<li>At the end of the process you'll have a Python 3.7 conda environment with the name 'py37class' which you can use, with all the packages you'll need for this course, such as pandas, numpy etc.</li>
<li>Note that you may need to put in the full path for wherever you downloaded the <code>environment_windows.yml</code> file or you can simply <code>cd</code> to that folder and then run the above conda command</li>
<li>Typically when you download files from your internet browser, Windows will usually save it in the users downloads folder, this is usually accessable by doing
<code>cd \Users\&lt;your-username&gt;\Downloads</code> and then pressing Enter</li>
</ul>
</li>
<li><p>The <code>environment_windows.yml</code> file (or similar name) basically has all the instructions required to recreate a conda environment</p>
Expand Down Expand Up @@ -13259,11 +13261,13 @@ <h2 id="Installing-a-conda-environment-for-Linux-or-Mac-from-YAML-file-(quickest
<li>Open up a terminal window (making sure that Anaconda is on your path) on Linux or Mac</li>
<li><p>In this prompt, your Anaconda folder will be on the path (ie. it will recognise where <code>conda</code> is installed etc.)</p>
<ul>
<li>Type in <code>conda activate</code> to exit the current conda environment, then <code>conda remove -n py37class --all --yes</code> to remove any existing environments called <code>py37class</code></li>
<li>Type in <code>conda activate</code> to exit the current conda environment and press Enter, then <code>conda remove -n py37class --all --yes</code> and press Enter to remove any existing environments called <code>py37class</code></li>
<li>Type in <code>conda env create -f environment_linux.yml</code> and press Enter (or <code>conda env create -f environment_mac.yml</code> on Mac)</li>
<li>Anaconda will then run all the necessary command to download the various packages above using conda and pip</li>
<li>At the end of the process you'll have a Python 3.6 conda environment with the name 'py37class' which you can use, with all the packages you'll need for this course, such as pandas, numpy etc.</li>
<li>Note that you may need to put in the full path for wherever you downloaded the <code>environment_linux.yml</code> (or <code>environment_mac.yml</code>) file or you can simply <code>cd</code> to that folder and then run the above conda command</li>
<li>Typically on Mac OS X when you save down files from your internet browser they will be in the user's home downloads folder, which you can get to by typing
<code>cd ~/Downloads</code> and then pressing Enter</li>
</ul>
</li>
<li><p>The <code>environment_linux.yml</code> file (or <code>environment_mac.yml</code> or similar name) basically has all the instructions required to recreate a conda environment</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,13 @@
"\n",
"* Open up the Anaconda Prompt (should be in the Start Menu)\n",
"* In this prompt, your Anaconda folder will be on the path (ie. it will recognise where `conda` is installed etc.)\n",
" * Type in `conda activate` to exit the current conda environment, then `conda remove -n py37class --all --yes` to remove any existing environments called `py37class`\n",
" * Type in `conda activate` and press Enter to exit the current conda environment, then `conda remove -n py37class --all --yes` and press Enter to remove any existing environments called `py37class`\n",
" * Type in `conda env create -f environment_windows.yml` and press Enter\n",
" * Anaconda will then run all the necessary command to download the various packages above using conda and pip\n",
" * At the end of the process you'll have a Python 3.7 conda environment with the name 'py37class' which you can use, with all the packages you'll need for this course, such as pandas, numpy etc.\n",
" * Note that you may need to put in the full path for wherever you downloaded the `environment_windows.yml` file or you can simply `cd` to that folder and then run the above conda command\n",
" * Typically when you download files from your internet browser, Windows will usually save it in the users downloads folder, this is usually accessable by doing\n",
" `cd \\Users\\<your-username>\\Downloads` and then pressing Enter\n",
" \n",
"* The `environment_windows.yml` file (or similar name) basically has all the instructions required to recreate a conda environment\n",
"* To create your own `environment.yml` file (for backup purposes, or if you'd like to distribute your conda environment) run the below command in your Anaconda Prompt\n",
Expand Down Expand Up @@ -211,11 +213,13 @@
"\n",
"* Open up a terminal window (making sure that Anaconda is on your path) on Linux or Mac\n",
"* In this prompt, your Anaconda folder will be on the path (ie. it will recognise where `conda` is installed etc.)\n",
" * Type in `conda activate` to exit the current conda environment, then `conda remove -n py37class --all --yes` to remove any existing environments called `py37class`\n",
" * Type in `conda activate` to exit the current conda environment and press Enter, then `conda remove -n py37class --all --yes` and press Enter to remove any existing environments called `py37class`\n",
" * Type in `conda env create -f environment_linux.yml` and press Enter (or `conda env create -f environment_mac.yml` on Mac)\n",
" * Anaconda will then run all the necessary command to download the various packages above using conda and pip\n",
" * At the end of the process you'll have a Python 3.6 conda environment with the name 'py37class' which you can use, with all the packages you'll need for this course, such as pandas, numpy etc.\n",
" * Note that you may need to put in the full path for wherever you downloaded the `environment_linux.yml` (or `environment_mac.yml`) file or you can simply `cd` to that folder and then run the above conda command\n",
" * Typically on Mac OS X when you save down files from your internet browser they will be in the user's home downloads folder, which you can get to by typing\n",
" `cd ~/Downloads` and then pressing Enter\n",
" \n",
"* The `environment_linux.yml` file (or `environment_mac.yml` or similar name) basically has all the instructions required to recreate a conda environment\n",
"* To create your own `environment.yml` file (for backup purposes, or if you'd like to distribute your conda environment) run the below command in your Anaconda Prompt\n",
Expand Down

0 comments on commit 4e55f75

Please sign in to comment.