apachecn/CDNDrive

【解决方案】cdrive 运行报错 -bash: cdrive: command not found

jiangzhonglian opened this issue · 3 comments

安装方式

如果你是pip安装: pip install CDNDrive

使用报错

运行 cdrive 报错

$ cdrive
-bash: cdrive: command not found

根据报错,说明:环境变量没配置

解决方案

sudo find / -name cdrive

路径:  ~/Library/Python/3.8/bin/cdrive

vim ~/.bash_profile

export PATH=$PATH:~/Library/Python/3.8/bin

source ~/.bash_profile

cdrive

usage: CDNDrive [-h] [-v] {login,cookies,userinfo,upload,download,info,history,help,version,exit} ...

Make Picbeds Great Cloud Storages!

positional arguments:
  {login,cookies,userinfo,upload,download,info,history,help,version,exit}
    login               log in to the site
    cookies             set cookies to the site
    userinfo            get userinfo
    upload              upload a file
    download            download a file
    info                show meta info
    history             show upload history
    help                show this help message
    version             show program's version number
    exit                exit program

optional arguments:
  -h, --help            show this help message and exit
  -v, --version         show program's version number and exit
CDNDrive >

Windows 上把${PYTHON_HOME}/Scripts加到$PATH里面。

python -m cdrive

csDeng commented
image