我在终端上遇到了问题,它无法识别我的 flask 命令!整个问题始于
WARNING: The script isort is installed in '/Users/bigdad/Library/Python/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.
所以我使用 nano 命令将路径“/Users/bigdad/Library/Python/3.8/bin”添加到我的本地变量sudo nano /etc/paths
并添加它。
没有用,于是又试了另一种方法 export PYTHONPATH="${PYTHONPATH}:/Users/bigdad/Library/Python/3.8/bin
,还是没用
有人可以指导我吗?
答案1
当我添加路径时它对我有用/Users/bigdad/Library/Python/3.8/lib/python/site-packages
到我的环境使用sudo nano /etc/paths