回答編集履歴
1
説明の追記
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)
|