gpt4 book ai didi

Python 3.7 pip install - 系统找不到指定的路径

转载 作者:行者123 更新时间:2023-12-05 02:55:59 27 4
gpt4 key购买 nike

我在 Windows 10 笔记本电脑上使用 Python 3.7 (Activestate)。一切正常,直到我尝试使用 pip 安装包(任何包)。在命令提示符下,当输入“pip install anyPackage”时出现错误 - “系统找不到指定的路径。”没有其他解释或细节。

Python 安装在“C:\Python37”中,此位置列在“控制面板”>“系统”>“环境变量”>“用户变量”中。

在环境变量 > 系统变量中,我有:C:\Python37\C:\Python37\DLLs\C:\Python37\脚本\C:\Python37\工具\C:\Python37\工具\忍者\

关于如何消除该错误并使 pip 工作的任何建议?

非常感谢大家

最佳答案

简短:确保 pip.exe 和 python.exe 从同一位置运行。如果他们不这样做(可能是由于 PATH 环境变量),只需删除您不需要的那个即可。

更长:运行 pip install 时,检查它尝试获取 python 的位置例如,在我自己的电脑中,它是:

pip installFatal error in launcher: Unable to create process using '"c:\program files\python39\python.exe" "C:\Program Files\Python39\Scripts\pip.exe" ': The system cannot find the file specified.

然后我跑了:'where python.exe'//有几个路径。'where pip.exe'//有不同的路径。

删除了我不使用的那个。瞧。

关于Python 3.7 pip install - 系统找不到指定的路径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60890894/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com