-
Notifications
You must be signed in to change notification settings - Fork 4
/
Singularity.v3.8-torch1.9.0-dj0.12.7
73 lines (63 loc) · 1.52 KB
/
Singularity.v3.8-torch1.9.0-dj0.12.7
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
66
67
68
69
70
71
72
73
BootStrap: library
From: ubuntu:20.04
%labels
MAINTAINER Christoph Blessing <[email protected]>
%post
apt update && apt install -y software-properties-common
add-apt-repository universe
apt update && apt install -y \
build-essential \
git \
wget \
vim \
curl \
zip \
zlib1g-dev \
unzip \
pkg-config \
libblas-dev \
liblapack-dev \
python3-tk \
python3-wheel \
graphviz \
libhdf5-dev \
python3.8 \
python3.8-dev \
python3.8-distutils \
swig
apt-get clean
ln -s /usr/bin/python3.8 /usr/local/bin/python
ln -s /usr/bin/python3.8 /usr/local/bin/python3
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3.8 get-pip.py
rm get-pip.py
python3.8 -m pip --no-cache-dir install \
blackcellmagic\
pytest \
pytest-cov \
numpy \
matplotlib \
scipy \
pandas \
jupyter \
scikit-learn \
scikit-image \
seaborn \
graphviz \
gpustat \
h5py \
gitpython \
Pillow==8.0.1 \
jupyterlab \
datajoint==0.12.7
python3.8 -m pip --no-cache-dir install \
torch==1.9.0+cu111 \
torchvision==0.10.0+cu111 \
torchaudio==0.9.0 \
-f https://download.pytorch.org/whl/torch_stable.html
%environment
export SHELL=/bin/sh
%runscript
exec /bin/sh -c "$@"
%startscript
jupyter lab