【備忘録】myMacのPython環境

https://qiita.com/takatoshi0905/items/baaa85739d5374f0e2d2

↑ こちらの記事に気付を得て、備忘録としてまとめました。<br><br>　




```terminal:2025.5.31 時点の環境
% system_profiler SPHardwareDataType | grep -i model | cut -c7- 
Model Name: Mac mini
Model Identifier: Macmini9,1
Model Number: G12P5J/A

% sw_vers
ProductName:		macOS
ProductVersion:		14.7.5
BuildVersion:		23H527
```


```terminal:インストール済みPythonのバージョン（3つも入っていたとは知りませんでした）
% python -V
Python 3.11.12

% python3 -V
Python 3.13.3


% python3.11 -V
Python 3.11.12

% python3.12 -V                      
Python 3.12.10

% python3.13 -V
Python 3.13.3
```



```terminal:Pythonの所在（どれも Homebrew でインストールしている）
% which python3.11 
/opt/homebrew/bin/python3.11

% which python3.12
/opt/homebrew/bin/python3.12

% which python3.13
/opt/homebrew/bin/python3.13
```

```terminal
% ls /opt/homebrew/bin | grep python
activate-global-python-argcomplete
ipython
ipython3
python-argcomplete-check-easy-install-script
python3
python3-config
python3.11
python3.11-config
python3.12
python3.12-config
python3.13
python3.13-config
register-python-argcomplete
```


```terminal:pipのバージョン（どれも 25.0.1 ）
% pip -V
pip 25.0.1 from /opt/homebrew/lib/python3.11/site-packages/pip (python 3.11)

% pip3 -V
pip 25.0.1 from /opt/homebrew/lib/python3.13/site-packages/pip (python 3.13)


% python3.11 -m pip -V
pip 25.0.1 from /opt/homebrew/lib/python3.11/site-packages/pip (python 3.11)

% python3.12 -m pip -V
pip 25.0.1 from /opt/homebrew/lib/python3.12/site-packages/pip (python 3.12)

% python3.13 -m pip -V  
pip 25.0.1 from /opt/homebrew/lib/python3.13/site-packages/pip (python 3.13)
```



```terminal:インストール済みpipライブラリ（python3.13）
% python3.13 -m pip list
Package            Version
------------------ ---------
certifi            2025.4.26
openvino           2025.0.0
openvino-telemetry 2024.1.0
packaging          25.0
pip                25.0
TBB                0.2
wheel              0.45.1
```



```terminal:インストール済みpipライブラリ（python3.12）
% python3.12 -m pip list
Package   Version
--------- ---------
certifi   2025.4.26
packaging 25.0
pip       25.0
wheel     0.45.1
```



