質問編集履歴

22

タイトル修正

2022/12/06 11:19

投稿

fuku-chann
fuku-chann

スコア82

test CHANGED
@@ -1 +1 @@
1
- pyenvからpythonをアップデートしようとするとエラーになりインストールできない
1
+ pyenvからpythonをアップデートするとエラーにな
test CHANGED
File without changes

21

軽微な修正です

2022/12/04 00:16

投稿

fuku-chann
fuku-chann

スコア82

test CHANGED
File without changes
test CHANGED
@@ -223,7 +223,7 @@
223
223
  #export PS1="%n %W %D{%T} %F{green}"
224
224
  CC=/path/to/Library/Developer/CommandLineTools/usr/bin
225
225
  export PYENV_ROOT="$HOME/.pyenv"
226
- export PATH="$PYENV_ROOT/bin:/Users/masa/bin:$PATH"
226
+ export PATH="$PYENV_ROOT/bin:/Users/mxxx/bin:$PATH"
227
227
  eval "$(pyenv init -)"
228
228
  ```
229
229
  まだ同様のエラーが出るので違ったようですね。
@@ -234,6 +234,6 @@
234
234
  #export PS1="%n %W %D{%T} %F{green}"
235
235
  CC=Library/Developer/CommandLineTools/usr/bin
236
236
  export PYENV_ROOT="$HOME/.pyenv"
237
- export PATH="$PYENV_ROOT/bin:/Users/masa/bin:$PATH"
237
+ export PATH="$PYENV_ROOT/bin:/Users/mxxx/bin:$PATH"
238
- eval "$(pyenv init -)"
238
+ eval "$(pyenv init -)"
239
- ```
239
+ ```

20

zshrcを修正

2022/12/04 00:11

投稿

fuku-chann
fuku-chann

スコア82

test CHANGED
File without changes
test CHANGED
@@ -227,3 +227,13 @@
227
227
  eval "$(pyenv init -)"
228
228
  ```
229
229
  まだ同様のエラーが出るので違ったようですね。
230
+
231
+ 元に戻しました。
232
+ ```zsh
233
+ export PS1="%W %T %d %F{green}"
234
+ #export PS1="%n %W %D{%T} %F{green}"
235
+ CC=Library/Developer/CommandLineTools/usr/bin
236
+ export PYENV_ROOT="$HOME/.pyenv"
237
+ export PATH="$PYENV_ROOT/bin:/Users/masa/bin:$PATH"
238
+ eval "$(pyenv init -)"
239
+ ```

19

zshrcを修正して、pyenv install 3.8.0を再度実行しました。

2022/12/04 00:00

投稿

fuku-chann
fuku-chann

スコア82

test CHANGED
File without changes
test CHANGED
@@ -207,33 +207,6 @@
207
207
  CC=/Library/Developer/CommandLineTools/usr/bin
208
208
  ```
209
209
  まだCコンパイラエラーが治りません。
210
- ```zsh
211
- 12/04/22 8:07 /Users/mxxx pyenv install 3.8.0
212
- python-build: use openssl@1.1 from homebrew
213
- python-build: use readline from homebrew
214
- Downloading Python-3.8.0.tar.xz...
215
- -> https://www.python.org/ftp/python/3.8.0/Python-3.8.0.tar.xz
216
- Installing Python-3.8.0...
217
- python-build: use readline from homebrew
218
- python-build: use zlib from xcode sdk
219
-
220
- BUILD FAILED (OS X 12.3.1 using python-build 1.2.19-6-gbdfed51d)
221
-
222
- Inspect or clean up the working tree at /var/folders/nb/1sq4przx0918q4rzkxnn4mq40000gn/T/python-build.20221204080822.15971
223
- Results logged to /var/folders/nb/1sq4przx0918q4rzkxnn4mq40000gn/T/python-build.20221204080822.15971.log
224
-
225
- Last 10 log lines:
226
- checking for python3... python3
227
- checking for --enable-universalsdk... no
228
- checking for --with-universal-archs... no
229
- checking MACHDEP... "darwin"
230
- checking for gcc... clang
231
- checking whether the C compiler works... no
232
- configure: error: in `/var/folders/nb/1sq4przx0918q4rzkxnn4mq40000gn/T/python-build.20221204080822.15971/Python-3.8.0':
233
- configure: error: C compiler cannot create executables
234
- See `config.log' for more details
235
- make: *** No targets specified and no makefile found. Stop.
236
- ```
237
210
 
238
211
  こういうことですかね?
239
212
  ```zsh
@@ -244,3 +217,13 @@
244
217
  eval "$(pyenv init -)"
245
218
  CC=/path/to/Library/Developer/CommandLineTools/usr/bin
246
219
  ```
220
+ 上記でも同様のエラーが出たので、.zshrcのCC=/path/to/Library/Developer/CommandLineTools/usr/binの優先順位を上げました。
221
+ ```zsh
222
+ export PS1="%W %T %d %F{green}"
223
+ #export PS1="%n %W %D{%T} %F{green}"
224
+ CC=/path/to/Library/Developer/CommandLineTools/usr/bin
225
+ export PYENV_ROOT="$HOME/.pyenv"
226
+ export PATH="$PYENV_ROOT/bin:/Users/masa/bin:$PATH"
227
+ eval "$(pyenv init -)"
228
+ ```
229
+ まだ同様のエラーが出るので違ったようですね。

18

zshrc修正しました。

2022/12/03 23:46

投稿

fuku-chann
fuku-chann

スコア82

test CHANGED
File without changes
test CHANGED
@@ -234,3 +234,13 @@
234
234
  See `config.log' for more details
