linux命令行百度云上传下载

pip安装bypy

github地址
注:我尝试过最新版1.6.11无法授权,1.6.10则可以

(base) xueruini@nico2:~/onion_rain/pytorch/object_detection$ pip install bypy==1.6.10
Collecting bypy==1.6.10
  Using cached https://files.pythonhosted.org/packages/f9/d9/b338184fb1dba1eb0efab0511c2d24f537875bdbf373f0521206cdeb5142/bypy-1.6.10-py2.py3-none-any.whl
Requirement already satisfied: requests>=2.10.0 in /home/xueruini/anaconda3/lib/python3.7/site-packages (from bypy==1.6.10) (2.22.0)
Requirement already satisfied: multiprocess>=0.70.0 in /home/xueruini/.local/lib/python3.7/site-packages (from bypy==1.6.10) (0.70.10)
Requirement already satisfied: requests-toolbelt>=0.8.0 in /home/xueruini/.local/lib/python3.7/site-packages (from bypy==1.6.10) (0.9.1)
Requirement already satisfied: idna<2.9,>=2.5 in /home/xueruini/anaconda3/lib/python3.7/site-packages (from requests>=2.10.0->bypy==1.6.10) (2.8)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /home/xueruini/anaconda3/lib/python3.7/site-packages (from requests>=2.10.0->bypy==1.6.10) (1.24.2)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /home/xueruini/anaconda3/lib/python3.7/site-packages (from requests>=2.10.0->bypy==1.6.10) (3.0.4)
Requirement already satisfied: certifi>=2017.4.17 in /home/xueruini/anaconda3/lib/python3.7/site-packages (from requests>=2.10.0->bypy==1.6.10) (2019.9.11)
Requirement already satisfied: dill>=0.3.2 in /home/xueruini/.local/lib/python3.7/site-packages (from multiprocess>=0.70.0->bypy==1.6.10) (0.3.2)
Installing collected packages: bypy
Successfully installed bypy-1.6.10

绑定授权码

(base) xueruini@nico2:~/onion_rain/pytorch/object_detection$ python -m bypy info
Please visit:
https://openapi.baidu.com/oauth/2.0/authorize?client_id=q8WE4EpCsau1oS0MplgMKNBn&response_type=code&redirect_uri=oob&scope=basic+netdisk
And authorize this app
Paste the Authorization Code here within 10 minutes.
Press [Enter] when you are done
bc70e64b6fc0cd9b515b20107b36de2b
Authorizing, please be patient, it may take upto 300 seconds...
Authorizing with the Heroku server ...
Heroku server failed, authorizing with the Heroku1 server ...
Successfully authorized
Quota: 2.020TB
Used: 1.223TB

注:这时候根据提示访问网站登录百度云账号获取授权码,一定要选中授权码手动赋值,点那个“复制授权码”按键不好使!!
在这里插入图片描述

上传

(base) xueruini@nico2:~/onion_rain/pytorch/object_detection$ python -m bypy upload sample/img_compose.py /
(base) xueruini@nico2:~/onion_rain/pytorch/object_detection$

在这里插入图片描述
文件都会被保存在/我的应用数据/bypy/目录下

补充

小文件没有进度条
大文件有进度条
在这里插入图片描述
在这里插入图片描述

下载

先把文件放到 我的网盘/我的应用数据/bypy/

(base) xueruini@nico4:~/onion_rain/pytorch/object_detection$ bypy list                                    
                                                                                                                    
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!                                                    
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!                                                    
Baidu PCS currently gives totally WRONG MD5 hash for remote files, and I AM NOT GOING TO ADAPT TO IT!               
So it if doesn't work, install version '1.6.10' using the following command:                                        
pip install bypy==1.6.10                                                                                            
Version 1.6.10 has a workaround for this.                                                                           
### Seeking maintainer fo this `bypy` project, if you are interested, please create an issue at github, thanks. ### 
----------------------------------------------------------------                                                    
______________MD5__________________________________________________MD5______________________________                
__________________________________________ 1.6.10 ______                                                            
pip install bypy==1.6.10                                                                                            
1.6.10____________________                                                                                          
### ________`bypy`________________________github____issue________###                                                
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!                                                    
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!                                                    
                                                                                                                    
/apps/bypy ($t $f $s $m $d):                                                    
F video10.zip 2081509047 2020-07-25, 17:02:27 9b989655ap73b8afc6dccec9bf68e6e8                       
(base) xueruini@nico4:~/onion_rain/pytorch$ bypy downfile video10.zip                                               
                                                                                                                    
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!                                                    
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!                                                    
Baidu PCS currently gives totally WRONG MD5 hash for remote files, and I AM NOT GOING TO ADAPT TO IT!               
So it if doesn't work, install version '1.6.10' using the following command:                                        
pip install bypy==1.6.10                                                                                            
Version 1.6.10 has a workaround for this.                                                                           
### Seeking maintainer fo this `bypy` project, if you are interested, please create an issue at github, thanks. ### 
----------------------------------------------------------------                                                    
______________MD5__________________________________________________MD5______________________________                
__________________________________________ 1.6.10 ______                                                            
pip install bypy==1.6.10                                                                                            
1.6.10____________________                                                                                          
### ________`bypy`________________________github____issue________###                                                
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!                                                    
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!   
                                                                   
[____________________] 1% (20.0MB/1.9GB)                                                                       
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值