WARNING: The script easy_install-3.9 is installed in '/home/gucci/Python-3.9.0/bin' 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 pip3 and pip3.9 are installed in '/home/gucci/Python-3.9.0/bin' 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 easy_install-3.9 is installed in '/home/gucci/Python-3.9.0/bin' 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 pip3 and pip3.9 are installed in '/home/gucci/Python-3.9.0/bin' 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 easy_install-3.9 is installed in '/home/gucci/Python-3.9.0/bin' 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 pip3 and pip3.9 are installed in '/home/gucci/Python-3.9.0/bin' 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 easy_install-3.9 is installed in '/home/gucci/Python-3.9.0/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
时间: 2024-04-14 22:27:23 浏览: 324
这是一个警告信息,告诉你在路径中没有找到Python的安装目录。为了解决这个问题,你可以将Python的安装目录添加到系统的环境变量中。这样,系统就可以找到Python并运行它。
具体的步骤取决于你使用的操作系统。如果你使用的是Linux或MacOS,你可以通过编辑`~/.bashrc`或`~/.bash_profile`文件来添加路径。在文件的末尾,添加以下行:
```
export PATH="/home/gucci/Python-3.9.0/bin:$PATH"
```
保存文件后,关闭终端窗口并重新打开一个新的终端窗口,使更改生效。
如果你使用的是Windows操作系统,你可以按照以下步骤添加路径:
1. 在桌面上,右键点击"此电脑"图标,并选择"属性"。
2. 在左侧导航栏中,点击"高级系统设置"。
3. 在弹出窗口的"高级"选项卡中,点击"环境变量"按钮。
4. 在"系统变量"部分,找到名为"Path"的变量,并点击"编辑"。
5. 在编辑窗口中,点击"新建"按钮,并添加Python的安装目录路径(例如:C:\Python-3.9.0\bin)。
6. 点击"确定"保存更改。
完成以上步骤后,重新打开命令行窗口,系统应该能够找到Python并正确运行。希望这可以解决你的问题!如果有任何进一步的疑问,请随时提问。
相关问题
WARNING: The script google-oauthlib-tool is installed in '/home/chang/.local/bin' which is not on PATH.
这个警告信息表明你安装了一个名为`google-oauthlib-tool`的脚本,它被放置在了一个特定的目录`/home/chang/.local/bin`,而这个目录并没有包含在你的系统环境变量`PATH`中。`PATH`环境变量用于指定系统在哪些目录下查找可执行文件。当运行一个命令时,系统会按照`PATH`变量所列的目录顺序去搜索这个命令对应的可执行文件。
如果你尝试从任何地方运行`google-oauthlib-tool`,系统将无法找到它,因为`/home/chang/.local/bin`不在`PATH`中。要解决这个问题,你可以将`/home/chang/.local/bin`添加到你的`PATH`环境变量中。在Linux或macOS系统中,你可以在你的shell配置文件(例如`.bashrc`, `.bash_profile`, 或`.zshrc`,取决于你使用的shell)中添加以下行:
```bash
export PATH="/home/chang/.local/bin:$PATH"
```
添加完毕后,你需要重新加载配置文件或重新启动你的终端会话,这样改动才会生效。之后,你就可以在任何地方运行`google-oauthlib-tool`了。
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` 选项来忽略这些警告。
阅读全文