【解决方案】cdrive 运行报错 -bash: cdrive: command not found
- Dominant language
- Python
- Stars
- 808
- Forks
- 105
- PR merge metrics
- No merged PRs in 30d
Description
## 安装方式
如果你是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 >
```
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue reports that pip-installed CDNDrive does not make the cdrive command available and documents a PATH workaround. Start by checking how the package exposes its command-line entry point; done means a normal installation lets the user run cdrive without manually locating the executable or editing PATH.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100