由于某些原因,PGZRUN不会导入,并且认为这与此错误消息有关
WARNING: The script pgzrun.exe is installed in 'C:\Users\brade\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.
有人能帮忙吗
导入模块时,它们必须位于PATH、cwd(当前工作目录)或python目录中
为了add a directory to path,您必须修改PATH环境变量,并将其附加到目录中(建议在任何情况下都在PATH中添加python目录)
要在cwd中添加,您必须将包移动到脚本的目录中,但不建议这样做
最好的选择是将包移动到python解释器所在的目录中(但无论如何都要在PATH中添加python目录)
相关问题 更多 >
编程相关推荐