所以,我是python的新手,但是直到这一本书之前没有真正的问题..在这一点上我们要安装 lpthw.web
,但是在尝试安装它时我得到一个错误 .
这是我们告诉写入终端的内容:
$ sudo pip install lpthw.web
And this is the error i keep getting:
异常:回溯(最近一次调用最后一次):文件“/Library/Python/2.6/site-packages/pip-1.2.1-py2.6.egg/pip/basecommand.py”,第107行,处于主状态= self.run(options,args)文件“/Library/Python/2.6/site-packages/pip-1.2.1-py2.6.egg/pip/commands/install.py”,第248行,在运行导入setuptools中导入ImportError :没有名为setuptools的模块存储完整的登录/Users/user/Library/Logs/pip.log用户-MacBook-Pro:~user $
And yes, I went to my pip folder and saw that I have nothing with setuptools there. How and why did this happen?
I´m baffled, any advices?
1 回答
在Ubuntu上,您可以通过apt-get获取setuptools: