-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathds.py
executable file
·43 lines (38 loc) · 1.63 KB
/
ds.py
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
import os
conda_config = [
# latest python supported by tf & torch is 3.8
'conda create -n ds python=3.8',
# true: flexible
# false: disabled
# strict: when find pkg in one channel then won't look at lower-priority channel
# reduce time for SAT solver
'conda config --set channel_priority strict',
'conda config --add channels conda-forge',
]
installs = [
# computing
'conda install numpy scipy sympy matplotlib seaborn statsmodels pytest pandas jupyterlab ipywidgets nb_conda plotly',
# dl
'conda install pytorch torchvision torchaudio cudatoolkit=11.0 -c pytorch',
# both gpu & cpu, conda not support tf2
'pip install tensorflow',
# ml
'conda install scikit-learn pillow albumentations optuna opencv tqdm xgboost bayesian-optimization',
# nlp
'conda install gensim nltk spacy textblob transformers',
# RL
'conda install gym',
# others
'conda install scrapy selenium beautifulsoup4 pymc3 networkx cached-property hydra-core wandb',
# jupyter lab
"jupyter labextension install '@aquirdturtle/collapsible_headings' '@jupyter-widgets/jupyterlab-manager' '@jupyterlab/shortcutui' '@jupyterlab/toc' '@krassowski/jupyterlab_go_to_definition' '@kiteco/jupyterlab-kite'",
# doc
'conda install sphinx sphinx_rtd_theme recommonmark sphinx-autobuild',
# pip
"pip install jupyter-kite learn2learn umap numba"
]
for cmd in conda_config:
os.system(cmd)
for cmd in installs:
os.system(
'source activate ds && ' + cmd )