首页 > 代码库 > ImportError: No module named setuptools
ImportError: No module named setuptools
报错:
[root@localhost rpy2-2.8.5]# python setup.py install Traceback (most recent call last): File "setup.py", line 7, in <module> from setuptools import setup, Extension ImportError: No module named setuptools
解决办法,下载
[root@localhost rpy2-2.8.5]# wget http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz --2017-03-09 01:59:42-- http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz Resolving pypi.python.org... 151.101.76.223, 2a04:4e42:12::223 Connecting to pypi.python.org|151.101.76.223|:80... connected. HTTP request sent, awaiting response... 301 Moved Permanently Location: https://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz [following] --2017-03-09 01:59:42-- https://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz Connecting to pypi.python.org|151.101.76.223|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 256862 (251K) [application/octet-stream] Saving to: “setuptools-0.6c11.tar.gz” 100%[=============================================================================================================================>] 256,862 786K/s in 0.3s 2017-03-09 01:59:43 (786 KB/s) - “setuptools-0.6c11.tar.gz” saved [256862/256862]
安装
[root@localhost setuptools-0.6c11]# python setup.py build [root@localhost setuptools-0.6c11]# python setup.py install
ImportError: No module named setuptools
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。