pycharm新建项目配置虚拟环境
Name是虚拟环境的名字,Location是保存的位置,Base interpreter是源Python解释器的位置,Inherit global site-packages:是否要继承源解释器环境中安装的第三方包(pip install xxx 的包)。
建议把 Inherit global site-packages 和 make available to all project 都勾选了。

File---Settings中 Project interpreter中选择对应的pyhon版本进行切换

浙公网安备 33010602011771号