WARNING: The script f2py.exe is installed in 'C:\Users\zhuji\AppData\Roaming\Python\Python311\Scripts' which is not on PATH.
时间: 2023-08-16 15:08:52 浏览: 309
这个警告是由于安装的脚本文件所在的路径没有添加到系统的环境变量中导致的。你可以按照以下步骤解决这个问题:
1. 打开系统的环境变量设置。在Windows 10中,你可以在开始菜单中搜索"环境变量",然后点击"编辑系统环境变量"。
2. 在系统变量列表中,找到名为"Path"的变量,并点击"编辑"。
3. 在弹出的编辑环境变量窗口中,点击"新建"。
4. 输入脚本文件所在的路径,即'C:\Users\zhuji\AppData\Roaming\Python\Python311\Scripts',然后点击"确定"。
5. 确保你保存了所有的更改,并关闭所有的窗口。
6. 重新打开命令行或者重启你的计算机,这样修改才会生效。
这样,警告信息就不会再出现了,你可以正常使用脚本文件了。如果你还有其他问题,请参考[1][2][3]中提供的参考链接。
相关问题
WARNING: The script f2py.exe is installed in 'C:\Users\89169\AppData\Roaming\Python\Python310\Scripts' which is not on PATH.
这个警告提示是因为安装的脚本所在的路径没有添加到系统的PATH环境变量中,导致在命令行中找不到相应的脚本。通过将脚本所在的路径添加到PATH环境变量中,可以解决这个问题。另外,可以尝试使用--no-warn-script-location选项来强制压下这个警告。
参考资料中提到了两种解决方法。一种是在系统变量中新建一个PYTHONPATH变量,将值设置为脚本所在的路径,例如C:\Users\xxx\AppData\Roaming\Python\Python3x\site-packages。另一种方法是使用--no-warn-script-location选项,可以通过添加环境变量的方式来实现。你可以按照参考资料中的步骤进行操作,解决这个问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [WARNING: The script markdown_py.exe is installed in......](https://blog.csdn.net/silent1cat/article/details/120193220)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [WARNING: The script locust.exe is installed in ‘C:\Users\liuyuan39\AppData\Roaming\Python\Python38\](https://blog.csdn.net/veryly/article/details/115399617)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [记录:python问题-WARNING: The script jsonschema.exe is installed in ‘盘符‘ which is not on PATH.](https://blog.csdn.net/meiyoushenmedabuliao/article/details/115561477)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
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` 选项来忽略这些警告。
阅读全文