235
235
  make: *** No targets specified and no makefile found. Stop.
236
236
  ```
237
+
238
+ こういうことですかね?
239
+ ```zsh
240
+ export PS1="%W %T %d %F{green}"
241
+ #export PS1="%n %W %D{%T} %F{green}"
242
+ export PYENV_ROOT="$HOME/.pyenv"
243
+ export PATH="$PYENV_ROOT/bin:/Users/mxxx/bin:$PATH"
244
+ eval "$(pyenv init -)"
245
+ CC=/path/to/Library/Developer/CommandLineTools/usr/bin
246
+ ```

17

pyenv install 3.8.0を再度実施

2022/12/03 23:10

投稿

fuku-chann
fuku-chann

スコア82

test CHANGED
File without changes
test CHANGED
@@ -206,3 +206,31 @@
206
206
  eval "$(pyenv init -)"
207
207
  CC=/Library/Developer/CommandLineTools/usr/bin
208
208
  ```
209
+ まだCコンパイラエラーが治りません。
210
+ ```zsh
211
+ 12/04/22 8:07 /Users/mxxx pyenv install 3.8.0
212
+ python-build: use openssl@1.1 from homebrew
213
+ python-build: use readline from homebrew
214
+ Downloading Python-3.8.0.tar.xz...
215
+ -> https://www.python.org/ftp/python/3.8.0/Python-3.8.0.tar.xz
216
+ Installing Python-3.8.0...
217
+ python-build: use readline from homebrew
218
+ python-build: use zlib from xcode sdk
219
+
220
+ BUILD FAILED (OS X 12.3.1 using python-build 1.2.19-6-gbdfed51d)
221
+
222
+ Inspect or clean up the working tree at /var/folders/nb/1sq4przx0918q4rzkxnn4mq40000gn/T/python-build.20221204080822.15971
223
+ Results logged to /var/folders/nb/1sq4przx0918q4rzkxnn4mq40000gn/T/python-build.20221204080822.15971.log
224
+
225
+ Last 10 log lines:
226
+ checking for python3... python3
227
+ checking for --enable-universalsdk... no
228
+ checking for --with-universal-archs... no
229
+ checking MACHDEP... "darwin"
230
+ checking for gcc... clang
231
+ checking whether the C compiler works... no
232
+ configure: error: in `/var/folders/nb/1sq4przx0918q4rzkxnn4mq40000gn/T/python-build.20221204080822.15971/Python-3.8.0':
233
+ configure: error: C compiler cannot create executables
234
+ See `config.log' for more details
235
+ make: *** No targets specified and no makefile found. Stop.
236
+ ```

16

zshrcにCC=/Library/Developer/CommandLineTools/usr/binを追記

2022/12/03 23:07

投稿

fuku-chann
fuku-chann

スコア82

test CHANGED
File without changes
test CHANGED
@@ -195,3 +195,14 @@
195
195
  Thread model: posix
196
196
  InstalledDir: /Library/Developer/CommandLineTools/usr/bin
197
197
  ```
198
+
199
+ zshecにCC=/Library/Developer/CommandLineTools/usr/binを追加しました。
200
+
201
+ ```zsh
202
+ export PS1="%W %T %d %F{green}"
203
+ #export PS1="%n %W %D{%T} %F{green}"
204
+ export PYENV_ROOT="$HOME/.pyenv"
205
+ export PATH="$PYENV_ROOT/bin:/Users/mxxx/bin:$PATH"
206
+ eval "$(pyenv init -)"
207
+ CC=/Library/Developer/CommandLineTools/usr/bin
208
+ ```

15

gccのversionを追記します。

2022/12/03 22:20

投稿

fuku-chann
fuku-chann

スコア82

test CHANGED
File without changes
test CHANGED
@@ -186,3 +186,12 @@
186
186
  See `config.log' for more details
187
187
  make: *** No targets specified and no makefile found. Stop.
188
188
  ```
189
+
190
+ ```zsh
191
+ 12/04/22 7:18 /Users/mxxx/.pyenv gcc --version
192
+ Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
193
+ Apple clang version 11.0.0 (clang-1100.0.33.8)
194
+ Target: x86_64-apple-darwin21.4.0
195
+ Thread model: posix
196
+ InstalledDir: /Library/Developer/CommandLineTools/usr/bin
197
+ ```

14

軽微な修正です。

2022/12/03 13:25

投稿

fuku-chann
fuku-chann

スコア82

test CHANGED
File without changes
test CHANGED
@@ -116,13 +116,13 @@
116
116
  export PS1="%W %T %d %F{green}"
117
117
  #export PS1="%n %W %D{%T} %F{green}"
118
118
  export PYENV_ROOT="$HOME/.pyenv"
119
- export PATH="$PYENV_ROOT/bin:/Users/masa/bin:$PATH"
119
+ export PATH="$PYENV_ROOT/bin:/Users/mxxx/bin:$PATH"
120
120
  eval "$(pyenv init -)"
121
121
  CC=/path/to/gcc pyenv install version
122
122
  ```
123
123
 
124
124
  ```zsh
125
- 12/03/22 21:50 /Users/masa pyenv install 3.8.0
125
+ 12/03/22 21:50 /Users/mxxx pyenv install 3.8.0
126
126
  python-build: use openssl@1.1 from homebrew
127
127
  python-build: use readline from homebrew
128
128
  Downloading Python-3.8.0.tar.xz...
@@ -155,12 +155,12 @@
155
155
  #export PS1="%n %W %D{%T} %F{green}"
156
156
  CC=/path/to/gcc pyenv install version
157
157
  export PYENV_ROOT="$HOME/.pyenv"
158
- export PATH="$PYENV_ROOT/bin:/Users/masa/bin:$PATH"
158
+ export PATH="$PYENV_ROOT/bin:/Users/mxxx/bin:$PATH"
159
159
  eval "$(pyenv init -)"
160
160
  ```
