質問編集履歴

2

追記

2019/04/08 13:28

投稿

namnium1125
namnium1125

スコア2043

test CHANGED
File without changes
test CHANGED
@@ -33,3 +33,403 @@
33
33
 
34
34
 
35
35
  二重に呼び出しているようですが、何が原因かよくわかりません...ほかに必要な情報があれば追記いたします。何かご存知の方がいらっしゃいましたら、回答よろしくお願いいたします。m(_ _)m
36
+
37
+
38
+
39
+ # 追記
40
+
41
+
42
+
43
+ `4.6.11`にて`ls`コマンドを使ってみた結果は以下となりました。
44
+
45
+
46
+
47
+ ```
48
+
49
+ $ ls /c/Sub_Program_Files/Anaconda3/etc/profile.d/
50
+
51
+ conda.csh conda.sh
52
+
53
+ ```
54
+
55
+
56
+
57
+ `conda.sh`の中身は`4.5.12`と`4.6.11`で異なっておりましたが、シェルスクリプトの知識に明るくなかったためどの行でエラーが出ているかを確かめることはできませんでした。
58
+
59
+
60
+
61
+ 掲載してもあまり意味はないかもしれませんが、`4.5.12`と`4.6.11`それぞれの`conda.sh`です。
62
+
63
+
64
+
65
+ `4.5.12`
66
+
67
+
68
+
69
+ ```
70
+
71
+ _CONDA_EXE="$(cygpath 'C:/Sub_Program_Files/Anaconda3\Scripts\conda.exe')"
72
+
73
+ _conda_set_vars() {
74
+
75
+ # set _CONDA_SHELL_FLAVOR
76
+
77
+ if [ -n "${BASH_VERSION:+x}" ]; then
78
+
79
+ _CONDA_SHELL_FLAVOR=bash
80
+
81
+ elif [ -n "${ZSH_VERSION:+x}" ]; then
82
+
83
+ _CONDA_SHELL_FLAVOR=zsh
84
+
85
+ elif [ -n "${KSH_VERSION:+x}" ]; then
86
+
87
+ _CONDA_SHELL_FLAVOR=ksh
88
+
89
+ elif [ -n "${POSH_VERSION:+x}" ]; then
90
+
91
+ _CONDA_SHELL_FLAVOR=posh
92
+
93
+ else
94
+
95
+ # default to dash; if we run into a problem here, please raise an issue
96
+
97
+ _CONDA_SHELL_FLAVOR=dash
98
+
99
+ fi
100
+
101
+
102
+
103
+ if [ -z "${_CONDA_EXE+x}" ]; then
104
+
105
+ if [ -n "${_CONDA_ROOT:+x}" ]; then
106
+
107
+ # typically this should be for dev only; _CONDA_EXE should be written at top of file
108
+
109
+ # for normal installs
110
+
111
+ _CONDA_EXE="$_CONDA_ROOT/conda/shell/bin/conda"
112
+
113
+ fi
114
+
115
+ if ! [ -f "${_CONDA_EXE-x}" ]; then
116
+
117
+ _CONDA_EXE="$PWD/conda/shell/bin/conda"
118
+
119
+ fi
120
+
121
+ fi
122
+
123
+
124
+
125
+ # We're not allowing PS1 to be unbound. It must at least be set.
126
+
127
+ # However, we're not exporting it, which can cause problems when starting a second shell
128
+
129
+ # via a first shell (i.e. starting zsh from bash).
130
+
131
+ if [ -z "${PS1+x}" ]; then
132
+
133
+ PS1=
134
+
135
+ fi
136
+
137
+
138
+
139
+ }
140
+
141
+
142
+
143
+
144
+
145
+ _conda_hashr() {
146
+
147
+ case "$_CONDA_SHELL_FLAVOR" in
148
+
149
+ zsh) \rehash;;
150
+
151
+ posh) ;;
152
+
153
+ *) \hash -r;;
154
+
155
+ esac
156
+
157
+ }
158
+
159
+
160
+
161
+
162
+
163
+ _conda_activate() {
164
+
165
+ if [ -n "${CONDA_PS1_BACKUP:+x}" ]; then
166
+
167
+ # Handle transition from shell activated with conda <= 4.3 to a subsequent activation
168
+
169
+ # after conda updated to >= 4.4. See issue #6173.
170
+
171
+ PS1="$CONDA_PS1_BACKUP"
172
+
173
+ \unset CONDA_PS1_BACKUP
174
+
175
+ fi
176
+
177
+
178
+
179
+ \local ask_conda
180
+
181
+ ask_conda="$(PS1="$PS1" $_CONDA_EXE shell.posix activate "$@")" || \return $?
182
+
183
+ \eval "$ask_conda"
184
+
185
+
186
+
187
+ _conda_hashr
188
+
189
+ }
190
+
191
+
192
+
193
+ _conda_deactivate() {
194
+
195
+ \local ask_conda
196
+
197
+ ask_conda="$(PS1="$PS1" $_CONDA_EXE shell.posix deactivate "$@")" || \return $?
198
+
199
+ \eval "$ask_conda"
200
+
201
+
202
+
203
+ _conda_hashr
204
+
205
+ }
206
+
207
+
208
+
209
+ _conda_reactivate() {
210
+
211
+ \local ask_conda
212
+
213
+ ask_conda="$(PS1="$PS1" $_CONDA_EXE shell.posix reactivate)" || \return $?
214
+
215
+ \eval "$ask_conda"
216
+
217
+
218
+
219
+ _conda_hashr
220
+
221
+ }
222
+
223
+
224
+
225
+
226
+
227
+ conda() {
228
+
229
+ if [ "$#" -lt 1 ]; then
230
+
231
+ $_CONDA_EXE
232
+
233
+ else
234
+
235
+ \local cmd="$1"
236
+
237
+ shift
238
+
239
+ case "$cmd" in
240
+
241
+ activate)
242
+
243
+ _conda_activate "$@"
244
+
245
+ ;;
246
+
247
+ deactivate)
248
+
249
+ _conda_deactivate "$@"
250
+
251
+ ;;
252
+
253
+ install|update|uninstall|remove)
254
+
255
+ $_CONDA_EXE "$cmd" "$@" && _conda_reactivate
256
+
257
+ ;;
258
+
259
+ *)
260
+
261
+ $_CONDA_EXE "$cmd" "$@"
262
+
263
+ ;;
264
+
265
+ esac
266
+
267
+ fi
268
+
269
+ }
270
+
271
+
272
+
273
+
274
+
275
+ _conda_set_vars
276
+
277
+
278
+
279
+ if [ -z "${CONDA_SHLVL+x}" ]; then
280
+
281
+ \export CONDA_SHLVL=0
282
+
283
+ fi
284
+
285
+ ```
286
+
287
+
288
+
289
+ `4.6.11`
290
+
291
+
292
+
293
+ ```
294
+
295
+ export CONDA_EXE="$(cygpath 'C:/Sub_Program_Files/Anaconda3\Scripts\conda.exe')"
296
+
297
+ export _CE_M=-m
298
+
299
+ export _CE_CONDA=conda
300
+
301
+ export CONDA_BAT="C:/Sub_Program_Files/Anaconda3\condabin\conda.bat"
302
+
303
+ # Copyright (C) 2012 Anaconda, Inc
304
+
305
+ # SPDX-License-Identifier: BSD-3-Clause
306
+
307
+
308
+
309
+ __conda_hashr() {
310
+
311
+ if [ -n "${ZSH_VERSION:+x}" ]; then
312
+
313
+ \rehash
314
+
315
+ elif [ -n "${POSH_VERSION:+x}" ]; then
316
+
317
+ : # pass
318
+
319
+ else
320
+
321
+ \hash -r
322
+
323
+ fi
324
+
325
+ }
326
+
327
+
328
+
329
+ __conda_activate() {
330
+
331
+ if [ -n "${CONDA_PS1_BACKUP:+x}" ]; then
332
+
333
+ # Handle transition from shell activated with conda <= 4.3 to a subsequent activation
334
+
335
+ # after conda updated to >= 4.4. See issue #6173.
336
+
337
+ PS1="$CONDA_PS1_BACKUP"
338
+
339
+ \unset CONDA_PS1_BACKUP
340
+
341
+ fi
342
+
343
+
344
+
345
+ \local cmd="$1"
346
+
347
+ shift
348
+
349
+ \local ask_conda
350
+
351
+ ask_conda="$(PS1="$PS1" "$CONDA_EXE" $_CE_M $_CE_CONDA shell.posix "$cmd" "$@")" || \return $?
352
+
353
+ \eval "$ask_conda"
354
+
355
+ __conda_hashr
356
+
357
+ }
358
+
359
+
360
+
361
+ __conda_reactivate() {
362
+
363
+ \local ask_conda
364
+
365
+ ask_conda="$(PS1="$PS1" "$CONDA_EXE" $_CE_M $_CE_CONDA shell.posix reactivate)" || \return $?
366
+
367
+ \eval "$ask_conda"
368
+
369
+ __conda_hashr
370
+
371
+ }
372
+
373
+
374
+
375
+ conda() {
376
+
377
+ if [ "$#" -lt 1 ]; then
378
+
379
+ "$CONDA_EXE" $_CE_M $_CE_CONDA
380
+
381
+ else
382
+
383
+ \local cmd="$1"
384
+
385
+ shift
386
+
387
+ case "$cmd" in
388
+
389
+ activate|deactivate)
390
+
391
+ __conda_activate "$cmd" "$@"
392
+
393
+ ;;
394
+
395
+ install|update|upgrade|remove|uninstall)
396
+
397
+ "$CONDA_EXE" $_CE_M $_CE_CONDA "$cmd" "$@" && __conda_reactivate
398
+
399
+ ;;
400
+
401
+ *) "$CONDA_EXE" $_CE_M $_CE_CONDA "$cmd" "$@" ;;
402
+
403
+ esac
404
+
405
+ fi
406
+
407
+ }
408
+
409
+
410
+
411
+ if [ -z "${CONDA_SHLVL+x}" ]; then
412
+
413
+ \export CONDA_SHLVL=0
414
+
415
+ PATH="$(\dirname "$(\dirname "$CONDA_EXE")")/condabin${PATH:+":${PATH}"}"
416
+
417
+ \export PATH
418
+
419
+
420
+
421
+ # We're not allowing PS1 to be unbound. It must at least be set.
422
+
423
+ # However, we're not exporting it, which can cause problems when starting a second shell
424
+
425
+ # via a first shell (i.e. starting zsh from bash).
426
+
427
+ if [ -z "${PS1+x}" ]; then
428
+
429
+ PS1=
430
+
431
+ fi
432
+
433
+ fi
434
+
435
+ ```

1

文言の変更

2019/04/08 13:28

投稿

namnium1125
namnium1125

スコア2043

test CHANGED
File without changes
test CHANGED
@@ -16,7 +16,7 @@
16
16
 
17
17
 
18
18
 
19
- Anacondaのバージョンも`4.5.12`から`4.6.11`へと変わり、それはよかったのですが表題に示した
19
+ Anacondaのバージョンも`4.5.12`から`4.6.11`へと変わり、表題に示した
20
20
 
21
21
 
22
22