teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

1

説明の追記

2021/10/28 02:02

投稿

jbpb0
jbpb0

スコア7658

answer CHANGED
@@ -1,13 +1,17 @@
1
+ > not a supported wheel on this platform.
2
+
1
3
  ```python
2
4
  import platform
3
5
  print(platform.mac_ver())
4
6
  ```
5
- を実行した結果が「('11.5.2', ('', '', ''), 'x86_64')」とならず、先頭の数字が「11」ではなく「10」なら、ミナル
7
+ を実行した結果が「('11.5.2', ('', '', ''), 'x86_64')」とならず、先頭の数字が「11」ではなく「10」なら、pipが認識してるOSバジョンが11.5.2はなく10.*であるため、OS 11.0以降用の「*-macosx_11_0_*.whl」が使えません
8
+
9
+ ターミナルで
6
10
  ```sh
7
11
  export SYSTEM_VERSION_COMPAT=0
8
12
  pip install /Users/lab/Downloads/libdfx-4.9.3.0-py3-none-macosx_11_0_x86_64.whl
9
13
  ```
10
- と実行してみてくださ
14
+ と実行すれば、pipが認識するOSバージョンが実際の11.5.2となり、インストールできると思ます
11
15
 
12
16
  参考
13
17
  [Python's "platform.mac_ver()" reports incorrect MacOS version](https://stackoverflow.com/questions/65290242/pythons-platform-mac-ver-reports-incorrect-macos-version/65402241)