Skip to content

Commit

Permalink
Added Mac conda environment
Browse files Browse the repository at this point in the history
  • Loading branch information
saeedamen committed Jun 4, 2020
1 parent e42f43d commit f02c69f
Show file tree
Hide file tree
Showing 7 changed files with 552 additions and 25 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

* 04 Jun 2020
* Added Mac conda environment
* 30 May 2020
* Added pyLDAvis to Anaconda installation files
* 27 May 2020
Expand Down
82 changes: 82 additions & 0 deletions pythoncourse/installation/create_conda_env_linux.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
#!/usr/bin/env bash

# Assumes that Anaconda has already been downloaded and installed

# Update conda
conda update -n base -c defaults conda --yes

# conda config --set allow_conda_downgrades true
# conda install conda=4.6.11

source activate

# Remove any existing environment called py36class, and create a py36class with anaconda packages
conda remove -n py36class --all --yes
conda create -n py36class python=3.6
source activate py36class

# Install Tensorflow, PyTorch and Anaconda (lots of pacakged)
# Pandas 0.24.2 is needed for some packages and scikit-learn 0.20.2
# only if you have GPU below 2 lines instead of CPU versions
# conda install anaconda tensorflow-gpu=2.1.0 anaconda pandas=0.24.2 scikit-learn=0.20.2 graphviz python-graphviz --yes
# conda install pytorch torchvision cudatoolkit=10.1 -c pytorch --yes
conda install anaconda tensorflow=2.1.0 anaconda pandas=0.24.2 scikit-learn=0.20.2 graphviz python-graphviz --yes
conda install pytorch torchvision cpuonly -c pytorch --yes

# OpenCV and PyArrow need to be installed earlier
conda install -c conda-forge pyarrow=0.17.1 opencv --yes

# xlwings only works for Mac omit on Linux
# conda install -c conda-forge xlwings=0.19.4 --yes

# Install from conda-forge (pyarrow is a newer version!)
conda install -c conda-forge \
jupyter_contrib_nbextensions jupyter_nbextensions_configurator \
redis-py python-blosc pathos textblob \
vaex \
spacy fastparquet python-snappy nodejs pystan fbprophet setuptools-git \
pyspark=2.4.0 koalas \
vispy datashader pyproj holoviews streamz quandl bqplot \
--yes

# Install database
# Install Celery
# For findatapy (and NLP) and complex graphics
# Install transformers/huggingface and table libraries
# Install graphics/plotting libraries
# Install findatapy, chartpy and findatapy
# Install modin (later versions need later versions of pandas, may downgrade to pandas to 0.24.2
# opencv-contrib-python==4.2.0.34 \
pip install arctic==1.79.2 \
celery==4.4.0 celery[redis] celery[msgpack] msgpack-python \
fxcmpy alpha_vantage yfinance twython newspaper3k seasonal pdfminer.six vaderSentiment gensim wordcloud RISE requests_html \
textacy==0.8.0 \
transformers pytesseract cmdstanpy==0.4 tabula-py==1.4.3 \
cvlib \
cufflinks==0.17.3 plotly==4.8.0 \
dash==1.12.0 dash-html-components==1.0.3 dash-core-components==1.10.0 dash-table==4.7.0 jupyter-dash==0.2.1 chart_studio==1.1.0 \
dtale==1.8.1 progressbar2==3.38.0 \
finmarketpy chartpy findatapy pyldavis

# To be able to plot Plotly into PNG or JPG
conda install -c plotly plotly-orca --yes

# Note that modin may not be compatible with other libraries, so it is recommended
# you install it in its own environment if you do want to use it
# pip install modin==0.5.4
# conda install -c conda-forge pyarrow=0.17.1 --yes

# GPU libraries for working with DataFrames
# conda install -c rapidsai -c nvidia -c conda-forge -c defaults rapids=0.10 python=3.6

# Jupyter and Jupyterlab extensions
jupyter contrib nbextension install --user # to activate js on Jupyter
jupyter nbextension enable execute_time/ExecuteTime
jupyter-nbextension install rise --py --sys-prefix

# Some of these extensions are not compatible with latest Jupyterlab
# jupyter labextension install @jupyter-widgets/jupyterlab-manager --no-build
# jupyter labextension install plotlywidget --no-build
# jupyter labextension install jupyterlab-plotly --no-build
# jupyter labextension install bqplot
# jupyter lab build
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ conda install -c plotly plotly-orca --yes
# Note that modin may not be compatible with other libraries, so it is recommended
# you install it in its own environment if you do want to use it
# pip install modin==0.5.4

# conda install -c conda-forge pyarrow=0.17.1 --yes

# GPU libraries for working with DataFrames
Expand Down
Loading

0 comments on commit f02c69f

Please sign in to comment.