質問編集履歴

5

経緯のところにソースを追記しました。

2023/03/14 02:13

投稿

euicnvhf202105
euicnvhf202105

スコア126

test CHANGED
File without changes
test CHANGED
@@ -25,6 +25,13 @@
25
25
  File "/Users/exampleuser/Library/Python/3.8/bin/aws", line 19, in <module>
26
26
  import awscli.clidriver
27
27
  ModuleNotFoundError: No module named 'awscli'
28
+ ```
29
+
30
+ awsコマンドの所在を確認してみました
31
+
32
+ ```
33
+ % which aws
34
+ /Users/exampleuser/Library/Python/3.8/bin/aws
28
35
  ```
29
36
 
30
37
  pythonのバージョンを確認してみました。

4

追記しました

2023/03/14 02:05

投稿

euicnvhf202105
euicnvhf202105

スコア126

test CHANGED
File without changes
test CHANGED
@@ -1,6 +1,7 @@
1
1
  ### 実現したいこと
2
2
 
3
+ MacOSに設定しているpython環境を確認して
3
- python環境を確認してaws cliを再インストールしたい
4
+ aws cliをMacOSに再インストールしたい
4
5
  /Users/exampleuser/Library/Python/3.8/bin/aws
5
6
  ↑を綺麗にアンインストールしたい
6
7
 

3

間違いの情報を削除しました。

2023/03/14 01:59

投稿

euicnvhf202105
euicnvhf202105

スコア126

test CHANGED
File without changes
test CHANGED
@@ -88,5 +88,4 @@
88
88
  おそらくIntel MacからLibraryディレクトリをまるっとコピーして
89
89
  現在のM1Macに移動したような気がします。
90
90
 
91
- Intel Macではpipでインストールしたような微かな記憶があります。
92
91
 

2

情報の追記をしました。

2023/03/14 01:51

投稿

euicnvhf202105
euicnvhf202105

スコア126

test CHANGED
File without changes
test CHANGED
@@ -52,6 +52,25 @@
52
52
  pip listを実行したところawsもpythonも出てきませんでした。
53
53
  brew listを実行したところpyenvとpython@3.10が出てきました。
54
54
 
55
+ ### ソース
56
+
57
+ ```
58
+ % cat /Users/exampleuser/Library/Python/3.8/bin/aws
59
+ #!/Library/Developer/CommandLineTools/usr/bin/python3
60
+ # Copyright 2012 Amazon.com, Inc. or its affiliates. All Rights Reserved.
61
+
62
+ # Licensed under the Apache License, Version 2.0 (the "License"). You
63
+ # may not use this file except in compliance with the License. A copy of
64
+ # the License is located at
65
+
66
+ # http://aws.amazon.com/apache2.0/
67
+
68
+ # or in the "license" file accompanying this file. This file is
69
+ # distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
70
+ # ANY KIND, either express or implied. See the License for the specific
71
+ # language governing permissions and limitations under the License.
72
+ ```
73
+
55
74
  ### 質問したいこと
56
75
  /Users/exampleuser/Library/Python/3.8/bin/aws
57
76
  ↑を綺麗にアンインストールするにはどのような方法がありますでしょうか?
@@ -65,3 +84,9 @@
65
84
  pythonはたまに触ったり学習したりしている感じなので
66
85
  仮想環境がいまいちよくわかっておりません。
67
86
 
87
+ pythonのインストール方法ですが記憶が曖昧で恐縮なのですが
88
+ おそらくIntel MacからLibraryディレクトリをまるっとコピーして
89
+ 現在のM1Macに移動したような気がします。
90
+
91
+ Intel Macではpipでインストールしたような微かな記憶があります。
92
+

1

不足情報を追記しました

2023/03/14 01:36

投稿

euicnvhf202105
euicnvhf202105

スコア126

test CHANGED
File without changes
test CHANGED
@@ -3,6 +3,16 @@
3
3
  python環境を確認してaws cliを再インストールしたい
4
4
  /Users/exampleuser/Library/Python/3.8/bin/aws
5
5
  ↑を綺麗にアンインストールしたい
6
+
7
+ ### 環境
8
+ MacOS 12.6.3
9
+ iTerm 2 Build 3.4.19
10
+
11
+ ```
12
+ % pkgutil --pkg-info=com.apple.pkg.CLTools_Executables
13
+ package-id: com.apple.pkg.CLTools_Executables
14
+ version: 14.2.0.0.1.1668646533
15
+ ```
6
16
 
7
17
  ### 経緯
8
18