From 0d97a6b403bbc6c291bd1ad8de0c237d5d6bb098 Mon Sep 17 00:00:00 2001 From: "rick.chan" Date: Thu, 3 Dec 2020 13:52:01 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E5=AF=B9=20Python=20?= =?UTF-8?q?=E5=8C=85=E7=9A=84=E8=AF=B4=E6=98=8E.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: rick.chan --- .../Language/Python/Package/Python_包.md | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Software/Development/Language/Python/Package/Python_包.md diff --git a/Software/Development/Language/Python/Package/Python_包.md b/Software/Development/Language/Python/Package/Python_包.md new file mode 100644 index 0000000..e76395f --- /dev/null +++ b/Software/Development/Language/Python/Package/Python_包.md @@ -0,0 +1,23 @@ +# Python 包 + +## 1.获取 Python 包 + +一般可到 搜索 Python 包,通过: + +```bash +pip2 install +# 或 +pip3 install +``` + +来安装包。 + +## 2.源码安装 Python 包 + +通过 pypi.org 搜索到 Python 包后可通过跳转到官网的方式获取该包的源码,然后 Clone 源码到本地,进入到源码目录后使用以下命令进行源码安装: + +```bash +python2 setup.py install +# 或 +python3 setup.py install +```