Linux实现百度云文件上传 / 下载 / 同步

yum -y install epel-release
yum -y install python-pip
yum clean all
pip install –upgrade pip
pip install bypy

ERROR: Cannot uninstall ‘requests’. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
解决方法:
sudo pip install –ignore-installed requests即可

如果显示No package python-pip available.则是epel-release没有启用!
vi /etc/yum.repos.d/epel.repo 将enabled=0改为enabled=1。

授权
执行bypy info,会给一个链接,用浏览器打开,将授权码复制过来即可。

上传
上传单个文件的命令如下:bypy upload 文件名,如
bypy upload 上传的文件名字

下载单个文件
bypy downfile 下载文件名

把云盘内容下载到本地来,下面两个命令也可以
bypy syncdown 目录地址
bypy downdir 目录地址

发表评论