The python version that comes with mac os is 2.7, because it needs to be upgraded to python3. The process is as follows:
execute:
brew install python3
In theory, the installation can be successful by executing this command, but the following error is reported:
The reason is that /usr/local/Frameworks does not exist, the solution:
sudo mkdir /usr/local/Frameworks
sudo chown $USER /usr/local/Frameworks
Then re-run `brew install python3` to install successfully.
Read More:
- Mac Upgrade pip Error OSError: [Errno 13] Permission denied: ‘/Library/Python/2.7/site-packages/pip-9.0.1-py2….
- [Solved] supervisor Error: /usr/local/lib/python2.7/dist-packages/pkg_resources/py2_warn.py:22: UserWarning: Setuptools will stop working on Python 2
- [Solved] opencv-python: recipe for target ‘modules/python3/CMakeFiles/opencv_python3.dir/all‘ failed
- Python: How to Solve mysqlclient Install Error in Mac
- Mac install python_Levenshtein Error: error: command ‘clang‘ failed with exit status 1
- [Solved] Linux OS python Script Error: smtplib has no attribute SMTP_SSL
- [Solved] NPM install Error: check python checking for Python executable python2 in the PATH
- [Solved] pycocotools Install Error: ERROR: Error expected str, bytes or os.PathLike object, not NoneType while executing
- [Solved] Mac ffmpeg Install Error: filenotfounderror: [errno 2] no such file or directory: ‘ffmpeg’: ‘ffmpeg’
- Command “/usr/bin/python -u -c “import setuptools, tokenize;__file__=‘/tmp/pip-cus9V0-build/setup.py
- Brew Install python Error: tar: Error opening archive: Failed to open’***‘
- Python PIP TypeError: expected str, bytes or os.PathLike object, not int
- Opencv-python Install is Stuck Error: running setup.py bdist_wheel for opencv-python
- Python Error: pip install mysql-connector-python failed
- npm install Error: stack Error: Can’t find Python executable “python”
- Python 2.7: How to Install PIP
- Python: How to Use os.path.join()
- [Solved] Python Error: tensorflow.python.framework.errors_impl.UnknownError: 2 root error(s) found.
- Python: SVN deletes files on local and remote repositories
- [Solved] Python Error: local variable ‘var‘ referenced before assignment