Pycharm - 找不到 Python 打包工具

问题描述:

我正在尝试在 Pycharm 中为 python3.5 解释器安装软件包.它说,

I'm trying to install packages in Pycharm for python3.5 interpreter. It says,

未找到 Python 打包工具.安装打包工具.

Python packaging tools not found. Install packaging tools.

但是当我尝试安装时,它给出了这个错误.

AttributeError: module 'setuptools.dist' has no attribute 'check_specifier'

我使用的是 Ubuntu 16.04.2,Pycharm 社区版 2017.1.1

I'm using Ubuntu 16.04.2, Pycharm Community edition 2017.1.1

运行此命令,您应该能够在 Pycharm 中安装打包工具:

Run this command and you should be able to install the packaging tools in Pycharm:

sudo apt install python3-pip

如果您使用的是 Python3 解释器,则是 python3-pip,而不是 python-pip.

It's python3-pip, not python-pip if you are using the Python3 interpreter.