Python 第三方库的安装

1. pip

进入命令行,使用 pip install

pip install numpy 

2. 含有 setup.py 文件的第三方库

切换到 setup.py 所在的目录:

python setup.py install

3. git 上库的安装

git 上的 python package 的安装

git clone https://github.com/xx.git
cd xx
python setup.py install

4. .whl 文件的安装

whl 格式的第三方拓展:Unofficial Windows Binaries for Python Extension Packages

  • 使用 pip 安装 wheel
  • pip install **.whl

    pip install python_dateutil-2.5.3-py2.py3-none-any.whl
原文地址:https://www.cnblogs.com/mtcnn/p/9422071.html