添加更换pycharm python环境 在设置中找到 file --> settings --> Project:xxxxxx–>project interpreter 添加新环境 点击2,找到你电脑中的python环境所在位置。 这里就会有刚刚添加的环境,就可进行切换