Python导入包的方法 1.通过pip命令导入 Mac 安装pip 方法 curl https://bootstrap.pypa.io/get-pip.py | python3 1.打开终端 2.输入命令 pip install + 需要下载的{包名} pip install pandas 2.Pycharm直接导入 1.点开设置 2.找到工程中的解释器 可直接搜索:project interpreter 然后点击增加 3.搜索想安装的包