161
161
 
162
162
  ```zsh
163
- 12/03/22 22:01 /Users/masa pyenv install 3.8.0
163
+ 12/03/22 22:01 /Users/mxxx pyenv install 3.8.0
164
164
  python-build: use openssl@1.1 from homebrew
165
165
  python-build: use readline from homebrew
166
166
  Downloading Python-3.8.0.tar.xz...

13

CC=/path/to/gcc pyenv install versionの優先順位を変更してみました。

2022/12/03 13:10

投稿

fuku-chann
fuku-chann

スコア82

test CHANGED
File without changes
test CHANGED
@@ -148,3 +148,41 @@
148
148
  See `config.log' for more details
149
149
  make: *** No targets specified and no makefile found. Stop.
150
150
  ```
151
+
152
+ CC=/path/to/gcc pyenv install versionの優先順位を上げてみましたが、依然としてCコンパイルエラーが出ています。
153
+ ```zsh
154
+ export PS1="%W %T %d %F{green}"
155
+ #export PS1="%n %W %D{%T} %F{green}"
156
+ CC=/path/to/gcc pyenv install version
157
+ export PYENV_ROOT="$HOME/.pyenv"
158
+ export PATH="$PYENV_ROOT/bin:/Users/masa/bin:$PATH"
159
+ eval "$(pyenv init -)"
160
+ ```
161
+
162
+ ```zsh
163
+ 12/03/22 22:01 /Users/masa pyenv install 3.8.0
164
+ python-build: use openssl@1.1 from homebrew
165
+ python-build: use readline from homebrew
166
+ Downloading Python-3.8.0.tar.xz...
167
+ -> https://www.python.org/ftp/python/3.8.0/Python-3.8.0.tar.xz
168
+ Installing Python-3.8.0...
169
+ python-build: use readline from homebrew
170
+ python-build: use zlib from xcode sdk
171
+
172
+ BUILD FAILED (OS X 12.3.1 using python-build 1.2.19-6-gbdfed51d)
173
+
174
+ Inspect or clean up the working tree at /var/folders/nb/1sq4przx0918q4rzkxnn4mq40000gn/T/python-build.20221203220752.5154
175
+ Results logged to /var/folders/nb/1sq4przx0918q4rzkxnn4mq40000gn/T/python-build.20221203220752.5154.log
176
+
177
+ Last 10 log lines:
178
+ checking for python3... python3
179
+ checking for --enable-universalsdk... no
180
+ checking for --with-universal-archs... no
181
+ checking MACHDEP... "darwin"
182
+ checking for gcc... clang
183
+ checking whether the C compiler works... no
184
+ configure: error: in `/var/folders/nb/1sq4przx0918q4rzkxnn4mq40000gn/T/python-build.20221203220752.5154/Python-3.8.0':
185
+ configure: error: C compiler cannot create executables
186
+ See `config.log' for more details
187
+ make: *** No targets specified and no makefile found. Stop.
188
+ ```

12

CC=/path/to/gcc pyenv install version追加後のpyenv install 3.8.0の結果

2022/12/03 13:03

投稿

fuku-chann
fuku-chann

スコア82

test CHANGED
File without changes
test CHANGED
@@ -110,3 +110,41 @@
110
110
  12/03/22 21:50 /Users/mxxx zsh --version
111
111
  zsh 5.8 (x86_64-apple-darwin21.0)
112
112
  ```
113
+
114
+ .zshrcにCC=/path/to/gcc pyenv install versionを追加。
115
+ ```zsh
116
+ export PS1="%W %T %d %F{green}"
117
+ #export PS1="%n %W %D{%T} %F{green}"
118
+ export PYENV_ROOT="$HOME/.pyenv"
119
+ export PATH="$PYENV_ROOT/bin:/Users/masa/bin:$PATH"
120
+ eval "$(pyenv init -)"
121
+ CC=/path/to/gcc pyenv install version
122
+ ```
123
+
124
+ ```zsh
125
+ 12/03/22 21:50 /Users/masa pyenv install 3.8.0
126
+ python-build: use openssl@1.1 from homebrew
127
+ python-build: use readline from homebrew
128
+ Downloading Python-3.8.0.tar.xz...
129
+ -> https://www.python.org/ftp/python/3.8.0/Python-3.8.0.tar.xz
130
+ Installing Python-3.8.0...
131
+ python-build: use readline from homebrew
132
+ python-build: use zlib from xcode sdk
133
+
134
+ BUILD FAILED (OS X 12.3.1 using python-build 1.2.19-6-gbdfed51d)
135
+
136
+ Inspect or clean up the working tree at /var/folders/nb/1sq4przx0918q4rzkxnn4mq40000gn/T/python-build.20221203215920.3707
137
+ Results logged to /var/folders/nb/1sq4przx0918q4rzkxnn4mq40000gn/T/python-build.20221203215920.3707.log
138
+
139
+ Last 10 log lines:
140
+ checking for python3... python3
141
+ checking for --enable-universalsdk... no
142
+ checking for --with-universal-archs... no
143
+ checking MACHDEP... "darwin"
144
+ checking for gcc... clang
145
+ checking whether the C compiler works... no
146
+ configure: error: in `/var/folders/nb/1sq4przx0918q4rzkxnn4mq40000gn/T/python-build.20221203215920.3707/Python-3.8.0':
147
+ configure: error: C compiler cannot create executables
148
+ See `config.log' for more details
149
+ make: *** No targets specified and no makefile found. Stop.
150
+ ```

