赞
踩
通过Homebrew安装了多个Python版本,导致在命令行中执行Python3命令时报错Command not found
解决方案,使用软连接:
ln -s /usr/local/Cellar/python@3.7/3.7.9_2/bin/python3 /usr/local/bin/python3
如果pip3命令也提示Command not found,可以用相同办法解决:
ln -s /usr/local/Cellar/python@3.7/3.7.9_2/bin/pip3 /usr/local/bin/pip3
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。