1、在pypi官网中下载tar包

https://pypi.org/project/django-bootstrap-modal-forms/#files


2、加压下载好的压缩包,将包中的setup.py中的这一行

with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:README = readme.read()

修改为:

with open(os.path.join(os.path.dirname(__file__), 'README.rst'),encoding='UTF-8') as readme:README = readme.read()

note:即加上编码格式UTF-8

3、安装

使用cmd调出命令行界面,执行以下命令

python setup.py install
C:\python project\django-bootstrap-modal-forms-2.2.0\django-bootstrap-modal-forms-2.2.0>python setup.py install
running install
running bdist_egg
running egg_info
writing django_bootstrap_modal_forms.egg-info\PKG-INFO
writing dependency_links to django_bootstrap_modal_forms.egg-info\dependency_links.txt
writing requirements to django_bootstrap_modal_forms.egg-info\requires.txt
writing top-level names to django_bootstrap_modal_forms.egg-info\top_level.txt
reading manifest file 'django_bootstrap_modal_forms.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'LICENSE'
writing manifest file 'django_bootstrap_modal_forms.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
creating build
creating build\lib
creating build\lib\bootstrap_modal_forms
copying bootstrap_modal_forms\compatibility.py -> build\lib\bootstrap_modal_forms
copying bootstrap_modal_forms\forms.py -> build\lib\bootstrap_modal_forms
copying bootstrap_modal_forms\generic.py -> build\lib\bootstrap_modal_forms
copying bootstrap_modal_forms\mixins.py -> build\lib\bootstrap_modal_forms
copying bootstrap_modal_forms\utils.py -> build\lib\bootstrap_modal_forms
copying bootstrap_modal_forms\__init__.py -> build\lib\bootstrap_modal_forms
creating build\lib\examples
copying examples\admin.py -> build\lib\examples
copying examples\apps.py -> build\lib\examples
copying examples\forms.py -> build\lib\examples
copying examples\models.py -> build\lib\examples
copying examples\tests.py -> build\lib\examples
copying examples\urls.py -> build\lib\examples
copying examples\views.py -> build\lib\examples
copying examples\__init__.py -> build\lib\examples
creating build\lib\setup
copying setup\settings.py -> build\lib\setup
copying setup\urls.py -> build\lib\setup
copying setup\wsgi.py -> build\lib\setup
copying setup\__init__.py -> build\lib\setup
creating build\lib\tests
copying tests\base.py -> build\lib\tests
copying tests\tests_functional.py -> build\lib\tests
copying tests\tests_unit.py -> build\lib\tests
copying tests\__init__.py -> build\lib\tests
creating build\lib\examples\migrations
copying examples\migrations\0001_initial.py -> build\lib\examples\migrations
copying examples\migrations\__init__.py -> build\lib\examples\migrations
creating build\lib\bootstrap_modal_forms\static
creating build\lib\bootstrap_modal_forms\static\js
copying bootstrap_modal_forms\static\js\jquery.bootstrap.modal.forms.js -> build\lib\bootstrap_modal_forms\static\js
copying bootstrap_modal_forms\static\js\jquery.bootstrap.modal.forms.min.js -> build\lib\bootstrap_modal_forms\static\js
creating build\bdist.win-amd64
creating build\bdist.win-amd64\egg
creating build\bdist.win-amd64\egg\bootstrap_modal_forms
copying build\lib\bootstrap_modal_forms\compatibility.py -> build\bdist.win-amd64\egg\bootstrap_modal_forms
copying build\lib\bootstrap_modal_forms\forms.py -> build\bdist.win-amd64\egg\bootstrap_modal_forms
copying build\lib\bootstrap_modal_forms\generic.py -> build\bdist.win-amd64\egg\bootstrap_modal_forms
copying build\lib\bootstrap_modal_forms\mixins.py -> build\bdist.win-amd64\egg\bootstrap_modal_forms
creating build\bdist.win-amd64\egg\bootstrap_modal_forms\static
creating build\bdist.win-amd64\egg\bootstrap_modal_forms\static\js
copying build\lib\bootstrap_modal_forms\static\js\jquery.bootstrap.modal.forms.js -> build\bdist.win-amd64\egg\bootstrap_modal_forms\static\js
copying build\lib\bootstrap_modal_forms\static\js\jquery.bootstrap.modal.forms.min.js -> build\bdist.win-amd64\egg\bootstrap_modal_forms\static\js
copying build\lib\bootstrap_modal_forms\utils.py -> build\bdist.win-amd64\egg\bootstrap_modal_forms
copying build\lib\bootstrap_modal_forms\__init__.py -> build\bdist.win-amd64\egg\bootstrap_modal_forms
creating build\bdist.win-amd64\egg\examples
copying build\lib\examples\admin.py -> build\bdist.win-amd64\egg\examples
copying build\lib\examples\apps.py -> build\bdist.win-amd64\egg\examples
copying build\lib\examples\forms.py -> build\bdist.win-amd64\egg\examples
creating build\bdist.win-amd64\egg\examples\migrations
copying build\lib\examples\migrations\0001_initial.py -> build\bdist.win-amd64\egg\examples\migrations
copying build\lib\examples\migrations\__init__.py -> build\bdist.win-amd64\egg\examples\migrations
copying build\lib\examples\models.py -> build\bdist.win-amd64\egg\examples
copying build\lib\examples\tests.py -> build\bdist.win-amd64\egg\examples
copying build\lib\examples\urls.py -> build\bdist.win-amd64\egg\examples
copying build\lib\examples\views.py -> build\bdist.win-amd64\egg\examples
copying build\lib\examples\__init__.py -> build\bdist.win-amd64\egg\examples
creating build\bdist.win-amd64\egg\setup
copying build\lib\setup\settings.py -> build\bdist.win-amd64\egg\setup
copying build\lib\setup\urls.py -> build\bdist.win-amd64\egg\setup
copying build\lib\setup\wsgi.py -> build\bdist.win-amd64\egg\setup
copying build\lib\setup\__init__.py -> build\bdist.win-amd64\egg\setup
creating build\bdist.win-amd64\egg\tests
copying build\lib\tests\base.py -> build\bdist.win-amd64\egg\tests
copying build\lib\tests\tests_functional.py -> build\bdist.win-amd64\egg\tests
copying build\lib\tests\tests_unit.py -> build\bdist.win-amd64\egg\tests
copying build\lib\tests\__init__.py -> build\bdist.win-amd64\egg\tests
byte-compiling build\bdist.win-amd64\egg\bootstrap_modal_forms\compatibility.py to compatibility.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\bootstrap_modal_forms\forms.py to forms.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\bootstrap_modal_forms\generic.py to generic.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\bootstrap_modal_forms\mixins.py to mixins.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\bootstrap_modal_forms\utils.py to utils.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\bootstrap_modal_forms\__init__.py to __init__.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\examples\admin.py to admin.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\examples\apps.py to apps.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\examples\forms.py to forms.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\examples\migrations\0001_initial.py to 0001_initial.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\examples\migrations\__init__.py to __init__.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\examples\models.py to models.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\examples\tests.py to tests.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\examples\urls.py to urls.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\examples\views.py to views.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\examples\__init__.py to __init__.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\setup\settings.py to settings.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\setup\urls.py to urls.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\setup\wsgi.py to wsgi.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\setup\__init__.py to __init__.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\tests\base.py to base.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\tests\tests_functional.py to tests_functional.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\tests\tests_unit.py to tests_unit.cpython-39.pyc
byte-compiling build\bdist.win-amd64\egg\tests\__init__.py to __init__.cpython-39.pyc
creating build\bdist.win-amd64\egg\EGG-INFO
copying django_bootstrap_modal_forms.egg-info\PKG-INFO -> build\bdist.win-amd64\egg\EGG-INFO
copying django_bootstrap_modal_forms.egg-info\SOURCES.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying django_bootstrap_modal_forms.egg-info\dependency_links.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying django_bootstrap_modal_forms.egg-info\requires.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying django_bootstrap_modal_forms.egg-info\top_level.txt -> build\bdist.win-amd64\egg\EGG-INFO
zip_safe flag not set; analyzing archive contents...
setup.__pycache__.settings.cpython-39: module references __file__
creating dist
creating 'dist\django_bootstrap_modal_forms-2.2.0-py3.9.egg' and adding 'build\bdist.win-amd64\egg' to it
removing 'build\bdist.win-amd64\egg' (and everything under it)
Processing django_bootstrap_modal_forms-2.2.0-py3.9.egg
creating c:\software\python\python39\lib\site-packages\django_bootstrap_modal_forms-2.2.0-py3.9.egg
Extracting django_bootstrap_modal_forms-2.2.0-py3.9.egg to c:\software\python\python39\lib\site-packages
Adding django-bootstrap-modal-forms 2.2.0 to easy-install.pth fileInstalled c:\software\python\python39\lib\site-packages\django_bootstrap_modal_forms-2.2.0-py3.9.egg
Processing dependencies for django-bootstrap-modal-forms==2.2.0
Searching for Django>=1.8
Reading https://pypi.org/simple/Django/
Downloading https://files.pythonhosted.org/packages/66/90/bce00eb942fbc47b0774ac78910ee4e6f719572aad56dc238823e5d0ee54/Django-4.0.4-py3-none-any.whl#sha256=07c8638e7a7f548dc0acaaa7825d84b7bd42b10e8d22268b3d572946f1e9b687
Best match: Django 4.0.4
Processing Django-4.0.4-py3-none-any.whl
Installing Django-4.0.4-py3-none-any.whl to c:\software\python\python39\lib\site-packages
Adding Django 4.0.4 to easy-install.pth file
Installing django-admin-script.py script to C:\software\python\Python39\Scripts
Installing django-admin.exe script to C:\software\python\Python39\ScriptsInstalled c:\software\python\python39\lib\site-packages\django-4.0.4-py3.9.egg
Searching for tzdata
Reading https://pypi.org/simple/tzdata/
Downloading https://files.pythonhosted.org/packages/89/2d/49329ebec33b14dae61ecc8c85abe596341832fa36c4bcd3d99fddda018b/tzdata-2022.1-py2.py3-none-any.whl#sha256=238e70234214138ed7b4e8a0fab0e5e13872edab3be586ab8198c407620e2ab9
Best match: tzdata 2022.1
Processing tzdata-2022.1-py2.py3-none-any.whl
Installing tzdata-2022.1-py2.py3-none-any.whl to c:\software\python\python39\lib\site-packages
Adding tzdata 2022.1 to easy-install.pth fileInstalled c:\software\python\python39\lib\site-packages\tzdata-2022.1-py3.9.egg
Searching for sqlparse>=0.2.2
Reading https://pypi.org/simple/sqlparse/
Downloading https://files.pythonhosted.org/packages/05/40/d836d55fb3f467243ee839ab7b814822fda522cd395fa41e282684e71ee5/sqlparse-0.4.2-py3-none-any.whl#sha256=48719e356bb8b42991bdbb1e8b83223757b93789c00910a616a071910ca4a64d
Best match: sqlparse 0.4.2
Processing sqlparse-0.4.2-py3-none-any.whl
Installing sqlparse-0.4.2-py3-none-any.whl to c:\software\python\python39\lib\site-packages
Adding sqlparse 0.4.2 to easy-install.pth file
Installing sqlformat-script.py script to C:\software\python\Python39\Scripts
Installing sqlformat.exe script to C:\software\python\Python39\ScriptsInstalled c:\software\python\python39\lib\site-packages\sqlparse-0.4.2-py3.9.egg
Searching for asgiref<4,>=3.4.1
Reading https://pypi.org/simple/asgiref/
Downloading https://files.pythonhosted.org/packages/0b/9f/5f3b91391578312827561b669a0397d58535b4e82966c8f1667525c7d563/asgiref-3.5.0-py3-none-any.whl#sha256=88d59c13d634dcffe0510be048210188edd79aeccb6a6c9028cdad6f31d730a9
Best match: asgiref 3.5.0
Processing asgiref-3.5.0-py3-none-any.whl
Installing asgiref-3.5.0-py3-none-any.whl to c:\software\python\python39\lib\site-packages
Adding asgiref 3.5.0 to easy-install.pth fileInstalled c:\software\python\python39\lib\site-packages\asgiref-3.5.0-py3.9.egg
Finished processing dependencies for django-bootstrap-modal-forms==2.2.0


