-
Notifications
You must be signed in to change notification settings - Fork 0
/
python-install.sh
executable file
·65 lines (48 loc) · 2.02 KB
/
python-install.sh
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
#!/bin/sh
# Download and install miniconda
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/Miniconda3-latest-Linux-x86_64.sh
bash ~/Miniconda3-latest-Linux-x86_64.sh -b -p $HOME/miniconda3
# Setup the dev environment based on the YML file
conda env create --name dev --file conda-dev-python-environment.yml
# Set up jupyter-notebook and jupyterlab
./jupyter-setup.sh
# Install libs through conda and conda channels
# conda install -y numpy pandas PyMySQL tqdm pyarrow matplotlib seaborn openpyxl XlsxWriter xlrd psutil \
# SQLAlchemy mysql-connector-python nose shapely pyproj plotly pyshp nltk black bcrypt selenium \
# geopandas descartes snakeviz datashader holoviews
# conda install -y -c conda-forge google-cloud-bigquery google-cloud-storage slackclient \
# sendgrid folium nodejs ipyvolume jupyter_contrib_nbextensions jupyterlab pythreejs ipywidgets
# conda install -y -c viascience fpdf
#
# # Packages not possible to install using conda
# pip install msgpack pyvisgraph geojson geopy openpyxl bpython fuzzywuzzy feather-format py-spy afinn shap \
# pandas-gbq lime pdfminer.six geojsoncontour xgboost dexplot geocoder mplleaflet sqlint
# Upgrade Google elements
# pip install --upgrade google-cloud-storage google-cloud-bigquery
# Not needed at the moment
#conda install -y -c conda-forge keras tensorflow
#pip install flask faker
# For NLTK run this to download sources:
#import nltk
#nltk.download()
#######################
# Conda tips
#######################
# Export current environment
# conda env export > environment.yml
# Create a environment based on a YAML file
# conda env create -f environment.yml
# Update a environment
# conda env update –f environment.yml –n data_quality
# Remove environment
# conda remove --name data_quality --all
# Activate a environment
# conda activate data-quality
# List environments
# conda info --envs
# Keep conda up to date
# conda update -n root conda
# conda update anaconda
# conda update --all
# Update pip
# pip install --upgrade pip