Skip to content

Commit f940b0e

Browse files
author
欧林宝
authored
Update README.md
1 parent 35075b0 commit f940b0e

1 file changed

Lines changed: 23 additions & 10 deletions

File tree

README.md

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,27 @@
44
## 安装须知
55
京东云CLI基于Python语言和京东云Python SDK开发,使用CLI前请安装Python 2.7版本和pip包管理工具。请访问官网下载并安装Python2.7和pip。
66

7-
### Python2.7和pip安装
8-
通过官网安装:
9-
- Python:https://www.python.org/downloads
10-
- pip:https://pip.pypa.io/
11-
12-
使用各发行版包管理工具安装pip,请参考:
13-
14-
https://packaging.python.org/guides/installing-using-linux-tools/#installing-pip-setuptools-wheel-with-linux-package-managers
7+
### Python2.7安装
8+
#### 官网下载安装:
9+
https://www.python.org/downloads
10+
#### 操作系统包管理工具安装
11+
- CentOS
12+
`yum install python`
13+
- Ubuntu
14+
`apt-get install python2.7`
15+
- macOS
16+
`brew install python@2`
17+
18+
### pip安装
19+
- 官网安装请参考:https://pip.pypa.io/
20+
21+
具体命令为
22+
```
23+
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
24+
python get-pip.py
25+
```
26+
27+
- 使用各发行版包管理工具安装pip,请参考[安装方法](https://packaging.python.org/guides/installing-using-linux-tools/#installing-pip-setuptools-wheel-with-linux-package-managers)
1528

1629
### 京东云Python SDK依赖说明
1730
京东云Python SDK不用手动安装,Python包管理工具会自动下载并安装对应版本的依赖包。如果您已经安装了京东云Python SDK,并且因为CLI版本与之不对应而不能正常工作,请参考下面的版本对应表,安装对应版本SDK或删除旧的Python SDK并重新安装CLI。
@@ -26,7 +39,7 @@ https://packaging.python.org/guides/installing-using-linux-tools/#installing-pip
2639
pip安装:
2740
`pip install jdcloud_cli`
2841

29-
源码安装:
42+
源码安装(不依赖pip)
3043
`python setup.py install`
3144

3245
安装后执行以下脚本,打开自动完成功能:
@@ -38,4 +51,4 @@ source ~/.bashrc
3851

3952

4053
### Windows
41-
开发验证中。
54+
开发验证中,即将发布

0 commit comments

Comments
 (0)