11

zshのバージョンを追記しました。

2022/12/03 12:52

投稿

fuku-chann
fuku-chann

スコア82

test CHANGED
File without changes
test CHANGED
@@ -4,7 +4,7 @@
4
4
  Python 3.6.0
5
5
  pyenv 1.2.19-6-gbdfed51d
6
6
  Visual Studio Code 1.45.1
7
- Shell Zsh
7
+ Shell Zsh 5.8 (x86_64-apple-darwin21.0)
8
8
 
9
9
  ```zsh
10
10
  12/02/22 17:46 /Users/xxx pyenv global 3.8.0
@@ -105,3 +105,8 @@
105
105
  /usr/local/Homebrew/Library/Homebrew/cmd/doctor.rb:53:in `doctor'
106
106
  /usr/local/Homebrew/Library/Homebrew/brew.rb:119:in `<main>'
107
107
  ```
108
+
109
+ ```zsh
110
+ 12/03/22 21:50 /Users/mxxx zsh --version
111
+ zsh 5.8 (x86_64-apple-darwin21.0)
112
+ ```

10

brew doctorの結果を追記します。

2022/12/03 12:02

投稿

fuku-chann
fuku-chann

スコア82

test CHANGED
File without changes
test CHANGED
@@ -64,3 +64,44 @@
64
64
  12/02/22 21:00 /Users/xxx/xxxx which gcc
65
65
  /usr/bin/gcc
66
66
  ```
67
+
68
+ ```zsh
69
+ 12/03/22 20:57 /Users/mxxx/.pyenv brew doctor
70
+ Please note that these warnings are just used to help the Homebrew maintainers
71
+ with debugging if you file an issue. If everything you use Homebrew for is
72
+ working fine: please don't worry or file an issue; just ignore this. Thanks!
73
+
74
+ Warning: "config" scripts exist outside your system or Homebrew directories.
75
+ `./configure` scripts often look for *-config scripts to determine if
76
+ software packages are installed, and which additional flags to use when
77
+ compiling and linking.
78
+
79
+ Having additional scripts in your path can confuse software installed via
80
+ Homebrew if the config script overrides a system or Homebrew-provided
81
+ script of the same name. We found the following "config" scripts:
82
+ /Users/mxxx/.pyenv/shims/python3.6m-config
83
+ /Users/mxxx/.pyenv/shims/python-config
84
+ /Users/mxxx/.pyenv/shims/python3-config
85
+ /Users/mxxx/.pyenv/shims/python3.6-config
86
+
87
+ Warning: You are using macOS 12.3.
88
+ We do not provide support for this pre-release version.
89
+ You will encounter build failures with some formulae.
90
+ Please create pull requests instead of asking for help on Homebrew's GitHub,
91
+ Discourse, Twitter or IRC. You are responsible for resolving any issues you
92
+ experience while you are running this pre-release version.
93
+
94
+ Error: no implicit conversion of Array into Integer
95
+ /usr/local/Homebrew/Library/Homebrew/os/mac/sdk.rb:36:in `first'
96
+ /usr/local/Homebrew/Library/Homebrew/os/mac/sdk.rb:36:in `each'
97
+ /usr/local/Homebrew/Library/Homebrew/os/mac/sdk.rb:36:in `max'
98
+ /usr/local/Homebrew/Library/Homebrew/os/mac/sdk.rb:36:in `latest_sdk'
99
+ /usr/local/Homebrew/Library/Homebrew/os/mac/sdk.rb:52:in `rescue in sdk_if_applicable'
100
+ /usr/local/Homebrew/Library/Homebrew/os/mac/sdk.rb:45:in `sdk_if_applicable'
101
+ /usr/local/Homebrew/Library/Homebrew/os/mac.rb:113:in `sdk'
102
+ /usr/local/Homebrew/Library/Homebrew/extend/os/mac/diagnostic.rb:408:in `check_if_supported_sdk_available'
103
+ /usr/local/Homebrew/Library/Homebrew/cmd/doctor.rb:61:in `block in doctor'
104
+ /usr/local/Homebrew/Library/Homebrew/cmd/doctor.rb:53:in `each'
105
+ /usr/local/Homebrew/Library/Homebrew/cmd/doctor.rb:53:in `doctor'
106
+ /usr/local/Homebrew/Library/Homebrew/brew.rb:119:in `<main>'
107
+ ```

9

タイトル修正しました。

2022/12/03 11:49

投稿

fuku-chann
fuku-chann

スコア82

test CHANGED
@@ -1 +1 @@
1
- pyenvのリスにあジョンがインストールできない
1
+ pyenvからpythonをアップデーしようとすとエラになりインストールできない
test CHANGED
File without changes

8

pyenvのバージョン追記しました。

2022/12/03 11:48

投稿

fuku-chann
fuku-chann

スコア82

test CHANGED
File without changes
test CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  macOS Monterey 12.3.1
4
4
  Python 3.6.0
5
+ pyenv 1.2.19-6-gbdfed51d
5
6
  Visual Studio Code 1.45.1
6
7
  Shell Zsh
7
8
 

7

バージョン追記

2022/12/02 21:00

投稿

fuku-chann
fuku-chann

スコア82

test CHANGED
File without changes
test CHANGED
@@ -1,4 +1,9 @@
1
1
  pyenvを使ってpythonを3.8.0にバージョンをアップデートしたいのですが、pyenv global 3.8.0を実行しても、3.8.0 not installedになってしまいます。pyenvのバージョンが古いのでアップデートしたいのですが、インストールした方法を忘れてしまい、アップデートの手順がわからない状況です。シェルはzshを使用しています。環境構築に関わる部分のため慎重に操作したいので、皆様のお力をお借りしております。
2
+
3
+ macOS Monterey 12.3.1
4
+ Python 3.6.0
5
+ Visual Studio Code 1.45.1
6
+ Shell Zsh
2
7
 
3
8
  ```zsh
