ianva / vim-youdao-translater

vim的有道取词翻译插件
ianva.github.com
Other
132 stars 32 forks source link

import request出错 #1

Closed notice501 closed 8 years ago

notice501 commented 10 years ago

hi,我写了篇博客介绍了你的插件 每天一个vim插件–有道翻译 有个用户评论遇到问题:

你好,我使用时为什么显示“ImportError: No module named requests”,当然也不能使用这个插件。我的环境是服务器集群普通用户,自己安装的Python 3.3,设置了LD_LIBRARY_PATH和PATH,又用源码安装了requests,在shell中,$python,import requests,是可以正常使用requests的。
ianva commented 10 years ago

是不是 Requests 装到 python2 上了? 后面我会把 Requests 这个库去掉,因为写这个的时候 python 就学了一下午找了个方便弄的库就上了

notice501 commented 10 years ago

确实还是没有这个依赖比较好。那这个issue就等到你把依赖去了再关吧~

rambo-panda commented 9 years ago

是不支持2.6吗?

ianva commented 9 years ago

没具体测试,本机是 2.7 的

wsdjeg commented 9 years ago

如果是ubuntu系统建议不要使用pip安装软件,自带的apt管理器可以更好的和本地兼容,我安装了后没有任何问题

wsdjeg commented 9 years ago

如果是python2,7 请使用这个命令 sudo apt-get install python-requests

wsdjeg commented 9 years ago

如果是python3 请使用sudo apt-get install python3-requests

JamesKid commented 8 years ago

linux python2.6.6会报错,装了python2.7 会影响ibus输入法,,,郁闷了,,

wsdjeg commented 8 years ago

刚在arch下测试了这个插件,arch下需要: sudo pacman -S python2-requests

ianva commented 8 years ago

thanks for @jicong

wsdjeg commented 8 years ago

移除依赖了?

ianva commented 8 years ago

对,@jicong 提交了一个 pull request,移除了相关依赖,并添加了一些功能,已经 merge,并发了 2.2.0 版

wsdjeg commented 8 years ago

太赞了,这是我最常用的插件

ianva commented 8 years ago

哈哈,你可以感谢他下

wsdjeg commented 8 years ago

@jicong 谢谢你为此插件提交的更新

jicong commented 8 years ago

这也是我这种英语捉急的人经常用的插件,所以就改进了一下。希望能有更多人用起来。