Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jiangzhonglian opened this issue Aug 14, 2020 · 3 comments

Comments

@jiangzhonglian
Copy link
Member

jiangzhonglian commented Aug 14, 2020

安装方式

如果你是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 >
@jiangzhonglian jiangzhonglian pinned this issue Aug 14, 2020
@jiangzhonglian jiangzhonglian changed the title cdrive 使用报错 -bash: cdrive: command not found 【解决方案】cdrive 使用报错 -bash: cdrive: command not found Aug 14, 2020
@jiangzhonglian jiangzhonglian changed the title 【解决方案】cdrive 使用报错 -bash: cdrive: command not found 【解决方案】cdrive 运行报错 -bash: cdrive: command not found Aug 14, 2020
@wizardforcel
Copy link
Contributor

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

@hmsjy2017
Copy link

python -m cdrive

@csDeng
Copy link

csDeng commented Sep 2, 2023

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants