質問編集履歴
3
.bashrcを更新しました。$ brew unlink python3 $ brew install python3の結果を記載しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -50,7 +50,7 @@
|
|
50
50
|
/usr/local/Cellar/python/3.6.5/share/man/ (2 files)
|
51
51
|
```
|
52
52
|
|
53
|
-
また、.bashrcは下記の通りでした。
|
53
|
+
また、.bashrcは下記の通りでしたが、変えました。
|
54
54
|
```
|
55
55
|
PATH=$HOME/Users/hacosato/Library/Homebrew/bin:$PATH
|
56
56
|
HOMEBREW_CACHE=$HOME/Users/hacosato/Library/Homebrew/cashe
|
@@ -122,4 +122,77 @@
|
|
122
122
|
install-on-request: 210,466 (30 days), 705,025 (90 days), 2,782,130 (365 days)
|
123
123
|
build-error: 0 (30 days)
|
124
124
|
```
|
125
|
-
3.7と3.6が混ざってる…?
|
125
|
+
3.7と3.6が混ざってる…?
|
126
|
+
|
127
|
+
追記:
|
128
|
+
|
129
|
+
.bashrcは、変更して下記の通りです。
|
130
|
+
|
131
|
+
```
|
132
|
+
# PATH=$HOME/Library/Homebrew/bin:$PATH
|
133
|
+
# HOMEBREW_CACHE=$HOME/Library/Homebrew/cashe
|
134
|
+
|
135
|
+
export PYENV_ROOT="$HOME/.pyenv"
|
136
|
+
export PATH="$PYENV_ROOT/bin:$PATH"
|
137
|
+
if which pyenv > /dev/null; then eval "$(pyenv init -)"; fi
|
138
|
+
```
|
139
|
+
|
140
|
+
```
|
141
|
+
$ brew unlink python3
|
142
|
+
$ brew install python3
|
143
|
+
```
|
144
|
+
を実行しました。結果は下記の通りです。
|
145
|
+
```
|
146
|
+
$ brew unlink python3
|
147
|
+
==> Tapping homebrew/core
|
148
|
+
Cloning into '/Users/hacosato/Library/Homebrew/Library/Taps/homebrew/homebrew-core'...
|
149
|
+
remote: Enumerating objects: 5140, done.
|
150
|
+
remote: Counting objects: 100% (5140/5140), done.
|
151
|
+
remote: Compressing objects: 100% (4939/4939), done.
|
152
|
+
remote: Total 5140 (delta 45), reused 322 (delta 5), pack-reused 0
|
153
|
+
Receiving objects: 100% (5140/5140), 4.16 MiB | 1.01 MiB/s, done.
|
154
|
+
Resolving deltas: 100% (45/45), done.
|
155
|
+
Error: Invalid formula: /Users/hacosato/Library/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/diesel.rb
|
156
|
+
undefined method `uses_from_macos' for #<Class:0x00007f9757899ae0>
|
157
|
+
Error: Invalid formula: /Users/hacosato/Library/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/h2o.rb
|
158
|
+
undefined method `uses_from_macos' for Formulary::FormulaNamespacec579bc6ee01a64170f1603f5fc3ebbad::H2o:Class
|
159
|
+
(同じエラーが600行ほど)
|
160
|
+
Error: Cannot tap homebrew/core: invalid syntax in tap!
|
161
|
+
Error: Failure while executing: /Users/hacosato/Library/Homebrew/bin/brew tap homebrew/core
|
162
|
+
hacosatonoiMac:~ hacosato$ brew install python3
|
163
|
+
Initialized empty Git repository in /Users/hacosato/Library/Homebrew/.git/
|
164
|
+
remote: Enumerating objects: 1967, done.
|
165
|
+
Updating Homebrew...ects: 0% (1/1967)
|
166
|
+
remote: Counting objects: 100% (1967/1967), done.
|
167
|
+
remote: Compressing objects: 100% (1781/1781), done.
|
168
|
+
remote: Total 1967 (delta 201), reused 713 (delta 102), pack-reused 0
|
169
|
+
Receiving objects: 100% (1967/1967), 2.01 MiB | 1.26 MiB/s, done.
|
170
|
+
Resolving deltas: 100% (201/201), done.
|
171
|
+
From https://github.com/Homebrew/brew
|
172
|
+
* [new branch] master -> origin/master
|
173
|
+
HEAD is now at 575f76a Merge pull request #7074 from dawidd6/log-homebrew-path
|
174
|
+
To restore the stashed changes to /Users/hacosato/Library/Homebrew run:
|
175
|
+
'cd /Users/hacosato/Library/Homebrew && git stash pop'
|
176
|
+
-e:1:in `<main>': undefined method `canonical_segments' for #<Gem::Version "2.3.7"> (NoMethodError)
|
177
|
+
==> Downloading https://homebrew.bintray.com/bottles-portable-ruby/portable-ruby-2.6.3.mavericks.bottle.tar.gz
|
178
|
+
Already downloaded: /Users/hacosato/Library/Caches/Homebrew/portable-ruby-2.6.3.mavericks.bottle.tar.gz
|
179
|
+
==> Pouring portable-ruby-2.6.3.mavericks.bottle.tar.gz
|
180
|
+
==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
|
181
|
+
Read the analytics documentation (and how to opt-out) here:
|
182
|
+
https://docs.brew.sh/Analytics
|
183
|
+
No analytics have been recorded yet (or will be during this `brew` run).
|
184
|
+
|
185
|
+
==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
|
186
|
+
https://github.com/Homebrew/brew#donations
|
187
|
+
==> Tapping homebrew/core
|
188
|
+
Cloning into '/Users/hacosato/Library/Homebrew/Library/Taps/homebrew/homebrew-core'...
|
189
|
+
remote: Enumerating objects: 13, done.
|
190
|
+
remote: Counting objects: 100% (13/13), done.
|
191
|
+
remote: Compressing objects: 100% (9/9), done.
|
192
|
+
remote: Total 684812 (delta 6), reused 11 (delta 4), pack-reused 684799
|
193
|
+
Receiving objects: 100% (684812/684812), 276.87 MiB | 526.00 KiB/s, done.
|
194
|
+
Resolving deltas: 100% (448910/448910), done.
|
195
|
+
Tapped 2 commands and 4922 formulae (5,182 files, 303.7MB).
|
196
|
+
/Users/hacosato/Library/Homebrew/Library/Homebrew/brew.rb:10:in `<main>': Homebrew must be run under Ruby 2.6! You're running 2.3.7. (RuntimeError)
|
197
|
+
```
|
198
|
+
unlinkができていないでしょうか…?
|
2
brew info python3も書きました!
title
CHANGED
File without changes
|
body
CHANGED
@@ -85,4 +85,41 @@
|
|
85
85
|
CLT: N/A
|
86
86
|
Xcode: 11.2.1
|
87
87
|
XQuartz: 2.7.11 => /opt/X11
|
88
|
-
```
|
88
|
+
```
|
89
|
+
|
90
|
+
```
|
91
|
+
$ brew info python3
|
92
|
+
python: stable 3.7.6 (bottled), HEAD
|
93
|
+
Interpreted, interactive, object-oriented programming language
|
94
|
+
https://www.python.org/
|
95
|
+
/usr/local/Cellar/python/3.6.4_2 (3,809 files, 58.4MB)
|
96
|
+
Poured from bottle on 2018-01-07 at 22:11:55
|
97
|
+
/usr/local/Cellar/python/3.6.5 (4,872 files, 101.4MB)
|
98
|
+
Poured from bottle on 2018-05-15 at 15:52:39
|
99
|
+
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/python.rb
|
100
|
+
==> Dependencies
|
101
|
+
Build: pkg-config ✔
|
102
|
+
Required: gdbm ✔, openssl@1.1 ✔, readline ✔, sqlite ✔, xz ✔
|
103
|
+
==> Options
|
104
|
+
--HEAD
|
105
|
+
Install HEAD version
|
106
|
+
==> Caveats
|
107
|
+
Python has been installed as
|
108
|
+
/usr/local/bin/python3
|
109
|
+
|
110
|
+
Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to
|
111
|
+
`python3`, `python3-config`, `pip3` etc., respectively, have been installed into
|
112
|
+
/usr/local/opt/python/libexec/bin
|
113
|
+
|
114
|
+
You can install Python packages with
|
115
|
+
pip3 install <package>
|
116
|
+
They will install into the site-package directory
|
117
|
+
/usr/local/lib/python3.7/site-packages
|
118
|
+
|
119
|
+
See: https://docs.brew.sh/Homebrew-and-Python
|
120
|
+
==> Analytics
|
121
|
+
install: 402,371 (30 days), 1,386,122 (90 days), 5,584,222 (365 days)
|
122
|
+
install-on-request: 210,466 (30 days), 705,025 (90 days), 2,782,130 (365 days)
|
123
|
+
build-error: 0 (30 days)
|
124
|
+
```
|
125
|
+
3.7と3.6が混ざってる…?
|
1
echo $PATHとbrew config書きました!
title
CHANGED
File without changes
|
body
CHANGED
@@ -58,4 +58,31 @@
|
|
58
58
|
|
59
59
|
自分自身の環境でどのようにPythonがインストールされているかもあまり理解できておらずなのですが…アドバイスいただけたらと思います。
|
60
60
|
|
61
|
-
macos 10.14.6
|
61
|
+
macos 10.14.6
|
62
|
+
|
63
|
+
追記:
|
64
|
+
```
|
65
|
+
$ echo $PATH
|
66
|
+
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin
|
67
|
+
```
|
68
|
+
|
69
|
+
```
|
70
|
+
$ brew config
|
71
|
+
HOMEBREW_VERSION: 2.2.6
|
72
|
+
ORIGIN: https://github.com/Homebrew/brew
|
73
|
+
HEAD: (16進数みたいなやつ)
|
74
|
+
Last commit: 7 days ago
|
75
|
+
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
|
76
|
+
Core tap HEAD: (16進数みたいなやつ)
|
77
|
+
Core tap last commit: 28 minutes ago
|
78
|
+
HOMEBREW_PREFIX: /usr/local
|
79
|
+
CPU: 16-core 64-bit skylake
|
80
|
+
Homebrew Ruby: 2.6.3 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3/bin/ruby
|
81
|
+
Clang: 11.0 build 1100
|
82
|
+
Git: 2.21.0 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
|
83
|
+
Curl: 7.54.0 => /usr/bin/curl
|
84
|
+
macOS: 10.14.6-x86_64
|
85
|
+
CLT: N/A
|
86
|
+
Xcode: 11.2.1
|
87
|
+
XQuartz: 2.7.11 => /opt/X11
|
88
|
+
```
|