我试图通过终端在pip python中安装 $ python get-pip.py
,但在终端中有此警告。
Python3.8
MacOS卡塔利娜
请帮助:(。我一直在寻找答案几天
WARNING: The scripts pip, pip3 and pip3.8 are installed in '/Library/Frameworks/Python.framework/Versions/3.8/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
最佳答案
由于没有从PATH安装pip的位置,因此出现此错误。
您需要添加:
export PATH="$PATH:/Library/Frameworks/Python.framework/Versions/3.8/bin"
到.bash_profile
的末尾,例如@hoefling进行了评论。
关于python - 适用于Python3的PIP安装问题:请考虑将此目录添加到PATH,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61026031/