如何移除PyCharm新建项目时Base interpreter下拉中的无效项?
移除PyCharm中无效的Base interpreter条目
- 打开PyCharm设置:Windows/Linux点击
File → Settings,Mac点击PyCharm → Settings,直接搜索Interpreter快速定位到相关设置。 - 进入全局解释器列表:在
Python Interpreter界面,点击右上角的齿轮图标,选择Show All...。 - 删除无效条目:在弹出的窗口里,选中那些灰色的无效解释器条目,点击左上角的减号(-)按钮即可删除。
- 若删除后仍有残留,清理PyCharm缓存:点击
File → Invalidate Caches...,选择Invalidate and Restart重启PyCharm即可。
完成以上操作后,新建项目时Base interpreter下拉菜单就只会保留有效的Python 3.11选项了。
内容的提问来源于stack exchange,提问作者Daniel
相关产品推荐
相关产品推荐