4
9
  12/02/22 17:46 /Users/xxx pyenv global 3.8.0

6

which gccを追加しました。

2022/12/02 19:02

投稿

fuku-chann
fuku-chann

スコア82

test CHANGED
File without changes
test CHANGED
@@ -1,4 +1,4 @@
1
- pyenvを使ってpythonを3.8.0にバージョンをアップデートしたいのですが、pyenv global 3.8.0を実行しても、3.8.0 not installedになってしまいます。pyenvのバージョンが古いのでアップデートしたいのですが、インストールした方法を忘れてしまい、アップデートの手順がわからない状況です。環境構築に関わる部分のため慎重に操作したいので、解決方法をご存知られまたらご教示願いいたします。
1
+ pyenvを使ってpythonを3.8.0にバージョンをアップデートしたいのですが、pyenv global 3.8.0を実行しても、3.8.0 not installedになってしまいます。pyenvのバージョンが古いのでアップデートしたいのですが、インストールした方法を忘れてしまい、アップデートの手順がわからない状況です。シェルはzshを使用しています。環境構築に関わる部分のため慎重に操作したいので、皆様のお力をお借ります。
2
2
 
3
3
  ```zsh
4
4
  12/02/22 17:46 /Users/xxx pyenv global 3.8.0
@@ -53,3 +53,8 @@
53
53
  Homebrew/homebrew-core (git revision 9cbbe; last commit 2020-10-08)
54
54
  Homebrew/homebrew-cask (git revision f83515; last commit 2020-10-09)
55
55
  ```
56
+
57
+ ```zsh
58
+ 12/02/22 21:00 /Users/xxx/xxxx which gcc
59
+ /usr/bin/gcc
60
+ ```

5

homebrewの情報を追記します

2022/12/02 11:26

投稿

fuku-chann
fuku-chann

スコア82

test CHANGED
File without changes
test CHANGED
@@ -46,3 +46,10 @@
46
46
  12/02/22 19:37 /Users/xxx/xxxx pyenv --version
47
47
  pyenv 1.2.19-6-gbdfed51d
