質問編集履歴
3
.bashrcを更新しました。$ brew unlink python3 $ brew install python3の結果を記載しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -102,7 +102,7 @@
|
|
102
102
|
|
103
103
|
|
104
104
|
|
105
|
-
また、.bashrcは下記の通りでした。
|
105
|
+
また、.bashrcは下記の通りでしたが、変えました。
|
106
106
|
|
107
107
|
```
|
108
108
|
|
@@ -247,3 +247,149 @@
|
|
247
247
|
```
|
248
248
|
|
249
249
|
3.7と3.6が混ざってる…?
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
追記:
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
.bashrcは、変更して下記の通りです。
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
```
|
262
|
+
|
263
|
+
# PATH=$HOME/Library/Homebrew/bin:$PATH
|
264
|
+
|
265
|
+
# HOMEBREW_CACHE=$HOME/Library/Homebrew/cashe
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
export PYENV_ROOT="$HOME/.pyenv"
|
270
|
+
|
271
|
+
export PATH="$PYENV_ROOT/bin:$PATH"
|
272
|
+
|
273
|
+
if which pyenv > /dev/null; then eval "$(pyenv init -)"; fi
|
274
|
+
|
275
|
+
```
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
```
|
280
|
+
|
281
|
+
$ brew unlink python3
|
282
|
+
|
283
|
+
$ brew install python3
|
284
|
+
|
285
|
+
```
|
286
|
+
|
287
|
+
を実行しました。結果は下記の通りです。
|
288
|
+
|
289
|
+
```
|
290
|
+
|
291
|
+
$ brew unlink python3
|
292
|
+
|
293
|
+
==> Tapping homebrew/core
|
294
|
+
|
295
|
+
Cloning into '/Users/hacosato/Library/Homebrew/Library/Taps/homebrew/homebrew-core'...
|
296
|
+
|
297
|
+
remote: Enumerating objects: 5140, done.
|
298
|
+
|
299
|
+
remote: Counting objects: 100% (5140/5140), done.
|
300
|
+
|
301
|
+
remote: Compressing objects: 100% (4939/4939), done.
|
302
|
+
|
303
|
+
remote: Total 5140 (delta 45), reused 322 (delta 5), pack-reused 0
|
304
|
+
|
305
|
+
Receiving objects: 100% (5140/5140), 4.16 MiB | 1.01 MiB/s, done.
|
306
|
+
|
307
|
+
Resolving deltas: 100% (45/45), done.
|
308
|
+
|
309
|
+
Error: Invalid formula: /Users/hacosato/Library/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/diesel.rb
|
310
|
+
|
311
|
+
undefined method `uses_from_macos' for #<Class:0x00007f9757899ae0>
|
312
|
+
|
313
|
+
Error: Invalid formula: /Users/hacosato/Library/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/h2o.rb
|
314
|
+
|
315
|
+
undefined method `uses_from_macos' for Formulary::FormulaNamespacec579bc6ee01a64170f1603f5fc3ebbad::H2o:Class
|
316
|
+
|
317
|
+
(同じエラーが600行ほど)
|
318
|
+
|
319
|
+
Error: Cannot tap homebrew/core: invalid syntax in tap!
|
320
|
+
|
321
|
+
Error: Failure while executing: /Users/hacosato/Library/Homebrew/bin/brew tap homebrew/core
|
322
|
+
|
323
|
+
hacosatonoiMac:~ hacosato$ brew install python3
|
324
|
+
|
325
|
+
Initialized empty Git repository in /Users/hacosato/Library/Homebrew/.git/
|
326
|
+
|
327
|
+
remote: Enumerating objects: 1967, done.
|
328
|
+
|
329
|
+
Updating Homebrew...ects: 0% (1/1967)
|
330
|
+
|
331
|
+
remote: Counting objects: 100% (1967/1967), done.
|
332
|
+
|
333
|
+
remote: Compressing objects: 100% (1781/1781), done.
|
334
|
+
|
335
|
+
remote: Total 1967 (delta 201), reused 713 (delta 102), pack-reused 0
|
336
|
+
|
337
|
+
Receiving objects: 100% (1967/1967), 2.01 MiB | 1.26 MiB/s, done.
|
338
|
+
|
339
|
+
Resolving deltas: 100% (201/201), done.
|
340
|
+
|
341
|
+
From https://github.com/Homebrew/brew
|
342
|
+
|
343
|
+
* [new branch] master -> origin/master
|
344
|
+
|
345
|
+
HEAD is now at 575f76a Merge pull request #7074 from dawidd6/log-homebrew-path
|
346
|
+
|
347
|
+
To restore the stashed changes to /Users/hacosato/Library/Homebrew run:
|
348
|
+
|
349
|
+
'cd /Users/hacosato/Library/Homebrew && git stash pop'
|
350
|
+
|
351
|
+
-e:1:in `<main>': undefined method `canonical_segments' for #<Gem::Version "2.3.7"> (NoMethodError)
|
352
|
+
|
353
|
+
==> Downloading https://homebrew.bintray.com/bottles-portable-ruby/portable-ruby-2.6.3.mavericks.bottle.tar.gz
|
354
|
+
|
355
|
+
Already downloaded: /Users/hacosato/Library/Caches/Homebrew/portable-ruby-2.6.3.mavericks.bottle.tar.gz
|
356
|
+
|
357
|
+
==> Pouring portable-ruby-2.6.3.mavericks.bottle.tar.gz
|
358
|
+
|
359
|
+
==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
|
360
|
+
|
361
|
+
Read the analytics documentation (and how to opt-out) here:
|
362
|
+
|
363
|
+
https://docs.brew.sh/Analytics
|
364
|
+
|
365
|
+
No analytics have been recorded yet (or will be during this `brew` run).
|
366
|
+
|
367
|
+
|
368
|
+
|
369
|
+
==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
|
370
|
+
|
371
|
+
https://github.com/Homebrew/brew#donations
|
372
|
+
|
373
|
+
==> Tapping homebrew/core
|
374
|
+
|
375
|
+
Cloning into '/Users/hacosato/Library/Homebrew/Library/Taps/homebrew/homebrew-core'...
|
376
|
+
|
377
|
+
remote: Enumerating objects: 13, done.
|
378
|
+
|
379
|
+
remote: Counting objects: 100% (13/13), done.
|
380
|
+
|
381
|
+
remote: Compressing objects: 100% (9/9), done.
|
382
|
+
|
383
|
+
remote: Total 684812 (delta 6), reused 11 (delta 4), pack-reused 684799
|
384
|
+
|
385
|
+
Receiving objects: 100% (684812/684812), 276.87 MiB | 526.00 KiB/s, done.
|
386
|
+
|
387
|
+
Resolving deltas: 100% (448910/448910), done.
|
388
|
+
|
389
|
+
Tapped 2 commands and 4922 formulae (5,182 files, 303.7MB).
|
390
|
+
|
391
|
+
/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)
|
392
|
+
|
393
|
+
```
|
394
|
+
|
395
|
+
unlinkができていないでしょうか…?
|
2
brew info python3も書きました!
test
CHANGED
File without changes
|
test
CHANGED
@@ -173,3 +173,77 @@
|
|
173
173
|
XQuartz: 2.7.11 => /opt/X11
|
174
174
|
|
175
175
|
```
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
```
|
180
|
+
|
181
|
+
$ brew info python3
|
182
|
+
|
183
|
+
python: stable 3.7.6 (bottled), HEAD
|
184
|
+
|
185
|
+
Interpreted, interactive, object-oriented programming language
|
186
|
+
|
187
|
+
https://www.python.org/
|
188
|
+
|
189
|
+
/usr/local/Cellar/python/3.6.4_2 (3,809 files, 58.4MB)
|
190
|
+
|
191
|
+
Poured from bottle on 2018-01-07 at 22:11:55
|
192
|
+
|
193
|
+
/usr/local/Cellar/python/3.6.5 (4,872 files, 101.4MB)
|
194
|
+
|
195
|
+
Poured from bottle on 2018-05-15 at 15:52:39
|
196
|
+
|
197
|
+
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/python.rb
|
198
|
+
|
199
|
+
==> Dependencies
|
200
|
+
|
201
|
+
Build: pkg-config ✔
|
202
|
+
|
203
|
+
Required: gdbm ✔, openssl@1.1 ✔, readline ✔, sqlite ✔, xz ✔
|
204
|
+
|
205
|
+
==> Options
|
206
|
+
|
207
|
+
--HEAD
|
208
|
+
|
209
|
+
Install HEAD version
|
210
|
+
|
211
|
+
==> Caveats
|
212
|
+
|
213
|
+
Python has been installed as
|
214
|
+
|
215
|
+
/usr/local/bin/python3
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to
|
220
|
+
|
221
|
+
`python3`, `python3-config`, `pip3` etc., respectively, have been installed into
|
222
|
+
|
223
|
+
/usr/local/opt/python/libexec/bin
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
You can install Python packages with
|
228
|
+
|
229
|
+
pip3 install <package>
|
230
|
+
|
231
|
+
They will install into the site-package directory
|
232
|
+
|
233
|
+
/usr/local/lib/python3.7/site-packages
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
See: https://docs.brew.sh/Homebrew-and-Python
|
238
|
+
|
239
|
+
==> Analytics
|
240
|
+
|
241
|
+
install: 402,371 (30 days), 1,386,122 (90 days), 5,584,222 (365 days)
|
242
|
+
|
243
|
+
install-on-request: 210,466 (30 days), 705,025 (90 days), 2,782,130 (365 days)
|
244
|
+
|
245
|
+
build-error: 0 (30 days)
|
246
|
+
|
247
|
+
```
|
248
|
+
|
249
|
+
3.7と3.6が混ざってる…?
|
1
echo $PATHとbrew config書きました!
test
CHANGED
File without changes
|
test
CHANGED
@@ -119,3 +119,57 @@
|
|
119
119
|
|
120
120
|
|
121
121
|
macos 10.14.6
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
追記:
|
126
|
+
|
127
|
+
```
|
128
|
+
|
129
|
+
$ echo $PATH
|
130
|
+
|
131
|
+
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin
|
132
|
+
|
133
|
+
```
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
```
|
138
|
+
|
139
|
+
$ brew config
|
140
|
+
|
141
|
+
HOMEBREW_VERSION: 2.2.6
|
142
|
+
|
143
|
+
ORIGIN: https://github.com/Homebrew/brew
|
144
|
+
|
145
|
+
HEAD: (16進数みたいなやつ)
|
146
|
+
|
147
|
+
Last commit: 7 days ago
|
148
|
+
|
149
|
+
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
|
150
|
+
|
151
|
+
Core tap HEAD: (16進数みたいなやつ)
|
152
|
+
|
153
|
+
Core tap last commit: 28 minutes ago
|
154
|
+
|
155
|
+
HOMEBREW_PREFIX: /usr/local
|
156
|
+
|
157
|
+
CPU: 16-core 64-bit skylake
|
158
|
+
|
159
|
+
Homebrew Ruby: 2.6.3 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3/bin/ruby
|
160
|
+
|
161
|
+
Clang: 11.0 build 1100
|
162
|
+
|
163
|
+
Git: 2.21.0 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
|
164
|
+
|
165
|
+
Curl: 7.54.0 => /usr/bin/curl
|
166
|
+
|
167
|
+
macOS: 10.14.6-x86_64
|
168
|
+
|
169
|
+
CLT: N/A
|
170
|
+
|
171
|
+
Xcode: 11.2.1
|
172
|
+
|
173
|
+
XQuartz: 2.7.11 => /opt/X11
|
174
|
+
|
175
|
+
```
|