通过pip来安装:pip install bypy(支持Python 2.7+,3.3+)
centos 6.5python版本为2.6的,这里我们先要安装python2.7
1、安装sqlite-devel
#yuminstallsqlite-devel-y
2、安装Python2.7
#wgethttps://www.python.org/ftp/python/2.7.8/Python-2.7.8.tgz
#tarxfPython-2.7.8.tgz
#cdPython-2.7.8
#./configure--prefix=/usr/local
#make&&makeinstall
pip2.7安装百度云/百度网盘Python客户端
1、安装pip2.7
#wgethttps://bootstrap.pypa.io/get-pip.py
#/usr/local/bin/python2.7get-pip.py
2、安装百度云/百度网盘Python客户端
#pip2.7installbypy
这样就安装好 linux下的百度云/百度网盘Python客户端
第一次实用会进行验证授权,如下:
#bypyinfo
Pleasevisit:
https://openapi.baidu.com/oauth/2.0/authorize?scope=basic+netdisk&redirect_uri=oob&response_type=code&client_id=q8WE4EpCsau1oS0MplgMKNBn
Andauthorizethisapp
Paste