最近旧版的Pycharm不太好用,卸载了更换了新版,但是在使用Terminal时发现,居然不是虚拟环境,我明明在设置中为项目创建了新的虚拟环境,这个问题如何解决呢?

出现这个问题的原因无非是我们的Pycharm默认了Windows PowerShell,我们只需要在Pycharm中的Tools修改一下即可,上图!

操作完成后,重新打开Pycharm中的Terminal,此时看一看见项目路径前有“虚拟环境名”字样,即表明此时是虚拟环境。

本文标题:设置Pycharm在打开Terminal终端自动进入虚拟环境
本文链接:https://www.haomeiwen.com/subject/buhtirtx.html
网友评论