teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

6

bash_profileの中身を追記

2019/04/04 04:33

投稿

ahh
ahh

スコア9

title CHANGED
File without changes
body CHANGED
@@ -54,4 +54,11 @@
54
54
  eval "$(pyenv init-)"
55
55
  export PATH=/usr/local/bin:$PATH
56
56
  export PATH=/Users/user_name/anaconda3/bin:$PATH
57
+ ```
58
+
59
+ ###6
60
+ ```
61
+ $ source ~/.bash_profile
62
+ /usr/local/opt/coreutils/libexec/gnubin/dircolors: /Users/user_name/.dircolors-solarized/dircolors.ansi-dark: No such file or directory
63
+ pyenv: no such command `init-'
57
64
  ```

5

bash_profileの中身を追記

2019/04/04 04:33

投稿

ahh
ahh

スコア9

title CHANGED
File without changes
body CHANGED
@@ -46,4 +46,12 @@
46
46
  .bash_profile
47
47
  .bash_profile.macports-saved_2017-05-17_at_12:12:51
48
48
  .bashrc
49
+ ```
50
+
51
+ ###5
52
+ `vi ~/.bash_profile`
53
+ ```
54
+ eval "$(pyenv init-)"
55
+ export PATH=/usr/local/bin:$PATH
56
+ export PATH=/Users/user_name/anaconda3/bin:$PATH
49
57
  ```

4

誤植修正

2019/04/04 04:29

投稿

ahh
ahh

スコア9

title CHANGED
File without changes
body CHANGED
@@ -18,15 +18,16 @@
18
18
  `bash_profile`を`bashrc`にしてやってみても同じでした。
19
19
 
20
20
 
21
- ###確認したこと
21
+ ##確認したこと
22
+
22
- 1.
23
+ ###1
23
24
  ```
24
25
  $ pyenv versions
25
26
  system
26
27
  * anaconda3-4.0.0 (set by /Users/user_name/.python-version)
27
28
  ```
28
29
 
29
- 2.
30
+ ###2
30
31
  ```
31
32
  $python
32
33
  Python 2.7.10 (default, Aug 17 2018, 19:45:58)
@@ -34,13 +35,12 @@
34
35
  Type "help", "copyright", "credits" or "license" for more information.
35
36
  ```
36
37
 
37
- 3.
38
+ ###3
38
39
  ```
39
40
  $pip --version
40
41
  pip 10.0.0 from /Library/Python/2.7/site-packages/pip (python 2.7)
41
42
  ```
42
-
43
- 4.
43
+ ###4
44
44
  ```
45
45
  $ls -a
46
46
  .bash_profile

3

連番を導入しました。

2019/04/03 13:19

投稿

ahh
ahh

スコア9

title CHANGED
File without changes
body CHANGED
@@ -19,12 +19,14 @@
19
19
 
20
20
 
21
21
  ###確認したこと
22
+ 1.
22
23
  ```
23
24
  $ pyenv versions
24
25
  system
25
26
  * anaconda3-4.0.0 (set by /Users/user_name/.python-version)
26
27
  ```
27
28
 
29
+ 2.
28
30
  ```
29
31
  $python
30
32
  Python 2.7.10 (default, Aug 17 2018, 19:45:58)
@@ -32,11 +34,13 @@
32
34
  Type "help", "copyright", "credits" or "license" for more information.
33
35
  ```
34
36
 
37
+ 3.
35
38
  ```
36
39
  $pip --version
37
40
  pip 10.0.0 from /Library/Python/2.7/site-packages/pip (python 2.7)
38
41
  ```
39
42
 
43
+ 4.
40
44
  ```
41
45
  $ls -a
42
46
  .bash_profile

2

誤植修正

2019/04/03 13:18

投稿

ahh
ahh

スコア9

title CHANGED
File without changes
body CHANGED
@@ -10,7 +10,7 @@
10
10
  ```
11
11
  export PATH=/Users/user_name/anaconda3/bin:$PATH
12
12
  ```
13
- `user_name`はしっかり置換してあります。その後、`source /.bash_profile`と入力し、Terminalを再起動。
13
+ `user_name`はしっかり置換してあります。その後、`source ~/.bash_profile`と入力し、Terminalを再起動。
14
14
  ```
15
15
  $conda
16
16
  ```と入力すると、`command not foud`が帰ってきます。

1

題名をわかりやすくしました。

2019/04/03 05:07

投稿

ahh
ahh

スコア9

title CHANGED
@@ -1,1 +1,1 @@
1
- AnacondaのPATHが通らない。
1
+ condaでcommand not foundエラー PATHの設定?
body CHANGED
@@ -1,4 +1,4 @@
1
- condaのコマンドが効かないです。
1
+ condaのコマンドが効かないです。調べてみた結果、原因はPATHの設定が上手くいってないからと推測しました。
2
2
  Anacondaのインストール自体は2,3年前にやってあったので、当時どういう挙動を示していたか覚えていません。
3
3
 
4
4
  以下現環境---