Pycharm 终端 (Powershell) 使用不正确的虚拟环境路径,即使 python 解释器路径是正确的

问题描述 投票:0回答:0

我在 Pycharm 中从事 python 项目。我想使用 Pycharm (powershell) 中的终端来安装新软件包。当我运行 pip install websockets 时。我收到以下错误:

Fatal error in launcher: Unable to create process using '"C:\Users\arnes\cloud_backup\Projects\ocpp\venv\Scripts\python.exe"  "C:\Users\arnes\cloud_backup\Projects\ocpp_python\venv \Scripts\pip.exe" install websockets': The system cannot find the specified file.

我将项目名称从“ocpp”更改为“ocpp_python”。由于某种原因,终端会在旧文件夹名称“ocpp env”而不是“ocpp_python env”中查找 python.exe。

我手动将python解释器调整为正确的路径“C:\Users rne

python windows powershell pip pycharm
© www.soinside.com 2019 - 2024. All rights reserved.