focus_billy 2022-01-29 10:39 采纳率: 0%
浏览 2073

安装matplotlib 出现warning :Consider adding this directory to PATH

安装matplotlib成功但出现警告:
WARNING: The scripts fonttools.exe, pyftmerge.exe, pyftsubset.exe and ttx.exe are installed in 'C:\Users\ysxh\AppData\Roaming\Python\Python38\Scripts' which is not on PATH.

Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

运行结果及报错内容
我的解答思路和尝试过的方法
我想要达到的结果
  • 写回答

1条回答 默认 最新

  • CSDN专家-HGJ 2022-01-29 11:14
    关注

    提示的错误是指,在安装matplotlib时,一些文件被安装到了用户的roaming文件夹下,而该文件夹没有添加到系统的path中,并给出了建议,要么将提示的路径添加到系统path中,要么在安装时使用参数 --no-warn-script-location来忽略警告。
    造成这个问题,首先看下系统是否装有多个python,最好只使用一个,同时将python路径及其Scripts添加到系统环境变量,再安装库。

    评论

报告相同问题?

问题事件

  • 创建了问题 1月29日