openwrt下的python客户端SyncY总是提示“import pycurl”,明明都已经配置OK的。有知道的人请回复我吧。。。

反正bypy客户端竟然配置成功。意外之喜。。。

首先要把python配置好,安装配置python是一定的

root@wangqinyang:~/bypy# opkg install python
Package python (2.7.8-3) installed in root is up to date.

python需要Requests库,先看看有没有安装easy_install,

easy_install
bash: easy_install: command not found

没有easy_install,安装easy_install,先下载ez_setup.py,setuptools-12.0.4.zip,放在同一目录下,解压ez_setup.zip 然后安装

bypy   ez_setup  setuptools-12.0.4

先安装unzip

root@wangqinyang:~# opkg install unzip
root@wangqinyang:~# mkdir python
root@wangqinyang:~# cd python
root@wangqinyang:~/python# chmod 755 *.py
root@wangqinyang:~/python# ls -l
-rw-r--r--    1 root     root         49285 Jan 24 11:31 bypy-master.zip
-rwxr-xr-x    1 root     root         10479 Jan 24 10:13 ez_setup.py
-rw-r--r--    1 root     root        673137 Jan 24 10:16 setuptools-12.0.4.zip
root@wangqinyang:~/python# python ez_setup.py

安装好easy_install后,直接运行 

root@wangqinyang:~/python# easy_install requests
Searching for requests
Best match: requests 2.5.1
Processing requests-2.5.1-py2.7.egg
requests 2.5.1 is already the active version in easy-install.pth

Using /usr/lib/python2.7/site-packages/requests-2.5.1-py2.7.egg
Processing dependencies for requests
Finished processing dependencies for requests

安装好requests库后就可以安装运行bypy了…

具体过程可以参见

http://qinyang.me/581.html