【Python】在Windows 10 中,安装django-bootstrap-modal-forms相关推荐

  1. 如何在 Windows 10 中安装 WSL2 的 Linux 子系统

    本文介绍如何在 Windows 10 中安装 WSL2 的 Linux 子系统 本文内容 第一步:启用虚拟机平台和 Linux 子系统功能 第二步:安装一个 Linux 发行版 第三步:启用 WSL2 ...

  2. 在中文版Windows 10 中安装日语支持

    在中文版Windows 10 中安装日语支持 背景 下载离线日文输入法和字体安装包 将日文输入法和字体安装包安装到当前系统 将日文输入法和字体安装包安装到离线安装镜像中 背景 因为公司同时使用中文和日 ...

  3. 此语言无法安装在此计算机,[修复]无法在Windows 10中安装语言包 | MOS86

    我们都知道,如果要使用母语运行Windows 10,则需要在计算机上安装相同的语言包.安装新的语言包被视为可选功能,它通过Windows Update功能完成.要在Windows 10中添加新语言,请 ...

  4. centos安装mysql wsl_如何在 Windows 10 中安装 WSL2 的 Linux 子系统

    什么是WSL? Windows Subsystem for Linux,适用于 Linux 的 Windows 子系统可让开发人员按原样运行 GNU/Linux 环境 - 包括大多数命令行工具.实用工 ...

  5. Windows 10中安装.net framework提示已经安装

    前言 因为.net framework是office组件之一,excel打开时候,会自动加载.net framework组件.当.net framework版本过低或者没有安装时,excel刷新会提示 ...

  6. python在windows系统中安装pandas,numpy

    进入python的安装目录的sripts文件夹下, 在该文件夹下进入命令行,在命令行输入pip install pandas 等待成功安装 转载自:https://www.cnblogs.com/xu ...

  7. 【Python】Windows 10 中卸载Python

    1.使用安装包卸载python 运行安装Python时的安装包,点击"Uninstall" 会出现下图所示界面,表示正在卸载: 出现下图所示界面,表示卸载成功 最后删除python ...

  8. 如何在 Windows 10 上安装和配置 SNMP 服务并通过组策略配置 SNMP 设置

    简单网络管理协议或 SNMP用于企业网络上的监控.事件通知和网络设备管理.该协议由一组网络管理标准组成,包括应用层协议.数据库模式和一组数据对象.SNMP 可以从任何网络设备接收各种类型的信息(正常运 ...

  9. 如何在 Windows 10 上安装华为模拟器eNSP?保姆级的教程来喽,附安装包下载

    由于最新版本的 eNSP不再包含必备组件 VirtualBox 和 WinPcap,为了使安装生效,我们需要 预先安装这些组件.在这篇文章中,我将向您介绍如何在 Windows 10 中安装 eNSP ...

  10. 如何在Windows 10上安装Python

    Installing and using Python on Windows 10 is very simple. The installation procedure involves just t ...

最新文章

  1. DHCP和DNS的概念—Vecloud微云
  2. 月入5万,程序员夫人们过上贵妇生活了吗?
  3. vue全局使用electron
  4. Python笔记-使用uiautomator2编写某APP注册机
  5. SAP License:部分清帐和剩余清帐的区别(实例)
  6. ASP.NET通过Global.asax和Timer定时器定时运行后台代码
  7. jquery 拖动改变div 容器大小
  8. Ubuntu Server Nginx 下配置 mono 下运行 asp.net mvc
  9. pandownload 替代品_Pandownload倒下了,还有它,又一款百度云下载神器,10M/s
  10. 【台达 PLC - 1】 - 编程软件(WPL)
  11. C语言 一元多项式求导
  12. GMM-HMM 详解
  13. c语言错误c1083是什么意思,fatal error C1083: Cannot open include file: 'stdafx.h': No such file or directo...
  14. ros中的launch文件
  15. 没想到你是这样的MethodArgumentNotValidException
  16. linux安装qq(deb文件)
  17. 百度的注册页面(css+div实现)
  18. 33岁跳槽无路,走投无路之际受贵人指点,成功上岸阿里(Java岗)
  19. 神经元的结构模型图片,神经元模型图片解析
  20. 数据库异常状态:Recovery Pending,Suspect,估计Recovery的剩余时间

热门文章

  1. 实验室信息管理系统的进化史
  2. FCM和Threshold
  3. python字典内置方法_python之字典二 内置方法总结
  4. 常见的四种EDI传输协议
  5. 苹果创始人沃兹尼亚克:喜欢小米 乔布斯没那么神!
  6. 2019年天梯赛第一阶段(1-8)全解
  7. TFT液晶屏-真彩色高亮度高分辨率的液晶显示屏
  8. cf手游服务器连接中断,CF手游服务器连接失败怎么回事 无法连接服务器
  9. asio ssl 笔记
  10. 使用代理ip进行反反爬虫——爬取句子迷网站,获取小说龙族经典句子