我在macos上使用pip时出现了报错情况
报错信息
WARNING: The scripts pip, pip3 and pip3.10 are installed in ‘/Users/*’ which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed pip-23.3.1
*号代表的是自己的安装路径
报错的原因大概率是没有添加path
解决方法
sudo nano ~/.zshrc
输入密码后将前面出现过的路径加入path
export PATH="/Users/*:$PATH"
ctrl+x 保存后重新启动终端,这时就能使用pip了