48
48
  ```
49
+
50
+ ```zsh
51
+ 12/02/22 19:38 /Users/xxx/xxxx brew -v
52
+ Homebrew 2.5.4
53
+ Homebrew/homebrew-core (git revision 9cbbe; last commit 2020-10-08)
54
+ Homebrew/homebrew-cask (git revision f83515; last commit 2020-10-09)
55
+ ```

4

問題がアップデートされました。

2022/12/02 11:14

投稿

fuku-chann
fuku-chann

スコア82

test CHANGED
File without changes
test CHANGED
@@ -1,437 +1,4 @@
1
- pyenvを使ってpythonを3.8.0にバージョンをアップデートしたいのですが、下記のリストにあるのに3.8.0 not installedになってしまいます。環境構築に関わる部分のため慎重に操作したいので、解決方法をご存知の方おられましたらご教示お願いいたします。
2
-
3
-
4
- ```zsh
5
- 12/02/22 17:46 /Users/xxx pyenv install --list
6
- Available versions:
7
- 2.1.3
8
- 2.2.3
9
- 2.3.7
10
- 2.4.0
11
- 2.4.1
12
- 2.4.2
13
- 2.4.3
14
- 2.4.4
15
- 2.4.5
16
- 2.4.6
17
- 2.5.0
18
- 2.5.1
19
- 2.5.2
20
- 2.5.3
21
- 2.5.4
22
- 2.5.5
23
- 2.5.6
24
- 2.6.6
25
- 2.6.7
26
- 2.6.8
27
- 2.6.9
28
- 2.7.0
29
- 2.7-dev
30
- 2.7.1
31
- 2.7.2
32
- 2.7.3
33
- 2.7.4
34
- 2.7.5
35
- 2.7.6
36
- 2.7.7
37
- 2.7.8
38
- 2.7.9
39
- 2.7.10
40
- 2.7.11
41
- 2.7.12
42
- 2.7.13
43
- 2.7.14
44
- 2.7.15
45
- 2.7.16
46
- 2.7.17
47
- 2.7.18
48
- 3.0.1
49
- 3.1.0
50
- 3.1.1
51
- 3.1.2
52
- 3.1.3
53
- 3.1.4
54
- 3.1.5
55
- 3.2.0
56
- 3.2.1
57
- 3.2.2
58
- 3.2.3
59
- 3.2.4
60
- 3.2.5
61
- 3.2.6
62
- 3.3.0
63
- 3.3.1
64
- 3.3.2
65
- 3.3.3
66
- 3.3.4
67
- 3.3.5
68
- 3.3.6
69
- 3.3.7
70
- 3.4.0
71
- 3.4-dev
72
- 3.4.1
73
- 3.4.2
74
- 3.4.3
75
- 3.4.4
76
- 3.4.5
77
- 3.4.6
78
- 3.4.7
79
- 3.4.8
80
- 3.4.9
81
- 3.4.10
82
- 3.5.0
83
- 3.5-dev
84
- 3.5.1
85
- 3.5.2
86
- 3.5.3
87
- 3.5.4
88
- 3.5.5
89
- 3.5.6
90
- 3.5.7
91
- 3.5.8
92
- 3.5.9
93
- 3.6.0
94
- 3.6-dev
95
- 3.6.1
96
- 3.6.2
97
- 3.6.3
98
- 3.6.4
99
- 3.6.5
100
- 3.6.6
101
- 3.6.7
102
- 3.6.8
103
- 3.6.9
104
- 3.6.10
105
- 3.6.11
106
- 3.7.0
107
- 3.7-dev
108
- 3.7.1
109
- 3.7.2
110
- 3.7.3
111
- 3.7.4
112
- 3.7.5
113
- 3.7.6
114
- 3.7.7
115
- 3.7.8
116
- 3.8.0
117
- 3.8-dev
118
- 3.8.1
119
- 3.8.2
120
- 3.8.3
121
- 3.8.4
122
- 3.9.0b4
123
- 3.9-dev
124
- 3.10-dev
125
- activepython-2.7.14
126
- activepython-3.5.4
127
- activepython-3.6.0
128
- anaconda-1.4.0
129
- anaconda-1.5.0
130
- anaconda-1.5.1
131
- anaconda-1.6.0
132
- anaconda-1.6.1
133
- anaconda-1.7.0
134
- anaconda-1.8.0
135
- anaconda-1.9.0
136
- anaconda-1.9.1
137
- anaconda-1.9.2
138
- anaconda-2.0.0
139
- anaconda-2.0.1
140
- anaconda-2.1.0
141
- anaconda-2.2.0
142
- anaconda-2.3.0
143
- anaconda-2.4.0
144
- anaconda-4.0.0
145
- anaconda2-2.4.0
146
- anaconda2-2.4.1
147
- anaconda2-2.5.0
148
- anaconda2-4.0.0
149
- anaconda2-4.1.0
150
- anaconda2-4.1.1
151
- anaconda2-4.2.0
152
- anaconda2-4.3.0
153
- anaconda2-4.3.1
154
- anaconda2-4.4.0
155
- anaconda2-5.0.0
156
- anaconda2-5.0.1
157
- anaconda2-5.1.0
158
- anaconda2-5.2.0
159
- anaconda2-5.3.0
160
- anaconda2-5.3.1
161
- anaconda2-2018.12
162
- anaconda2-2019.03
163
- anaconda2-2019.07
164
- anaconda3-2.0.0
165
- anaconda3-2.0.1
166
- anaconda3-2.1.0
167
- anaconda3-2.2.0
168
- anaconda3-2.3.0
169
- anaconda3-2.4.0
170
- anaconda3-2.4.1
171
- anaconda3-2.5.0
172
- anaconda3-4.0.0
173
- anaconda3-4.1.0
174
- anaconda3-4.1.1
175
- anaconda3-4.2.0
176
- anaconda3-4.3.0
177
- anaconda3-4.3.1
178
- anaconda3-4.4.0
179
- anaconda3-5.0.0
180
- anaconda3-5.0.1
181
- anaconda3-5.1.0
182
- anaconda3-5.2.0
183
- anaconda3-5.3.0
184
- anaconda3-5.3.1
185
- anaconda3-2018.12
186
- anaconda3-2019.03
187
- anaconda3-2019.07
188
- anaconda3-2019.10
189
- anaconda3-2020.02
190
- ironpython-dev
191
- ironpython-2.7.4
192
- ironpython-2.7.5
193
- ironpython-2.7.6.3
194
- ironpython-2.7.7
195
- jython-dev
196
- jython-2.5.0
197
- jython-2.5-dev
198
- jython-2.5.1
199
- jython-2.5.2
200
- jython-2.5.3
201
- jython-2.5.4-rc1
202
- jython-2.7.0
203
- jython-2.7.1
204
- micropython-dev
205
- micropython-1.9.3
206
- micropython-1.9.4
207
- micropython-1.10
208
- micropython-1.11
209
- micropython-1.12
210
- miniconda-latest
211
- miniconda-2.2.2
212
- miniconda-3.0.0
213
- miniconda-3.0.4
214
- miniconda-3.0.5
215
- miniconda-3.3.0
216
- miniconda-3.4.2
217
- miniconda-3.7.0
218
- miniconda-3.8.3
219
- miniconda-3.9.1
220
- miniconda-3.10.1
221
- miniconda-3.16.0
222
- miniconda-3.18.3
223
- miniconda2-latest
224
- miniconda2-3.18.3
225
- miniconda2-3.19.0
226
- miniconda2-4.0.5
227
- miniconda2-4.1.11
228
- miniconda2-4.3.14
229
- miniconda2-4.3.21
230
- miniconda2-4.3.27
231
- miniconda2-4.3.30
232
- miniconda2-4.3.31
233
- miniconda2-4.4.10
234
- miniconda2-4.5.1
235
- miniconda2-4.5.4
236
- miniconda2-4.5.11
237
- miniconda2-4.5.12
238
- miniconda2-4.6.14
239
- miniconda2-4.7.10
240
- miniconda2-4.7.12
241
- miniconda3-latest
242
- miniconda3-2.2.2
243
- miniconda3-3.0.0
244
- miniconda3-3.0.4
245
- miniconda3-3.0.5
246
- miniconda3-3.3.0
247
- miniconda3-3.4.2
248
- miniconda3-3.7.0
249
- miniconda3-3.8.3
250
- miniconda3-3.9.1
251
- miniconda3-3.10.1
252
- miniconda3-3.16.0
253
- miniconda3-3.18.3
254
- miniconda3-3.19.0
255
- miniconda3-4.0.5
256
- miniconda3-4.1.11
257
- miniconda3-4.2.12
258
- miniconda3-4.3.11
259
- miniconda3-4.3.14
260
- miniconda3-4.3.21
261
- miniconda3-4.3.27
262
- miniconda3-4.3.30
263
- miniconda3-4.3.31
264
- miniconda3-4.4.10
265
- miniconda3-4.5.1
266
- miniconda3-4.5.4
267
- miniconda3-4.5.11
268
- miniconda3-4.5.12
269
- miniconda3-4.6.14
270
- miniconda3-4.7.10
271
- miniconda3-4.7.12
272
- pypy-c-jit-latest
273
- pypy-c-nojit-latest
274
- pypy-dev
275
- pypy-stm-2.3
276
- pypy-stm-2.5.1
277
- pypy-1.5-src
278
- pypy-1.5
279
- pypy-1.6
280
- pypy-1.7
281
- pypy-1.8
282
- pypy-1.9
283
- pypy-2.0-src
284
- pypy-2.0
285
- pypy-2.0.1-src
286
- pypy-2.0.1
287
- pypy-2.0.2-src
288
- pypy-2.0.2
289
- pypy-2.1-src
290
- pypy-2.1
291
- pypy-2.2-src
292
- pypy-2.2
293
- pypy-2.2.1-src
294
- pypy-2.2.1
295
- pypy-2.3-src
296
- pypy-2.3
297
- pypy-2.3.1-src
298
- pypy-2.3.1
299
- pypy-2.4.0-src
300
- pypy-2.4.0
301
- pypy-2.5.0-src
302
- pypy-2.5.0
303
- pypy-2.5.1-src
304
- pypy-2.5.1
305
- pypy-2.6.0-src
306
- pypy-2.6.0
307
- pypy-2.6.1-src
308
- pypy-2.6.1
309
- pypy-4.0.0-src
310
- pypy-4.0.0
311
- pypy-4.0.1-src
312
- pypy-4.0.1
313
- pypy-5.0.0-src
314
- pypy-5.0.0
315
- pypy-5.0.1-src
316
- pypy-5.0.1
317
- pypy-5.1-src
318
- pypy-5.1
319
- pypy-5.1.1-src
320
- pypy-5.1.1
321
- pypy-5.3-src
322
- pypy-5.3
323
- pypy-5.3.1-src
324
- pypy-5.3.1
325
- pypy-5.4-src
326
- pypy-5.4
327
- pypy-5.4.1-src
328
- pypy-5.4.1
329
- pypy-5.6.0-src
330
- pypy-5.6.0
331
- pypy-5.7.0-src
332
- pypy-5.7.0
333
- pypy-5.7.1-src
334
- pypy-5.7.1
335
- pypy2-5.3-src
336
- pypy2-5.3
337
- pypy2-5.3.1-src
338
- pypy2-5.3.1
339
- pypy2-5.4-src
340
- pypy2-5.4
341
- pypy2-5.4.1-src
342
- pypy2-5.4.1
343
- pypy2-5.6.0-src
344
- pypy2-5.6.0
345
- pypy2-5.7.0-src
346
- pypy2-5.7.0
347
- pypy2-5.7.1-src
348
- pypy2-5.7.1
349
- pypy2.7-5.8.0-src
350
- pypy2.7-5.8.0
351
- pypy2.7-5.9.0-src
352
- pypy2.7-5.9.0
353
- pypy2.7-5.10.0-src
354
- pypy2.7-5.10.0
355
- pypy2.7-6.0.0-src
356
- pypy2.7-6.0.0
357
- pypy2.7-7.0.0-src
358
- pypy2.7-7.0.0
359
- pypy2.7-7.1.0-src
360
- pypy2.7-7.1.0
361
- pypy2.7-7.1.1-src
362
- pypy2.7-7.1.1
363
- pypy2.7-7.2.0-src
364
- pypy2.7-7.2.0
365
- pypy2.7-7.3.0-src
366
- pypy2.7-7.3.0
367
- pypy2.7-7.3.1-src
368
- pypy2.7-7.3.1
369
- pypy3-dev
370
- pypy3-2.3.1-src
371
- pypy3-2.3.1
372
- pypy3-2.4.0-src
373
- pypy3-2.4.0
374
- pypy3.3-5.2-alpha1-src
375
- pypy3.3-5.2-alpha1
376
- pypy3.3-5.5-alpha-src
377
- pypy3.3-5.5-alpha
378
- pypy3.5-c-jit-latest
379
- pypy3.5-5.7-beta-src
380
- pypy3.5-5.7-beta
381
- pypy3.5-5.7.1-beta-src
382
- pypy3.5-5.7.1-beta
383
- pypy3.5-5.8.0-src
384
- pypy3.5-5.8.0
385
- pypy3.5-5.9.0-src
386
- pypy3.5-5.9.0
387
- pypy3.5-5.10.0-src
388
- pypy3.5-5.10.0
389
- pypy3.5-5.10.1-src
390
- pypy3.5-5.10.1
391
- pypy3.5-6.0.0-src
392
- pypy3.5-6.0.0
393
- pypy3.5-7.0.0-src
394
- pypy3.5-7.0.0
395
- pypy3.6-7.0.0-src
396
- pypy3.6-7.0.0
397
- pypy3.6-7.1.0-src
398
- pypy3.6-7.1.0
399
- pypy3.6-7.1.1-src
400
- pypy3.6-7.1.1
401
- pypy3.6-7.2.0-src
402
- pypy3.6-7.2.0
403
- pypy3.6-7.3.0-src
404
- pypy3.6-7.3.0
405
- pypy3.6-7.3.1-src
406
- pypy3.6-7.3.1
407
- pyston-0.5.1
408
- pyston-0.6.0
409
- pyston-0.6.1
410
- stackless-dev
411
- stackless-2.7-dev
412
- stackless-2.7.2
413
- stackless-2.7.3
414
- stackless-2.7.4
415
- stackless-2.7.5
416
- stackless-2.7.6
417
- stackless-2.7.7
418
- stackless-2.7.8
419
- stackless-2.7.9
420
- stackless-2.7.10
421
- stackless-2.7.11
422
- stackless-2.7.12
423
- stackless-2.7.14
424
- stackless-3.2.2
425
- stackless-3.2.5
426
- stackless-3.3.5
427
- stackless-3.3.7
428
- stackless-3.4-dev
429
- stackless-3.4.1
430
- stackless-3.4.2
431
- stackless-3.4.7
432
- stackless-3.5.4
433
- stackless-3.7.5
434
- ```
1
+ pyenvを使ってpythonを3.8.0にバージョンをアップデートしたいのですが、pyenv global 3.8.0を実行しても、3.8.0 not installedになってしまいます。pyenvのバージョンが古いのでアップデートしたいのですが、インストールした方法を忘れてしまい、アップデートの手順がわからない状況です。環境構築に関わる部分のため慎重に操作したいので、解決方法をご存知の方おられましたらご教示お願いいたします。
435
2
 
436
3
  ```zsh
