回答編集履歴

3

個人的なおすすめ

2018/10/29 01:16

投稿

Paalon
Paalon

スコア232

test CHANGED
@@ -89,3 +89,5 @@
89
89
 
90
90
 
91
91
  を削除すれば良いです。また使いたければ`brew install pyenv`で使えます。
92
+
93
+ 個人的には`pyenv`は使うのをやめて`brew install python`でpython3を使うのが分かりやすくていいと思います。

2

pyenvの消し方と入れ方

2018/10/29 01:16

投稿

Paalon
Paalon

スコア232

test CHANGED
@@ -61,3 +61,31 @@
61
61
  >>>
62
62
 
63
63
  ```
64
+
65
+
66
+
67
+ pyenvを使うのをやめる場合は
68
+
69
+
70
+
71
+ ```bash
72
+
73
+ brew uninstall pyenv
74
+
75
+ ```
76
+
77
+
78
+
79
+ としてアンインストールして、`.bash_profile`にさっき書いたpyenv用の設定を消して、
80
+
81
+
82
+
83
+ ```bash
84
+
85
+ ~/.pyenv
86
+
87
+ ```
88
+
89
+
90
+
91
+ を削除すれば良いです。また使いたければ`brew install pyenv`で使えます。

1

情報追加

2018/10/29 01:07

投稿

Paalon
Paalon

スコア232

test CHANGED
@@ -4,9 +4,9 @@
4
4
 
5
5
  $ python
6
6
 
7
- Python 2.7.14 (default, Mar 22 2018, 14:43:05)
7
+ Python 2.7.10 (default, Oct 6 2017, 22:29:07)
8
8
 
9
- [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.39.2)] on darwin
9
+ [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)] on darwin
10
10
 
11
11
  Type "help", "copyright", "credits" or "license" for more information.
12
12
 
@@ -29,3 +29,35 @@
29
29
  として、テキストエディタで開いて編集するといいと思います。余裕があるときにvimの使い方は知ればいいと思います。
30
30
 
31
31
  エラーの原因はkaztoさんの書かれたように、文法ミスだと思います。
32
+
33
+
34
+
35
+ 混乱させるかもしれませんが、pyenvを使わないで、HomeBrewで
36
+
37
+
38
+
39
+ ```bash
40
+
41
+ brew install python
42
+
43
+ ```
44
+
45
+
46
+
47
+ とすれば、python3は使えるようになります。
48
+
49
+
50
+
51
+ ```bash
52
+
53
+ $ python3
54
+
55
+ Python 3.7.0 (default, Oct 2 2018, 09:20:07)
56
+
57
+ [Clang 10.0.0 (clang-1000.11.45.2)] on darwin
58
+
59
+ Type "help", "copyright", "credits" or "license" for more information.
60
+
61
+ >>>
62
+
63
+ ```