如何安装python的第三方扩展库

来源:互联网 发布:js动态创建对象 编辑:程序博客网 时间:2024/05/22 05:55

首先,打开这个网址,这个网址就类似于maven的中央仓库

https://pypi.python.org/pypi

右上角搜索你自己想要使用的第三方库的名字

例如,我搜索django-bootstrap3的库,就会出现了,点击链接,打开的页面中会教你如何pypi安装第三方库

  1. Install using pip:

    pip install django-bootstrap3

    Alternatively, you can install download or clone this repo and call pip install -e ..

  2. Add to INSTALLED_APPS in your settings.py:

    'bootstrap3',

  3. In your templates, load the bootstrap3 library and use the bootstrap_* tags:


原创粉丝点击