```terminal:インストール済みpipライブラリ（python3.11）
% python3.11 -m pip list
Package                                           Version
------------------------------------------------- --------------
actdiag                                           3.0.0
adafruit-ampy                                     1.1.0
Adafruit-Blinka                                   8.56.0
adafruit-circuitpython-busdevice                  5.2.11
adafruit-circuitpython-connectionmanager          3.1.3
adafruit-circuitpython-requests                   4.1.10
adafruit-circuitpython-rgb-display                3.13
adafruit-circuitpython-typing                     1.11.2
Adafruit-PlatformDetect                           3.77.0
Adafruit-PureIO                                   1.1.11
alabaster                                         0.7.16
altgraph                                          0.17.4
annotated-types                                   0.7.0
anybadge                                          1.16.0
anyio                                             4.9.0
appdirs                                           1.4.4
appscript                                         1.3.0
argcomplete                                       3.6.2
argon2-cffi                                       23.1.0
argon2-cffi-bindings                              21.2.0
args                                              0.1.0
astroid                                           3.3.9
asttokens                                         3.0.0
attrs                                             25.3.0
babel                                             2.17.0
bcrypt                                            4.3.0
beautifulsoup4                                    4.13.4
bidict                                            0.22.1
binho-host-adapter                                0.1.6
bitarray                                          3.3.1
bitstring                                         4.3.1
bleak                                             0.22.3
bleak-sigspec                                     0.0.4
blinker                                           1.6.3
blockdiag                                         3.0.0
braceexpand                                       0.1.7
breathe                                           4.35.0
Brotli                                            1.1.0
cairocffi                                         1.7.1
CairoSVG                                          2.5.1
certifi                                           2025.1.31
cffi                                              1.17.1
charset-normalizer                                3.4.1
chromedriver-binary                               137.0.7128.0.0
circup                                            2.2.1
click                                             8.1.7
clint                                             0.5.1
colorama                                          0.4.6
colorlog                                          6.9.0
commonmark                                        0.9.1
contourpy                                         1.3.2
coverage                                          7.8.0
cryptography                                      44.0.2
cssselect2                                        0.8.0
customtkinter                                     5.2.2
cycler                                            0.12.1
Cython                                            3.0.12
darkdetect                                        0.8.0
decorator                                         5.2.1
defusedxml                                        0.7.1
dill                                              0.4.0
distlib                                           0.3.9
dnspython                                         2.4.2
docutils                                          0.20.1
ecdsa                                             0.19.1
esp-bool-parser                                   0.1.2
esp-docs                                          2.1.0
esp_idf_panic_decoder                             1.3.0
esptool                                           4.8.1
et_xmlfile                                        2.0.0
eventlet                                          0.33.3
exceptiongroup                                    1.2.2
executing                                         2.2.0
filelock                                          3.18.0
findimports                                       2.5.2
Flask                                             3.0.0
Flask-Compress                                    1.10.1
Flask-SocketIO                                    5.3.6
fonttools                                         4.57.0
fspath                                            20230629
funcparserlib                                     2.0.0a0
future                                            1.0.0
gdbgui                                            0.15.2.0
gps3                                              0.33.3
greenlet                                          3.0.0
gurobipy                                          12.0.1
h11                                               0.14.0
h2                                                4.2.0
hidapi                                            0.14.0.post4
hpack                                             4.1.0
httpcore                                          1.0.8
httpx                                             0.28.1
hyperframe                                        6.1.0
idf-build-apps                                    2.10.1
idf-component-manager                             2.1.2
idna                                              3.10
imagesize                                         1.4.1
importlib_metadata                                8.6.1
iniconfig                                         2.1.0
intelhex                                          2.3.0
ipython                                           9.1.0
ipython_pygments_lexers                           1.1.1
isort                                             6.0.1
itsdangerous                                      2.1.2
jaconv                                            0.4.0
japanize-matplotlib                               1.1.3
jedi                                              0.19.2
Jinja2                                            3.1.2
jsonref                                           1.1.0
jsonschema                                        4.23.0
jsonschema-specifications                         2024.10.1
junit-xml                                         1.9
jupyter-micropython-upydevice                     0.0.7
kconfgen                                          1.2.2
kconfiglib                                        14.1.0
keyboard                                          0.13.5
kiwisolver                                        1.4.8
kociemba                                          1.2.1
libusb1                                           3.3.1
linuxdoc                                          20240924
lxml                                              5.3.2
macholib                                          1.16.3
markdown-it-py                                    3.0.0
MarkupSafe                                        2.1.3
matlib                                            0.1.2
matplotlib                                        3.10.1
matplotlib-inline                                 0.1.7
mccabe                                            0.7.0
mdurl                                             0.1.2
mergedeep                                         1.3.4
minify_html                                       0.16.4
minio                                             7.2.15
MouseInfo                                         0.1.3
mpmath                                            1.3.0
mpremote                                          1.25.0
msgpack                                           1.1.0
ndeflib                                           0.3.3
netifaces                                         0.11.0
netmiko                                           4.5.0
nfcpy                                             1.0.4
ntc_templates                                     7.8.0
ntplib                                            0.4.0
numpy                                             2.2.4
nwdiag                                            2.0.0
online-judge-api-client                           10.10.1
online-judge-tools                                11.5.1
openpyxl                                          3.1.5
outcome                                           1.3.0.post0
packaging                                         24.2
paho-mqtt                                         2.1.0
pandas                                            2.2.3
pandas-datareader                                 0.10.0
paramiko                                          3.5.1
parso                                             0.8.4
pexpect                                           4.9.0
pgzero                                            1.2.1
pillow                                            11.2.1
pip                                               25.1.1
platformdirs                                      4.3.7
pluggy                                            1.5.0
prettytable                                       3.16.0
processing-py                                     0.3.7
prompt_toolkit                                    3.0.51
protobuf                                          6.30.2
psutil                                            7.0.0
ptyprocess                                        0.7.0
pure_eval                                         0.2.3
pyasn1                                            0.6.1
PyAutoGUI                                         0.9.54
pycparser                                         2.22
pycryptodome                                      3.22.0
pycryptodomex                                     3.22.0
pydantic                                          2.11.3
pydantic_core                                     2.33.1
pydantic-settings                                 2.9.1
pyDes                                             2.0.1
pydub                                             0.25.1
pyecharts                                         2.0.8
pyelftools                                        0.32
pyftdi                                            0.56.0
pyfxr                                             0.3.0
pygame                                            2.6.1
pygdbmi                                           0.10.0.2
PyGetWindow                                       0.0.9
Pygments                                          2.16.1
pyheif                                            0.8.0
pyinstaller                                       6.13.0
pyinstaller-hooks-contrib                         2025.3
pylint                                            3.3.7
pylint-gitlab                                     2.0.1
PyMsgBox                                          1.0.9
PyNaCl                                            1.5.0
pyobjc                                            11.0
pyobjc-core                                       10.3.2
pyobjc-framework-Accessibility                    11.0
pyobjc-framework-Accounts                         11.0
pyobjc-framework-AddressBook                      11.0
pyobjc-framework-AdServices                       11.0
pyobjc-framework-AdSupport                        11.0
pyobjc-framework-AppleScriptKit                   11.0
pyobjc-framework-AppleScriptObjC                  11.0
pyobjc-framework-ApplicationServices              11.0
pyobjc-framework-AppTrackingTransparency          11.0
pyobjc-framework-AudioVideoBridging               11.0
pyobjc-framework-AuthenticationServices           11.0
pyobjc-framework-AutomaticAssessmentConfiguration 11.0
pyobjc-framework-Automator                        11.0
pyobjc-framework-AVFoundation                     11.0
pyobjc-framework-AVKit                            11.0
pyobjc-framework-AVRouting                        11.0
pyobjc-framework-BackgroundAssets                 11.0
pyobjc-framework-BrowserEngineKit                 11.0
pyobjc-framework-BusinessChat                     11.0
pyobjc-framework-CalendarStore                    11.0
pyobjc-framework-CallKit                          11.0
pyobjc-framework-Carbon                           11.0
pyobjc-framework-CFNetwork                        11.0
pyobjc-framework-Cinematic                        11.0
pyobjc-framework-ClassKit                         11.0
pyobjc-framework-CloudKit                         11.0
pyobjc-framework-Cocoa                            10.3.2
pyobjc-framework-Collaboration                    11.0
pyobjc-framework-ColorSync                        11.0
pyobjc-framework-Contacts                         11.0
pyobjc-framework-ContactsUI                       11.0
pyobjc-framework-CoreAudio                        11.0
pyobjc-framework-CoreAudioKit                     11.0
pyobjc-framework-CoreBluetooth                    10.3.2
pyobjc-framework-CoreData                         11.0
pyobjc-framework-CoreHaptics                      11.0
pyobjc-framework-CoreLocation                     11.0
pyobjc-framework-CoreMedia                        11.0
pyobjc-framework-CoreMediaIO                      11.0
pyobjc-framework-CoreMIDI                         11.0
pyobjc-framework-CoreML                           11.0
pyobjc-framework-CoreMotion                       11.0
pyobjc-framework-CoreServices                     11.0
pyobjc-framework-CoreSpotlight                    11.0
pyobjc-framework-CoreText                         11.0
pyobjc-framework-CoreWLAN                         11.0
pyobjc-framework-CryptoTokenKit                   11.0
pyobjc-framework-DataDetection                    11.0
pyobjc-framework-DeviceCheck                      11.0
pyobjc-framework-DictionaryServices               11.0
pyobjc-framework-DiscRecording                    11.0
pyobjc-framework-DiscRecordingUI                  11.0
pyobjc-framework-DiskArbitration                  11.0
pyobjc-framework-DVDPlayback                      11.0
pyobjc-framework-EventKit                         11.0
pyobjc-framework-ExceptionHandling                11.0
pyobjc-framework-ExecutionPolicy                  11.0
pyobjc-framework-ExtensionKit                     11.0
pyobjc-framework-ExternalAccessory                11.0
pyobjc-framework-FileProvider                     11.0
pyobjc-framework-FileProviderUI                   11.0
pyobjc-framework-FinderSync                       11.0
pyobjc-framework-FSEvents                         11.0
pyobjc-framework-GameCenter                       11.0
pyobjc-framework-GameController                   11.0
pyobjc-framework-GameKit                          11.0
pyobjc-framework-GameplayKit                      11.0
pyobjc-framework-HealthKit                        11.0
pyobjc-framework-ImageCaptureCore                 11.0
pyobjc-framework-InputMethodKit                   11.0
pyobjc-framework-InstallerPlugins                 11.0
pyobjc-framework-InstantMessage                   11.0
pyobjc-framework-Intents                          11.0
pyobjc-framework-IntentsUI                        11.0
pyobjc-framework-IOBluetooth                      11.0
pyobjc-framework-IOBluetoothUI                    11.0
pyobjc-framework-IOSurface                        11.0
pyobjc-framework-iTunesLibrary                    11.0
pyobjc-framework-KernelManagement                 11.0
pyobjc-framework-LatentSemanticMapping            11.0
pyobjc-framework-LaunchServices                   11.0
pyobjc-framework-libdispatch                      10.3.2
pyobjc-framework-libxpc                           11.0
pyobjc-framework-LinkPresentation                 11.0
pyobjc-framework-LocalAuthentication              11.0
pyobjc-framework-LocalAuthenticationEmbeddedUI    11.0
pyobjc-framework-MailKit                          11.0
pyobjc-framework-MapKit                           11.0
pyobjc-framework-MediaAccessibility               11.0
pyobjc-framework-MediaLibrary                     11.0
pyobjc-framework-MediaPlayer                      11.0
pyobjc-framework-MediaToolbox                     11.0
pyobjc-framework-Metal                            11.0
pyobjc-framework-MetalFX                          11.0
pyobjc-framework-MetalKit                         11.0
pyobjc-framework-MetalPerformanceShaders          11.0
pyobjc-framework-MetalPerformanceShadersGraph     11.0
pyobjc-framework-MetricKit                        11.0
pyobjc-framework-MLCompute                        11.0
pyobjc-framework-ModelIO                          11.0
pyobjc-framework-MultipeerConnectivity            11.0
pyobjc-framework-NaturalLanguage                  11.0
pyobjc-framework-NetFS                            11.0
pyobjc-framework-Network                          11.0
pyobjc-framework-NetworkExtension                 11.0
pyobjc-framework-NotificationCenter               11.0
pyobjc-framework-OpenDirectory                    11.0
pyobjc-framework-OSAKit                           11.0
pyobjc-framework-OSLog                            11.0
pyobjc-framework-PassKit                          11.0
pyobjc-framework-PencilKit                        11.0
pyobjc-framework-PHASE                            11.0
pyobjc-framework-Photos                           11.0
pyobjc-framework-PhotosUI                         11.0
pyobjc-framework-PreferencePanes                  11.0
pyobjc-framework-PushKit                          11.0
pyobjc-framework-Quartz                           11.0
pyobjc-framework-QuickLookThumbnailing            11.0
pyobjc-framework-ReplayKit                        11.0
pyobjc-framework-SafariServices                   11.0
pyobjc-framework-SafetyKit                        11.0
pyobjc-framework-SceneKit                         11.0
pyobjc-framework-ScreenCaptureKit                 11.0
pyobjc-framework-ScreenSaver                      11.0
pyobjc-framework-ScreenTime                       11.0
pyobjc-framework-ScriptingBridge                  11.0
pyobjc-framework-SearchKit                        11.0
pyobjc-framework-Security                         11.0
pyobjc-framework-SecurityFoundation               11.0
pyobjc-framework-SecurityInterface                11.0
pyobjc-framework-SensitiveContentAnalysis         11.0
pyobjc-framework-ServiceManagement                11.0
pyobjc-framework-SharedWithYou                    11.0
pyobjc-framework-SharedWithYouCore                11.0
pyobjc-framework-ShazamKit                        11.0
pyobjc-framework-Social                           11.0
pyobjc-framework-SoundAnalysis                    11.0
pyobjc-framework-Speech                           11.0
pyobjc-framework-SpriteKit                        11.0
pyobjc-framework-StoreKit                         11.0
pyobjc-framework-Symbols                          11.0
pyobjc-framework-SyncServices                     11.0
pyobjc-framework-SystemConfiguration              11.0
pyobjc-framework-SystemExtensions                 11.0
pyobjc-framework-ThreadNetwork                    11.0
pyobjc-framework-UniformTypeIdentifiers           11.0
pyobjc-framework-UserNotifications                11.0
pyobjc-framework-UserNotificationsUI              11.0
pyobjc-framework-VideoSubscriberAccount           11.0
pyobjc-framework-VideoToolbox                     11.0
pyobjc-framework-Virtualization                   11.0
pyobjc-framework-Vision                           11.0
pyobjc-framework-WebKit                           11.0
pyparsing                                         3.2.3
pyperclip                                         1.9.0
PyQt5                                             5.15.11
PyQt5-Qt5                                         5.15.16
PyQt5_sip                                         12.17.0
PyRect                                            0.2.0
pyrsistent                                        0.20.0
PyScreeze                                         1.0.1
pyserial                                          3.5
PySimpleGUI                                       5.0.8.3
PySocks                                           1.7.1
pytchat                                           0.5.5
pytest                                            8.3.5
pytest-embedded                                   1.16.1
pytest-embedded-idf                               1.16.1
pytest-embedded-jtag                              1.16.1
pytest-embedded-qemu                              1.16.1
pytest-embedded-serial                            1.16.1
pytest-embedded-serial-esp                        1.16.1
pytest-ignore-test-results                        0.3.0
pytest-rerunfailures                              15.1
pytest-timeout                                    2.4.0
python-can                                        4.5.0
python-dateutil                                   2.9.0.post0
python-dotenv                                     1.1.0
python-engineio                                   4.8.0
python-gitlab                                     5.6.0
python-nmap                                       0.7.1
python-pptx                                       1.0.2
python-socketio                                   5.10.0
pyttsx3                                           2.98
pytweening                                        1.2.0
pytz                                              2025.2
pyusb                                             1.3.1
PyYAML                                            6.0.2
qemu.qmp                                          0.0.3
rangehttpserver                                   1.4.0
recommonmark                                      0.7.1
reedsolo                                          1.7.0
referencing                                       0.36.2
requests                                          2.32.3
requests-file                                     2.1.0
requests-toolbelt                                 1.0.0
rich                                              14.0.0
rpds-py                                           0.24.0
rsa                                               4.9.1
ruamel.yaml                                       0.18.10
ruamel.yaml.clib                                  0.2.12
rubicon-objc                                      0.5.0
Rx                                                3.2.0
scapy                                             2.6.1
scipy                                             1.15.2
scp                                               0.15.0
selenium                                          4.31.0
semver                                            3.0.4
seqdiag                                           3.0.0
setuptools                                        78.1.0
simple-websocket                                  1.0.0
simplejson                                        3.20.1
SimpleWebSocketServer                             0.1.2
sip                                               6.10.0
six                                               1.16.0
sniffio                                           1.3.1
snowballstemmer                                   3.0.1
sortedcontainers                                  2.4.0
soupsieve                                         2.6
Sphinx                                            7.1.2
sphinx-copybutton                                 0.5.0
sphinx-idf-theme                                  2.0.1
sphinx-notfound-page                              1.1.0
sphinx_selective_exclude                          1.0.3
sphinxcontrib-actdiag                             3.0.0
sphinxcontrib-applehelp                           2.0.0
sphinxcontrib-blockdiag                           3.0.0
sphinxcontrib-devhelp                             2.0.0
sphinxcontrib-htmlhelp                            2.1.0
sphinxcontrib-jquery                              4.1
sphinxcontrib-jsmath                              1.0.1
sphinxcontrib-nwdiag                              2.0.0
sphinxcontrib-qthelp                              2.0.0
sphinxcontrib-seqdiag                             3.0.0
sphinxcontrib-serializinghtml                     2.0.0
sphinxcontrib-svg2pdfconverter                    1.2.0
sphinxcontrib-wavedrom                            3.0.4
stack-data                                        0.6.3
subject                                           0.1.0
svgwrite                                          1.4.3
sympy                                             1.13.3
sympy_plot_backends                               3.4.2
textfsm                                           1.1.3
tinycss2                                          1.4.0
TkEasyGUI                                         1.0.26
toml                                              0.10.2
tomli                                             2.2.1
tomlkit                                           0.13.2
tqdm                                              4.67.1
traitlets                                         5.14.3
trio                                              0.29.0
trio-websocket                                    0.12.2
typing_extensions                                 4.13.2
typing-inspection                                 0.4.0
tzdata                                            2025.2
unsync                                            1.4.0
update-checker                                    0.18.0
upydev                                            0.4.3
upydevice                                         0.3.8
urllib3                                           2.4.0
virtualenv                                        20.30.0
wavedrom                                          2.0.3.post3
wcwidth                                           0.2.13
webcolors                                         24.11.1
webencodings                                      0.5.1
websocket-client                                  1.8.0
Werkzeug                                          3.0.0
wheel                                             0.45.1
wrapt                                             1.17.2
wsproto                                           1.2.0
xcffib                                            1.8.0
XlsxWriter                                        3.2.3
xlwings                                           0.33.12
zipp                                              3.21.0
```

普段は特に`python`のバージョンを指定せずに使っているので、（デフォルトである）`python3.11`のライブラリだけが育っていた。

_`pyenv`等のバージョン管理を使うべきでしょうね !?_