python pip 安装所有库_安装几乎所有库的pip问题

我很难使用pip来安装几乎任何东西。我对编码还不太熟悉,所以我想这可能是我做错了的事情,我选择了简单的安装来完成我所需要的大部分工作,这通常是有效的。不过,现在我正在尝试下载nltk库,但这两项工作都没有完成。

我试着进去sudo pip install nltk

但得到了如下回应:/Library/Frameworks/Python.framework/Versions/2.7/bin/pip run on Sat May 4 00:15:38 2013

Downloading/unpacking nltk

Getting page https://pypi.python.org/simple/nltk/

Could not fetch URL [need more reputation to post link]: There was a problem confirming the ssl certificate:

Will skip URL [need more reputation to post link]/simple/nltk/ when looking for download links for nltk

Getting page [need more reputation to post link]/simple/

Could not fetch URL https://pypi.python. org/simple/: There was a problem confirming the ssl certificate:

Will skip URL [need more reputation to post link] when looking for download links for nltk

Cannot fetch index base URL [need more reputation to post link]

URLs to search for versions for nltk:

* [need more reputation to post link]

Getting page [need more reputation to post link]

Could not fetch URL [need more reputation to post link]: There was a problem confirming the ssl certificate:

Will skip URL [need more reputation to post link] when looking for download links for nltk

Could not find any downloads that satisfy the requirement nltk

No distributions at all found for nltk

Exception information:

Traceback (most recent call last):

File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip-1.3.1-py2.7.egg/pip/basecommand.py", line 139, in main

status = self.run(options, args)

File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip-1.3.1-py2.7.egg/pip/commands/install.py", line 266, in run

requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)

File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip-1.3.1-py2.7.egg/pip/req.py", line 1026, in prepare_files

url = finder.find_requirement(req_to_install, upgrade=self.upgrade)

File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip-1.3.1-py2.7.egg/pip/index.py", line 171, in find_requirement

raise DistributionNotFound('No distributions at all found for %s' % req)

DistributionNotFound: No distributions at all found for nltk

--easy_install installed fragments of the library and the code ran into trouble very quickly upon trying to run it.

对这个问题有什么想法吗?我真的很感谢你给我一些反馈,告诉我怎样才能让pip工作,或者同时做些什么来解决这个问题。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值