【发布时间】:2016-10-07 22:48:03
【问题描述】:
我在尝试 setup.py 安装包时收到以下 ImportError:
Traceback (most recent call last):
File "setup.py", line 4, in <module>
from setuptools import setup, Extension
ImportError: No module named setuptools
虽然已经安装了 setuptools,但还是会发生这种情况:
amir@amir-debian:~$ sudo apt-get install python-setuptools
[sudo] password for amir:
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-setuptools is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
为什么python找不到setuptools模块?
【问题讨论】:
标签: python python-2.7 setuptools