首页 > 解决方案 > 警告:已安装脚本 pipenv 和 pipenv-resolver

问题描述

WARNING: The scripts pipenv and pipenv-resolver 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.

为什么我收到此错误消息以及如何修复它

标签: pythonpath

解决方案


您需要将其添加到 PATH 变量中。

例子:

echo 'export PATH="/Library/Frameworks/Python.framework/Versions/3.8/bin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile

推荐阅读