Python3:command not found (Mac OS)

Source: Internet
Author: User
1. First step: see if the following paths are installed with Python 3.x
# 打开以下目录, 版本号有可能不同cd /usr/local/Cellar/python/3.5.2_3/bin# 查看当前目录的内容ls
2. Establishing a soft connection
# 确认电脑上已经安装有 Python 3.x# 软连接命令说明:ln [-bfis] existing-file-list(source) new-link-b     如果需要创建的目标连接已存在相同文件名,则备份-f     强制创建目标链接-i     覆盖相同文件名时提示-s     创建符号连接# 需要软连接到 /usr/local/bin 目录下ln -s /usr/local/Cellar/python/3.5.2_3/bin/python3 /usr/local/bin/python3# 下面是 pip3 的软连接,没有需求,可以忽略ln -s /usr/local/Cellar/python/3.5.2_3/bin/pip3.5 /usr/local/bin/pip3


Resources

  • MAC Brew Update Command not Found:python
  • Pip3:command not found but Python3-pip is already installed

Python3:command not found (Mac OS)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.