python - 适用于Python3的PIP安装问题:请考虑将此目录添加到PATH

标签 python path pip installation

我试图通过终端在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/

相关文章:

脚本中的Python变量作用域问题

python - 如何使用 Visual Studio 的(Python 工具)调试远程 Python 应用程序?

c# - 在 Windows 中获取 OneDrive 路径

python - pip 未使用 pip.conf 中定义的额外索引 url

pip - Gensim: "C extension not loaded, training will be slow."

python正则表达式重复组匹配

javascript - 相当于 Python 的 int ('hex-string' , 16) 在 Javascript 中?

python - python/pythonpath 路径问题

java - 属性文件的相对路径

python - 如何使用 pip 安装带有额外组件的本地 Python 包?