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 file
Installed 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
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\Scripts
Installed 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
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 file
Installed 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
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\Scripts
Installed 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
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 file
Installed 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
|