Skip to content

Commit

Permalink
Updated conda installation instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
saeedamen committed Mar 9, 2021
1 parent f6a2978 commit 2e630ca
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ You can also run some of the notebooks interactively with Binder too

# Coding log

* 09 Mar 2021
* Updated installation instructions
* 08 Mar 2021
* Updated installation instructions
* 07 Mar 2021
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13273,7 +13273,7 @@ <h3 id="Download-create_conda_env_mac.sh-or-create_conda_env_linux.sh">Download
</ul>
</li>
</ul>
<h3 id="Kick-off-instllation">Kick off instllation<a class="anchor-link" href="#Kick-off-instllation">&#182;</a></h3><h4 id="Make-sure-Anaconda-is-on-your-Mac-or-Linux-path">Make sure Anaconda is on your Mac or Linux path<a class="anchor-link" href="#Make-sure-Anaconda-is-on-your-Mac-or-Linux-path">&#182;</a></h4><ul>
<h3 id="Kick-off-installation">Kick off installation<a class="anchor-link" href="#Kick-off-installation">&#182;</a></h3><h4 id="Make-sure-Anaconda-is-on-your-Mac-or-Linux-path">Make sure Anaconda is on your Mac or Linux path<a class="anchor-link" href="#Make-sure-Anaconda-is-on-your-Mac-or-Linux-path">&#182;</a></h4><ul>
<li>In a Terminal window (usually a black window icon on both Linux and Mac)<ul>
<li>Note, conda might already be on your path - you can check this by typing
<code>conda activate</code> and pressing enter, </li>
Expand Down Expand Up @@ -13323,7 +13323,7 @@ <h4 id="Run-Anaconda-environment-installation">Run Anaconda environment installa
<h2 id="Windows/Linux/Mac:-Installing-a-conda-environment-if-all-else-fails">Windows/Linux/Mac: Installing a conda environment if all else fails<a class="anchor-link" href="#Windows/Linux/Mac:-Installing-a-conda-environment-if-all-else-fails">&#182;</a></h2><p>If either the faster or slower methods for installing a conda environment fail, you can try to create something similar to the py37class environment in a more manual way. Then later, you will likely to need to install libraries as you need them through the course.</p>
<p>In your Anaconda Prompt on Windows or Terminal on Linux/Mac, run the following commands.</p>
<ul>
<li><p>Switch to the base environment</p>
<li><p>Switch to the <code>base</code> environment</p>
<ul>
<li><code>conda activate</code></li>
</ul>
Expand All @@ -13333,12 +13333,12 @@ <h2 id="Windows/Linux/Mac:-Installing-a-conda-environment-if-all-else-fails">Win
<li><code>conda remove -n py37class --all --yes</code></li>
</ul>
</li>
<li><p>Create a barebones <code>py37class</code> environment</p>
<li><p>Create a barebones <code>py37class</code> environment (if this hangs, we'll just have to use our <code>base</code> environment</p>
<ul>
<li><code>conda create -n py37class python=3.7</code></li>
</ul>
</li>
<li><p>Activate the new <code>py37class</code> environment, install the <code>anaconda</code> libraries, which include things like Pandas, NumPy etc. and install the minimal set of Cuemacro finance libraries to get you started, and do pip install as needed with additional libraries</p>
<li><p>Activate the new <code>py37class</code> environment (if it managed to install, otherwise we'll just install everything in our <code>base</code> environment, which isn't ideal, but will at least get us the libraries we need), install the <code>anaconda</code> libraries, which include things like Pandas, NumPy etc. and install the minimal set of Cuemacro finance libraries to get you started, and do pip install as needed with additional libraries</p>
<ul>
<li><code>conda activate py37class</code></li>
<li><code>conda install anaconda</code> (and if you find it hangs remove this line)</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@
" * `curl https://raw.githubusercontent.com/cuemacro/teaching/master/pythoncourse/installation/create_conda_env_mac.sh > create_conda_env_mac.sh` \n",
" * `curl https://raw.githubusercontent.com/cuemacro/teaching/master/pythoncourse/installation/create_conda_env_linux.sh > create_conda_env_linux.sh` \n",
"\n",
"### Kick off instllation\n",
"### Kick off installation\n",
"\n",
"#### Make sure Anaconda is on your Mac or Linux path\n",
"\n",
Expand Down Expand Up @@ -240,16 +240,16 @@
"\n",
"In your Anaconda Prompt on Windows or Terminal on Linux/Mac, run the following commands.\n",
"\n",
"* Switch to the base environment\n",
"* Switch to the `base` environment\n",
" * `conda activate`\n",
" \n",
"* Remove any existing `py37class` environment\n",
" * `conda remove -n py37class --all --yes`\n",
" \n",
"* Create a barebones `py37class` environment \n",
"* Create a barebones `py37class` environment (if this hangs, we'll just have to use our `base` environment\n",
" * `conda create -n py37class python=3.7`\n",
" \n",
"* Activate the new `py37class` environment, install the `anaconda` libraries, which include things like Pandas, NumPy etc. and install the minimal set of Cuemacro finance libraries to get you started, and do pip install as needed with additional libraries\n",
"* Activate the new `py37class` environment (if it managed to install, otherwise we'll just install everything in our `base` environment, which isn't ideal, but will at least get us the libraries we need), install the `anaconda` libraries, which include things like Pandas, NumPy etc. and install the minimal set of Cuemacro finance libraries to get you started, and do pip install as needed with additional libraries\n",
" * `conda activate py37class`\n",
" * `conda install anaconda` (and if you find it hangs remove this line)\n",
" * `pip install pandas==1.0.5 finmarketpy chartpy findatapy cufflinks kaleido dash plotly`\n",
Expand Down

0 comments on commit 2e630ca

Please sign in to comment.