type
status
date
slug
summary
tags
category
icon
password
我在用pycharm时想直接使用anaconda的base环境,因为base环境中有七百多个包,不用自己再在anaconda里配置新的环境然后再添加需要的包,这样比较方便。
中文互联网搜了一圈都没搜到真正有用的教程,大部分都是复制黏贴。然后使用英文一搜就找到了解决方法。
这里选择add interpreter
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fcbcd2568-69bf-4f32-b8df-e72e287a3256%2FUntitled.png?table=block&id=bff29fb4-3d2b-44ea-8fa2-ad2e37ea41b2&t=bff29fb4-3d2b-44ea-8fa2-ad2e37ea41b2&width=1000&cache=v2)
然后选择system interpreter,添加anaconda的python.exe文件
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F81e23674-48a9-473b-8caf-1f97270f9c0f%2FUntitled.png?table=block&id=b123a2de-b8ca-4410-8125-e3529ef3fcd7&t=b123a2de-b8ca-4410-8125-e3529ef3fcd7&width=1381&cache=v2)
然后新建工程,发现解释器已经是anaconda的base环境了。
参考连接: