Python setup.py install 错误:缺少 2to3 工具
在使用 python setup.py install 安装 Python 模块时,遇到提示 'Python 3.X support requires the 2to3 tool. It normally comes with Python 3.X but (apparenty) not on your distribution. Please find out what package you need to get 2to3 and install it.',表示你需要安装 2to3 工具以支持 Python 3.X 版本。
这个工具通常随 Python 3.X 一起安装,但在你的发行版上似乎没有安装。你需要找到需要获取 2to3 的软件包并安装它。例如,在 Ubuntu 上,你可以使用以下命令安装:
sudo apt-get install python3-lib2to3
安装完成后,你就可以重新运行 python setup.py install 命令来安装模块了。
原文地址: https://www.cveoy.top/t/topic/lyZv 著作权归作者所有。请勿转载和采集!