WARNING: The script label-studio-ml.exe is installed in 'C:\Users\86175\AppData\Roaming\Python\Python37\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.
时间: 2023-07-22 20:09:53 浏览: 228
这个警告提示表明 `label-studio-ml` 脚本安装在 `C:\Users\86175\AppData\Roaming\Python\Python37\Scripts` 目录下,但该目录并没有添加到系统的 PATH 环境变量中。
您可以按照以下步骤将该目录添加到系统的 PATH 环境变量中:
1. 打开 "控制面板" 并进入 "系统和安全" > "系统" > "高级系统设置"。
2. 在弹出的 "系统属性" 窗口中,点击 "高级" 选项卡,在下方找到 "环境变量" 按钮并点击。
3. 在 "环境变量" 窗口中,找到 "系统变量" 部分,找到名为 "Path"(或 "PATH")的变量,并点击 "编辑"。
4. 在弹出的编辑窗口中,点击 "新建" 并输入 `C:\Users\86175\AppData\Roaming\Python\Python37\Scripts`,然后点击 "确定"。
5. 关闭所有打开的窗口,并重新启动命令提示符或终端窗口。
完成上述步骤后,您应该能够在任何位置正常使用 `label-studio-ml` 命令,而不再收到警告信息。
请注意,如果您不想添加该目录到 PATH 环境变量中,可以使用 `--no-warn-script-location` 参数来禁止显示该警告信息,例如 `label-studio-ml --no-warn-script-location`。
希望这能解决您的问题!如果还有其他疑问,请随时提问。
相关问题
WARNING: The script wheel.exe is installed in 'C:\Users\86136\AppData\Roaming\Python\Python39\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. WARNING: The script f2py.exe is installed in 'C:\Users\86136\AppData\Roaming\Python\Python39\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. WARNING: The script normalizer.exe is installed in 'C:\Users\86136\AppData\Roaming\Python\Python39\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. WARNING: The scripts pyrsa-decrypt.exe, pyrsa-encrypt.exe, pyrsa-keygen.exe, pyrsa-priv2pub.exe, pyrsa-sign.exe and pyrsa-verify.exe are installed in 'C:\Users\86136\AppData\Roaming\Python\Python39\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. WARNING: The script markdown_py.exe is installed in 'C:\Users\86136\AppData\Roaming\Python\Python39\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. WARNING: The script google-oauthlib-tool.exe is installed in 'C:\Users\86136\AppData\Roaming\Python\Python39\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. WARNING: The script tensorboard.exe is installed in 'C:\Users\86136\AppData\Roaming\Python\Python39\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.
这些警告是因为你在安装某些 Python 包时,它们在安装过程中将可执行文件安装到了 Python 的 `Scripts` 文件夹中,但是这个文件夹不在系统的 `PATH` 环境变量中,因此可能无法直接运行这些可执行文件。
你可以将 `C:\Users\86136\AppData\Roaming\Python\Python39\Scripts` 添加到系统的 `PATH` 环境变量中,这样就可以直接在命令行中运行这些可执行文件了。或者,你可以使用 `--no-warn-script-location` 选项来忽略这些警告。
WARNING: The script wheel.exe is installed in 'C:\Users\dell\AppData\Roaming\Python\Python39\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. WARNING: The script normalizer.exe is installed in 'C:\Users\dell\AppData\Roaming\Python\Python39\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. WARNING: The scripts pyrsa-decrypt.exe, pyrsa-encrypt.exe, pyrsa-keygen.exe, pyrsa-priv2pub.exe, pyrsa-sign.exe and pyrsa-verify.exe are installed in 'C:\Users\dell\AppData\Roaming\Python\Python39\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. WARNING: The script markdown_py.exe is installed in 'C:\Users\dell\AppData\Roaming\Python\Python39\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. WARNING: The script google-oauthlib-tool.exe is installed in 'C:\Users\dell\AppData\Roaming\Python\Python39\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. WARNING: The script tensorboard.exe is installed in 'C:\Users\dell\AppData\Roaming\Python\Python39\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环境变量中。要解决这个问题,您可以选择将这些目录添加到PATH环境变量中,或者在命令行中使用`--no-warn-script-location`参数来禁止这些警告。
如果您选择将这些目录添加到PATH环境变量中,您可以按照以下步骤进行操作:
1. 在Windows上,打开控制面板。
2. 在控制面板中,搜索并点击“系统”。
3. 在系统设置页面中,点击左侧的“高级系统设置”。
4. 在弹出的对话框中,点击“环境变量”按钮。
5. 在环境变量对话框中,找到系统变量列表中的“Path”变量,并点击“编辑”按钮。
6. 在编辑环境变量对话框中,点击“新建”按钮,并输入要添加的目录路径。
7. 点击“确定”保存修改。
添加完毕后,重新打开命令行窗口,应该不再收到这些警告信息了。
阅读全文