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 +```