437
4
  12/02/22 17:46 /Users/xxx pyenv global 3.8.0
@@ -474,3 +41,8 @@
474
41
  12/02/22 19:37 /Users/xxx/xxxx brew uninstall pyenv
475
42
  Error: No installed keg or cask with the name "pyenv"
476
43
  ```
44
+
45
+ ```zsh
46
+ 12/02/22 19:37 /Users/xxx/xxxx pyenv --version
47
+ pyenv 1.2.19-6-gbdfed51d
48
+ ```

3

pyenvアンインストール時の結果

2022/12/02 10:43

投稿

fuku-chann
fuku-chann

スコア82

test CHANGED
File without changes
test CHANGED
@@ -469,8 +469,8 @@
469
469
  ```
470
470
 
471
471
  ```zsh
472
- 12/02/22 19:36 /Users/masa/dys-mercari brew uninstall pyenv-virtualenv
472
+ 12/02/22 19:36 /Users/xxx/xxxx brew uninstall pyenv-virtualenv
473
473
  Error: No installed keg or cask with the name "pyenv-virtualenv"
474
- 12/02/22 19:37 /Users/masa/dys-mercari brew uninstall pyenv
474
+ 12/02/22 19:37 /Users/xxx/xxxx brew uninstall pyenv
475
475
  Error: No installed keg or cask with the name "pyenv"
476
476
  ```

