Windows中的PyCharm中导入模块的方法

1.在file-->setting-->project interpreter中

PyCharm中导入第三方包-LMLPHP

2,点击右上角加号,搜索要添加的第三方库的名称,得到后添加模块即可(install package)

PyCharm中导入第三方包-LMLPHP

在Mac中的PyCharm中导入模块的方法

1. PyCharm→Preferences→Project:项目名→Project Interpreter

PyCharm中导入第三方包-LMLPHP

2. 在左下角有个加号 ➕,点击,然后查找需要添加的包

PyCharm中导入第三方包-LMLPHP

当然还有一种更方便的方法,需要你预装anconda

1. 点击下拉按钮--show all ,在弹出的页面点击➕

PyCharm中导入第三方包-LMLPHP

PyCharm中导入第三方包-LMLPHP

2. 添加一个新的,应用返回后,发现anaconda已经帮我们装好了许多第三方库(要预先安装anaconda)

PyCharm中导入第三方包-LMLPHP

PyCharm中导入第三方包-LMLPHP

05-07 12:41
查看更多