【问题标题】:I can't install pip module我无法安装 pip 模块
【发布时间】:2021-02-02 20:58:20
【问题描述】:

当我尝试使用 pip install selenium 安装 Selenium 模块时,我收到此错误:

Fatal error in launcher: Unable to create process using '"c:\python39\python.exe"  "C:\Python39\Scripts\pip.exe" install selenium': The system cannot find the file specified.

【问题讨论】:

  • 您的计算机上是否存在程序c:\python39\python.exeC:\Python39\Scripts\pip.exe
  • C:\Python39\Scripts\pip.exe 存在,但 c:\python39\python.exe 不存在。

标签: python module pip


【解决方案1】:

您可以尝试以下方法吗?

$ python -m pip install selenium

【讨论】:

  • Tnx 这项工作,但为什么我必须在开头添加“python -m”
  • 很高兴知道它有效。我想它是想说我们正在使用的 pip 和 python 来自同一个“bin”。如果你喜欢,可以接受我的回答。;)