记得以前是可以直接在pycharm 的terminal 端运行python程序的,但是今天运行的时候不行,不知道为啥,于是解决问题

直接Google 的方法都不靠谱,不用浪费时间了

刚开始,想着为什么,安装的conda 的base 环境,无法在cmd 以及powershell中运行,按照这个搜索,也是无用

后来想着,pycharm 的terminal 直接打开默认就是Windows的PowerShell,应该可以更改,让打开就直接进入conda 的base环境

按照这个思路检索到一篇文章pycharm terminal的使用环境配置,配合Anaconda使用

在这里插入图片描述

GitHub 加速计划 / term / terminal
94.53 K
8.17 K
下载
The new Windows Terminal and the original Windows console host, all in the same place!
最近提交(Master分支:2 个月前 )
d04381ec "HighContrast" is not a possible requested theme. So `_UpdateBackgroundForMica()` would force the settings UI to be light or dark. To fix this, we just check if we're in high contrast mode and, if so, we don't bother setting the requested theme. 8 天前
e83434ff Turns out that having the styles for the KeyChordText and ParsedCommandLineText be empty for high contrast mode caused the issue. Since we're already using theme resources for the colors, we automatically adjust properly to whatever the high contrast theme is (Thanks XAML!). Bonus points: - we didn't need the theme dictionaries anymore, so I just moved them to the ResourceDictionary directly - ParsedCommandLineTextBlockStyle isn't used. So I removed it altogether. Validated command palette with multiple high contrast themes. See PR thread for demo. Closes #17914 8 天前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