2

pyenvアンインストール時の結果を追記

2022/12/02 10:41

投稿

fuku-chann
fuku-chann

スコア82

test CHANGED
File without changes
test CHANGED
@@ -467,3 +467,10 @@
467
467
  12/02/22 18:40 /Users/xxx python -V
468
468
  Python 3.6.0
469
469
  ```
470
+
471
+ ```zsh
472
+ 12/02/22 19:36 /Users/masa/dys-mercari brew uninstall pyenv-virtualenv
473
+ Error: No installed keg or cask with the name "pyenv-virtualenv"
474
+ 12/02/22 19:37 /Users/masa/dys-mercari brew uninstall pyenv
475
+ Error: No installed keg or cask with the name "pyenv"
476
+ ```

1

pyenc installの結果を追加

2022/12/02 09:42

投稿

fuku-chann
fuku-chann

スコア82

test CHANGED
File without changes
test CHANGED
@@ -437,3 +437,33 @@
437
437
  12/02/22 17:46 /Users/xxx pyenv global 3.8.0
438
438
  pyenv: version `3.8.0' not installed
439
439
  ```
440
+
441
+ ```zsh
442
+ 12/02/22 18:39 /Users/xxx pyenv install 3.8.0
443
+ python-build: use openssl@1.1 from homebrew
444
+ python-build: use readline from homebrew
445
+ Downloading Python-3.8.0.tar.xz...
446
+ -> https://www.python.org/ftp/python/3.8.0/Python-3.8.0.tar.xz
447
+ Installing Python-3.8.0...
448
+ python-build: use readline from homebrew
449
+ python-build: use zlib from xcode sdk
450
+
451
+ BUILD FAILED (OS X 12.3.1 using python-build 1.2.19-6-gbdfed51d)
452
+
453
+ Inspect or clean up the working tree at /var/folders/nb/1sq4przx0918q4rzkxnn4mq40000gn/T/python-build.20221202184018.25600
454
+ Results logged to /var/folders/nb/1sq4przx0918q4rzkxnn4mq40000gn/T/python-build.20221202184018.25600.log
455
+
456
+ Last 10 log lines:
457
+ checking for python3... python3
458
+ checking for --enable-universalsdk... no
459
+ checking for --with-universal-archs... no
460
+ checking MACHDEP... "darwin"
461
+ checking for gcc... clang
462
+ checking whether the C compiler works... no
463
+ configure: error: in `/var/folders/nb/1sq4przx0918q4rzkxnn4mq40000gn/T/python-build.20221202184018.25600/Python-3.8.0':
464
+ configure: error: C compiler cannot create executables
465
+ See `config.log' for more details
466
+ make: *** No targets specified and no makefile found. Stop.
467
+ 12/02/22 18:40 /Users/xxx python -V
468
+ Python 3.6.0
469
+ ```