主要是pylint的一些问题
error: command errored out with exit status 1
…which is not on PATH. Consider adding this directory to PATH or, …
环境
macOS Catalina
Python 3.8
Vscode version 1.54
pip 21.0.1
terminal - zsh
python安装
用homebrew安装,homebrew的具体安装方法可以参考另一篇文章
brew search python3
brew install python@3.8
brew search了之后选择想要安装的python版本,这里选择的是3.8
python3安装完成后需要升级一下pip(现在最新的是21)
升级pip:
pip3 install --upgrade pip --user
注:这里不加–user会提示用户权限不够
升级了之后再写pip3 install…可能会出现警告,改成如下写法
python3 -m pip install [pkg]
最后可以试一下 python3 -m pip --version 看看新的版本是多少
*如果用pip升级的时候系统提示权限不够,就在