补充对 Python 包的说明.
Signed-off-by: rick.chan <chenyang@autoai.com>
This commit is contained in:
parent
6ba4c3965d
commit
0d97a6b403
|
@ -0,0 +1,23 @@
|
|||
# Python 包
|
||||
|
||||
## 1.获取 Python 包
|
||||
|
||||
一般可到 <https://pypi.org> 搜索 Python 包,通过:
|
||||
|
||||
```bash
|
||||
pip2 install <package name>
|
||||
# 或
|
||||
pip3 install <package name>
|
||||
```
|
||||
|
||||
来安装包。
|
||||
|
||||
## 2.源码安装 Python 包
|
||||
|
||||
通过 pypi.org 搜索到 Python 包后可通过跳转到官网的方式获取该包的源码,然后 Clone 源码到本地,进入到源码目录后使用以下命令进行源码安装:
|
||||
|
||||
```bash
|
||||
python2 setup.py install
|
||||
# 或
|
||||
python3 setup.py install
|
||||
```
|
Loading…
Reference in New Issue