Install Python 3.10 with Homebrew and Manage Packages
To install Python packages using Python 3.10, you can use the following command:
pip3.10 install <package>
This will install the package into the site-package directory located at /usr/local/lib/python3.10/site-packages.
Please note that the 'tkinter' package is no longer included with the Python formula. If you need 'tkinter', you can install it separately using Homebrew:
brew install python-tk@3.10
If you want to have Homebrew's 'python3' in your PATH instead of a specific version of Python, you can use the following command:
brew install python3
After installing Python 3.10 or Python 3, you can use the 'python', 'python3', 'python-config', 'python3-config', 'pip', 'pip3', etc. commands, which are symlinked to the respective Python version's executables located at /usr/local/opt/python@3.10/libexec/bin.
原文地址: https://www.cveoy.top/t/topic/pmuS 著作权归作者所有。请勿转载和采集!