回答編集履歴
2
あ
test
CHANGED
@@ -17,3 +17,233 @@
|
|
17
17
|
anaconda のインストールパスは環境によって変わるので調べてください。
|
18
18
|
|
19
19
|
なにも指定しない場合は /opt 以下だったような気がします。
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
## Ubuntu 16.04 で再現した手順
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
Docker 上のまっさらな Ubuntu 16.04 環境に Miniconda をインストールした手順です。
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
必要なプログラムを入れる。
|
32
|
+
|
33
|
+
```
|
34
|
+
|
35
|
+
$ apt-get update
|
36
|
+
|
37
|
+
$ apt-get install -y wget bzip2
|
38
|
+
|
39
|
+
```
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
Miniconda をダウンロードし、インストールする。
|
44
|
+
|
45
|
+
```
|
46
|
+
|
47
|
+
$ wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
|
48
|
+
|
49
|
+
$ bash Miniconda3-latest-Linux-x86_64.sh
|
50
|
+
|
51
|
+
Welcome to Miniconda3 4.5.11
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
In order to continue the installation process, please review the license
|
56
|
+
|
57
|
+
agreement.
|
58
|
+
|
59
|
+
Please, press ENTER to continue
|
60
|
+
|
61
|
+
>>>
|
62
|
+
|
63
|
+
```
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
Enter キーを押すと利用規約が表示さます。
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
```
|
72
|
+
|
73
|
+
Do you accept the license terms? [yes|no]
|
74
|
+
|
75
|
+
[no] >>> Please answer 'yes' or 'no':'
|
76
|
+
|
77
|
+
>>> yes
|
78
|
+
|
79
|
+
```
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
一番下までスクロールし、yes を入力し、Enter を押します。
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
```
|
88
|
+
|
89
|
+
Miniconda3 will now be installed into this location:
|
90
|
+
|
91
|
+
/root/miniconda3
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
- Press ENTER to confirm the location
|
96
|
+
|
97
|
+
- Press CTRL-C to abort the installation
|
98
|
+
|
99
|
+
- Or specify a different location below
|
100
|
+
|
101
|
+
```
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
ここにインストール先のディレクトリが表示されています。(この例では、`/root/miniconda3`)
|
106
|
+
|
107
|
+
環境によって違うので、確認してください。
|
108
|
+
|
109
|
+
Enter キーを押し、インストールを続行します。
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
```
|
114
|
+
|
115
|
+
PREFIX=/root/miniconda3
|
116
|
+
|
117
|
+
installing: python-3.7.0-hc3d631a_0 ...
|
118
|
+
|
119
|
+
Python 3.7.0 (default, Jun 28 2018, 13:15:42)
|
120
|
+
|
121
|
+
[GCC 7.2.0]
|
122
|
+
|
123
|
+
installing: ca-certificates-2018.03.07-0 ...
|
124
|
+
|
125
|
+
installing: conda-env-2.6.0-1 ...
|
126
|
+
|
127
|
+
installing: libgcc-ng-8.2.0-hdf63c60_1 ...
|
128
|
+
|
129
|
+
installing: libstdcxx-ng-8.2.0-hdf63c60_1 ...
|
130
|
+
|
131
|
+
installing: libffi-3.2.1-hd88cf55_4 ...
|
132
|
+
|
133
|
+
installing: ncurses-6.1-hf484d3e_0 ...
|
134
|
+
|
135
|
+
installing: openssl-1.0.2p-h14c3975_0 ...
|
136
|
+
|
137
|
+
installing: xz-5.2.4-h14c3975_4 ...
|
138
|
+
|
139
|
+
installing: yaml-0.1.7-had09818_2 ...
|
140
|
+
|
141
|
+
installing: zlib-1.2.11-ha838bed_2 ...
|
142
|
+
|
143
|
+
installing: libedit-3.1.20170329-h6b74fdf_2 ...
|
144
|
+
|
145
|
+
installing: readline-7.0-h7b6447c_5 ...
|
146
|
+
|
147
|
+
installing: tk-8.6.8-hbc83047_0 ...
|
148
|
+
|
149
|
+
installing: sqlite-3.24.0-h84994c4_0 ...
|
150
|
+
|
151
|
+
installing: asn1crypto-0.24.0-py37_0 ...
|
152
|
+
|
153
|
+
installing: certifi-2018.8.24-py37_1 ...
|
154
|
+
|
155
|
+
installing: chardet-3.0.4-py37_1 ...
|
156
|
+
|
157
|
+
installing: idna-2.7-py37_0 ...
|
158
|
+
|
159
|
+
installing: pycosat-0.6.3-py37h14c3975_0 ...
|
160
|
+
|
161
|
+
installing: pycparser-2.18-py37_1 ...
|
162
|
+
|
163
|
+
installing: pysocks-1.6.8-py37_0 ...
|
164
|
+
|
165
|
+
installing: ruamel_yaml-0.15.46-py37h14c3975_0 ...
|
166
|
+
|
167
|
+
installing: six-1.11.0-py37_1 ...
|
168
|
+
|
169
|
+
installing: cffi-1.11.5-py37he75722e_1 ...
|
170
|
+
|
171
|
+
installing: setuptools-40.2.0-py37_0 ...
|
172
|
+
|
173
|
+
installing: cryptography-2.3.1-py37hc365091_0 ...
|
174
|
+
|
175
|
+
installing: wheel-0.31.1-py37_0 ...
|
176
|
+
|
177
|
+
installing: pip-10.0.1-py37_0 ...
|
178
|
+
|
179
|
+
installing: pyopenssl-18.0.0-py37_0 ...
|
180
|
+
|
181
|
+
installing: urllib3-1.23-py37_0 ...
|
182
|
+
|
183
|
+
installing: requests-2.19.1-py37_0 ...
|
184
|
+
|
185
|
+
installing: conda-4.5.11-py37_0 ...
|
186
|
+
|
187
|
+
installation finished.
|
188
|
+
|
189
|
+
Do you wish the installer to prepend the Miniconda3 install location
|
190
|
+
|
191
|
+
to PATH in your /root/.bashrc ? [yes|no]
|
192
|
+
|
193
|
+
[no] >>> yes
|
194
|
+
|
195
|
+
```
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
PATH 環境変更に追加するか聞かれるので、yes を入力し、Enter キーを押します。
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
```
|
204
|
+
|
205
|
+
You may wish to edit your .bashrc to prepend the Miniconda3 install location to PATH:
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
export PATH=/root/miniconda3/bin:$PATH
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
Thank you for installing Miniconda3!
|
214
|
+
|
215
|
+
```
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
.bashrc を見ると、追加されている。
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
```
|
226
|
+
|
227
|
+
export PATH="/root/miniconda3/bin:$PATH"
|
228
|
+
|
229
|
+
```
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
これでインストールが完了です。
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
```
|
238
|
+
|
239
|
+
$ source ~/.bashrc
|
240
|
+
|
241
|
+
$ which conda
|
242
|
+
|
243
|
+
/root/miniconda3/bin/conda
|
244
|
+
|
245
|
+
```
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
これで conda や pip コマンドが使えることが確認できました。
|
1
a
test
CHANGED
@@ -1 +1,19 @@
|
|
1
|
-
anaconda をインストールした場所を .bashrc で PATH 環境変数に追加してください
|
1
|
+
anaconda をインストールした場所を ~/.bashrc で PATH 環境変数に追加してください
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
~/.bashrc
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
```
|
10
|
+
|
11
|
+
export PATH="<anaconda のインストールパス>/bin:$PATH"
|
12
|
+
|
13
|
+
```
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
anaconda のインストールパスは環境によって変わるので調べてください。
|
18
|
+
|
19
|
+
なにも指定しない場合は /opt 以下だったような気がします。
|