CMD识别'py',但PowerShell不识别 您所在的位置:网站首页 powershell文档 CMD识别'py',但PowerShell不识别

CMD识别'py',但PowerShell不识别

2023-03-20 02:20| 来源: 网络整理| 查看: 265

Python已经不能在PowerShell中工作了。

我从来没有遇到过任何问题,直到最近。CMD仍然可以识别py命令,但Powershell却不能识别任何基本的Python命令。py、py3、python、python3。 我的问题发生在我安装了MinGW并将其路径添加到Path变量之后。

我曾多次重启我的电脑,同时尝试新事物。

Things I've tried:

I have tried removing MinGW from the Path variable. I have tried uninstalling MinGW. I have tried reinstalling python. I have tried manually adding the Python path. I have tried letting Python automatically add my Python path. I have tried adding the Python path to both the user environment variables and the system variables. I have tried running PowerShell as administrator.

最后,这是我的Path变量现在的样子。

用户路径变量。

C:\Users\lcdew\AppData\Local\Microsoft\WindowsApps C:\Users\lcdew\AppData\Local\GitHubDesktop\bin

系统路径变量。

C:\Program Files\Python38\Scripts C:\Program Files\Python38 C:\Program Files\Scripts C:\Program Files C:\Program Files (x86)\Scripts C:\Program Files (x86) C:\Program Files (x86)\Razer Chroma SDK\bin C:\Program Files\Razer Chroma SDK\bin C:\Windows\system32 C:\Windows C:\Windows\System32\Wbem C:\Windows\System32\WindowsPowerShell\v1.0 C:\Windows\System32\OpenSSH C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common


【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有