WARNING: The script tensorboard.exe is installed in 'C:\Users\12745\AppData\Roaming\Python\Python39\Scripts' which is not on PATH.
时间: 2023-10-02 12:06:46 浏览: 148
当安装Python包时出现警告提示脚本安装路径不在PATH中时,可以考虑将该路径添加到环境变量中。在Windows系统中,可以按照以下步骤进行操作:
1. 打开“设置”,进入“高级系统设置”。
2. 在“高级”选项卡下,点击“环境变量”按钮。
3. 在“系统变量”中找到名为“Path”的变量,并选中后点击“编辑”。
4. 点击“新建”,将警告信息中建议加入PATH的路径添加进去。
5. 确认保存修改后,关闭所有命令行窗口。
6. 打开一个新的命令行窗口,运行命令以验证是否消除了警告。
重新启动命令行窗口是为了使更新后的环境变量生效。
请注意,这些步骤适用于Windows系统。对于其他操作系统,请参考相应的文档来添加环境变量。
相关问题
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. 点击“确定”保存修改。
添加完毕后,重新打开命令行窗口,应该不再收到这些警告信息了。
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` 选项来忽略这些警告。
阅读全文