恢复Django 项目

随笔记录

目录

1. 重建Mysql DB

2. 启动Django 项目

2.1 确保你的系统上已安装pip工具。你可以使用以下命令来检查pip是否已安装

2.2  安装Packages

2.2.1 安装Django

2.2.2 安装pymysql

2.2.3 安装 kafka

2.2.4 安装 requests

2.2.5 安装simplepro

2.2.6 安装libjpeg-devel

2.2.7 重新安装simplepro

2.2.8 安装faker 

2.3 所有packages安装完成后,再次运行你的Python脚本

2.4 启动Django 项目

2.5 浏览器访问

3. 添加supervisord 守护进程


1. 重建Mysql DB

2. 启动Django 项目


[root@localhost Init_Sys]# pwd
/home/TestEvn/Risk_Init_V2/Init_Sys
[root@localhost Init_Sys]# 
[root@localhost Init_Sys]# 
[root@localhost Init_Sys]# ll
total 844
drwxr-xr-x. 9 root root    272 Apr 21  2023 Initapp
-rw-r--r--. 1 root root 853282 Apr 21  2023 Initapp.zip
drwxr-xr-x. 3 root root    136 Apr 21  2023 Init_Sys
-rw-r--r--. 1 root root   1022 Apr 21  2023 manage.py
-rw-r--r--. 1 root root    276 Apr 21  2023 Start_Init.sh
[root@localhost Init_Sys]# 
[root@localhost Init_Sys]# python3 manage.py makemigrations Initapp
Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    from django.core.management.commands.runserver import Command as Runserver
ModuleNotFoundError: No module named 'django'
[root@localhost Init_Sys]# 

2.1 确保你的系统上已安装pip工具。你可以使用以下命令来检查pip是否已安装
# 没有Django package, 安装Django

[root@localhost Init_Sys]# 
[root@localhost Init_Sys]# 
[root@localhost Init_Sys]# pip3 --version
pip 9.0.3 from /usr/lib/python3.6/site-packages (python 3.6)
[root@localhost Init_Sys]# 
[root@localhost Init_Sys]# 

2.2  安装Packages
2.2.1 安装Django
# 如果你想安装特定版本的Django,请将上述命令中的"django"替换为所需版本的Django

[root@localhost Init_Sys]# 
[root@localhost Init_Sys]# pip3 install django
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.
Collecting django
  Downloading https://files.pythonhosted.org/packages/c9/69/72663af69f1a70fa186813220c8ec5ce7f9056b6d987077e2c38ed794bee/Django-3.2.23-py3-none-any.whl (7.9MB)
    100% |████████████████████████████████| 7.9MB 26kB/s 
Collecting asgiref<4,>=3.3.2 (from django)
  Downloading https://files.pythonhosted.org/packages/fe/66/577f32b54c50dcd8dec38447258e82ed327ecb86820d67ae7b3dea784f13/asgiref-3.4.1-py3-none-any.whl
Collecting pytz (from django)
  Downloading https://files.pythonhosted.org/packages/32/4d/aaf7eff5deb402fd9a24a1449a8119f00d74ae9c2efa79f8ef9994261fc2/pytz-2023.3.post1-py2.py3-none-any.whl (502kB)
    100% |████████████████████████████████| 512kB 30kB/s 
Collecting sqlparse>=0.2.2 (from django)
  Downloading https://files.pythonhosted.org/packages/98/5a/66d7c9305baa9f11857f247d4ba761402cea75db6058ff850ed7128957b7/sqlparse-0.4.4-py3-none-any.whl (41kB)
    100% |████████████████████████████████| 51kB 24kB/s 
Collecting typing-extensions; python_version < "3.8" (from asgiref<4,>=3.3.2->django)
  Downloading https://files.pythonhosted.org/packages/45/6b/44f7f8f1e110027cf88956b59f2fad776cca7e1704396d043f89effd3a0e/typing_extensions-4.1.1-py3-none-any.whl
Installing collected packages: typing-extensions, asgiref, pytz, sqlparse, django
Successfully installed asgiref-3.4.1 django-3.2.23 pytz-2023.3.post1 sqlparse-0.4.4 typing-extensions-4.1.1
[root@localhost Init_Sys]# 
2.2.2 安装pymysql
[root@localhost Init_Sys]# pip3 install pymysql
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.
Collecting pymysql
  Downloading https://files.pythonhosted.org/packages/4f/52/a115fe175028b058df353c5a3d5290b71514a83f67078a6482cff24d6137/PyMySQL-1.0.2-py3-none-any.whl (43kB)
    100% |████████████████████████████████| 51kB 268kB/s 
Installing collected packages: pymysql
Successfully installed pymysql-1.0.2
[root@localhost Init_Sys]# 
2.2.3 安装 kafka
[root@localhost Init_Sys]# pip3 install kafka-python
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.
Collecting kafka-python
  Downloading https://files.pythonhosted.org/packages/75/68/dcb0db055309f680ab2931a3eeb22d865604b638acf8c914bedf4c1a0c8c/kafka_python-2.0.2-py2.py3-none-any.whl (246kB)
    100% |████████████████████████████████| 256kB 1.0MB/s 
Installing collected packages: kafka-python
Successfully installed kafka-python-2.0.2
[root@localhost Init_Sys]# 
[root@localhost Init_Sys]# 
2.2.4 安装 requests
[root@localhost Init_Sys]# 
[root@localhost Init_Sys]# pip3 install requests
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.
Collecting requests
  Downloading https://files.pythonhosted.org/packages/2d/61/08076519c80041bc0ffa1a8af0cbd3bf3e2b62af10435d269a9d0f40564d/requests-2.27.1-py2.py3-none-any.whl (63kB)
    100% |████████████████████████████████| 71kB 312kB/s 
Collecting urllib3<1.27,>=1.21.1 (from requests)
  Downloading https://files.pythonhosted.org/packages/b0/53/aa91e163dcfd1e5b82d8a890ecf13314e3e149c05270cc644581f77f17fd/urllib3-1.26.18-py2.py3-none-any.whl (143kB)
    100% |████████████████████████████████| 153kB 571kB/s 
Collecting certifi>=2017.4.17 (from requests)
  Downloading https://files.pythonhosted.org/packages/64/62/428ef076be88fa93716b576e4a01f919d25968913e817077a386fcbe4f42/certifi-2023.11.17-py3-none-any.whl (162kB)
    100% |████████████████████████████████| 163kB 1.6MB/s 
Collecting charset-normalizer~=2.0.0; python_version >= "3" (from requests)
  Downloading https://files.pythonhosted.org/packages/06/b3/24afc8868eba069a7f03650ac750a778862dc34941a4bebeb58706715726/charset_normalizer-2.0.12-py3-none-any.whl
Collecting idna<4,>=2.5; python_version >= "3" (from requests)
  Downloading https://files.pythonhosted.org/packages/c2/e7/a82b05cf63a603df6e68d59ae6a68bf5064484a0718ea5033660af4b54a9/idna-3.6-py3-none-any.whl (61kB)
    100% |████████████████████████████████| 71kB 2.3MB/s 
Installing collected packages: urllib3, certifi, charset-normalizer, idna, requests
Successfully installed certifi-2023.11.17 charset-normalizer-2.0.12 idna-3.6 requests-2.27.1 urllib3-1.26.18
[root@localhost Init_Sys]# 
2.2.5 安装simplepro
[root@localhost Init_Sys]# pip3 install simplepro
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.
Collecting simplepro
  Using cached https://files.pythonhosted.org/packages/b5/a2/7d4fc4d98ff39d5453f4f5c7be8c07c593e6f863e0accdefa88f56916622/simplepro-7.2.2.tar.gz
Requirement already satisfied: django>=2.1 in /usr/local/lib64/python3.6/site-packages (from simplepro)
Requirement already satisfied: django-simpleui>=2023.11.15 in /usr/local/lib/python3.6/site-packages (from simplepro)
Requirement already satisfied: django-import-export in /usr/local/lib/python3.6/site-packages (from simplepro)
Requirement already satisfied: requests in /usr/local/lib/python3.6/site-packages (from simplepro)
Requirement already satisfied: rsa in /usr/local/lib/python3.6/site-packages (from simplepro)
Requirement already satisfied: psutil in /usr/local/lib64/python3.6/site-packages (from simplepro)
Collecting pillow (from simplepro)
  Using cached https://files.pythonhosted.org/packages/7d/2a/2fc11b54e2742db06297f7fa7f420a0e3069fdcf0e4b57dfec33f0b08622/Pillow-8.4.0.tar.gz
Requirement already satisfied: sqlparse>=0.2.2 in /usr/local/lib/python3.6/site-packages (from django>=2.1->simplepro)
Requirement already satisfied: pytz in /usr/local/lib/python3.6/site-packages (from django>=2.1->simplepro)
Requirement already satisfied: asgiref<4,>=3.3.2 in /usr/local/lib/python3.6/site-packages (from django>=2.1->simplepro)
Requirement already satisfied: diff-match-patch in /usr/local/lib/python3.6/site-packages (from django-import-export->simplepro)
Requirement already satisfied: tablib[html,ods,xls,xlsx,yaml]>=3.0.0 in /usr/local/lib/python3.6/site-packages (from django-import-export->simplepro)
Requirement already satisfied: idna<4,>=2.5; python_version >= "3" in /usr/local/lib/python3.6/site-packages (from requests->simplepro)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.6/site-packages (from requests->simplepro)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.6/site-packages (from requests->simplepro)
Requirement already satisfied: charset-normalizer~=2.0.0; python_version >= "3" in /usr/local/lib/python3.6/site-packages (from requests->simplepro)
Requirement already satisfied: pyasn1>=0.1.3 in /usr/local/lib/python3.6/site-packages (from rsa->simplepro)
Requirement already satisfied: typing-extensions; python_version < "3.8" in /usr/local/lib/python3.6/site-packages (from asgiref<4,>=3.3.2->django>=2.1->simplepro)
Requirement already satisfied: markuppy; extra == "html" in /usr/local/lib/python3.6/site-packages (from tablib[html,ods,xls,xlsx,yaml]>=3.0.0->django-import-export->simplepro)
Requirement already satisfied: odfpy; extra == "ods" in /usr/local/lib/python3.6/site-packages (from tablib[html,ods,xls,xlsx,yaml]>=3.0.0->django-import-export->simplepro)
Requirement already satisfied: xlrd; extra == "xls" in /usr/local/lib/python3.6/site-packages (from tablib[html,ods,xls,xlsx,yaml]>=3.0.0->django-import-export->simplepro)
Requirement already satisfied: xlwt; extra == "xls" in /usr/local/lib/python3.6/site-packages (from tablib[html,ods,xls,xlsx,yaml]>=3.0.0->django-import-export->simplepro)
Requirement already satisfied: openpyxl>=2.6.0; extra == "xlsx" in /usr/local/lib/python3.6/site-packages (from tablib[html,ods,xls,xlsx,yaml]>=3.0.0->django-import-export->simplepro)
Requirement already satisfied: pyyaml; extra == "yaml" in /usr/local/lib64/python3.6/site-packages (from tablib[html,ods,xls,xlsx,yaml]>=3.0.0->django-import-export->simplepro)
Requirement already satisfied: defusedxml in /usr/local/lib/python3.6/site-packages (from odfpy; extra == "ods"->tablib[html,ods,xls,xlsx,yaml]>=3.0.0->django-import-export->simplepro)
Requirement already satisfied: et-xmlfile in /usr/local/lib/python3.6/site-packages (from openpyxl>=2.6.0; extra == "xlsx"->tablib[html,ods,xls,xlsx,yaml]>=3.0.0->django-import-export->simplepro)
Installing collected packages: pillow, simplepro
  Running setup.py install for pillow ... error
    Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-d51wvxqq/pillow/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-og1tmj5x-record/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.6
    creating build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/BdfFontFile.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/BlpImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/BmpImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/BufrStubImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/ContainerIO.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/CurImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/DcxImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/DdsImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/EpsImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/ExifTags.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/FitsStubImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/FliImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/FontFile.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/FpxImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/FtexImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/GbrImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/GdImageFile.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/GifImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/GimpGradientFile.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/GimpPaletteFile.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/GribStubImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/Hdf5StubImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/IcnsImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/IcoImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/ImImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/Image.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/ImageChops.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/ImageCms.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/ImageColor.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/ImageDraw.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/ImageDraw2.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/ImageEnhance.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/ImageFile.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/ImageFilter.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/ImageFont.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/ImageGrab.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/ImageMath.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/ImageMode.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/ImageMorph.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/ImageOps.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/ImagePalette.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/ImagePath.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/ImageQt.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/ImageSequence.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/ImageShow.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/ImageStat.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/ImageTk.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/ImageTransform.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/ImageWin.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/ImtImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/IptcImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/Jpeg2KImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/JpegImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/JpegPresets.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/McIdasImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/MicImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/MpegImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/MpoImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/MspImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/PSDraw.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/PaletteFile.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/PalmImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/PcdImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/PcfFontFile.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/PcxImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/PdfImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/PdfParser.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/PixarImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/PngImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/PpmImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/PsdImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/PyAccess.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/SgiImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/SpiderImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/SunImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/TarIO.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/TgaImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/TiffImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/TiffTags.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/WalImageFile.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/WebPImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/WmfImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/XVThumbImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/XbmImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/XpmImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/__init__.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/__main__.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/_binary.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/_tkinter_finder.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/_util.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/_version.py -> build/lib.linux-x86_64-3.6/PIL
    copying src/PIL/features.py -> build/lib.linux-x86_64-3.6/PIL
    running egg_info
    writing src/Pillow.egg-info/PKG-INFO
    writing dependency_links to src/Pillow.egg-info/dependency_links.txt
    writing top-level names to src/Pillow.egg-info/top_level.txt
    reading manifest file 'src/Pillow.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no files found matching '*.c'
    warning: no files found matching '*.h'
    warning: no files found matching '*.sh'
    warning: no previously-included files found matching '.appveyor.yml'
    warning: no previously-included files found matching '.clang-format'
    warning: no previously-included files found matching '.coveragerc'
    warning: no previously-included files found matching '.editorconfig'
    warning: no previously-included files found matching '.readthedocs.yml'
    warning: no previously-included files found matching 'codecov.yml'
    warning: no previously-included files matching '.git*' found anywhere in distribution
    warning: no previously-included files matching '*.pyc' found anywhere in distribution
    warning: no previously-included files matching '*.so' found anywhere in distribution
    no previously-included directories found matching '.ci'
    writing manifest file 'src/Pillow.egg-info/SOURCES.txt'
    running build_ext
    
    
    The headers or library files could not be found for jpeg,
    a required dependency when compiling Pillow from source.
    
    Please see the install instructions at:
       https://pillow.readthedocs.io/en/latest/installation.html
    
    Traceback (most recent call last):
      File "/tmp/pip-build-d51wvxqq/pillow/setup.py", line 1024, in <module>
        zip_safe=not (debug_build() or PLATFORM_MINGW),
      File "/usr/lib/python3.6/site-packages/setuptools/__init__.py", line 129, in setup
        return distutils.core.setup(**attrs)
      File "/usr/lib64/python3.6/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/usr/lib64/python3.6/distutils/dist.py", line 955, in run_commands
        self.run_command(cmd)
      File "/usr/lib64/python3.6/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/usr/lib/python3.6/site-packages/setuptools/command/install.py", line 61, in run
        return orig.install.run(self)
      File "/usr/lib64/python3.6/distutils/command/install.py", line 556, in run
        self.run_command('build')
      File "/usr/lib64/python3.6/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/usr/lib64/python3.6/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/usr/lib64/python3.6/distutils/command/build.py", line 135, in run
        self.run_command(cmd_name)
      File "/usr/lib64/python3.6/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/usr/lib64/python3.6/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/usr/lib/python3.6/site-packages/setuptools/command/build_ext.py", line 78, in run
        _build_ext.run(self)
      File "/usr/lib64/python3.6/distutils/command/build_ext.py", line 339, in run
        self.build_extensions()
      File "/tmp/pip-build-d51wvxqq/pillow/setup.py", line 790, in build_extensions
        raise RequiredDependencyException(f)
    __main__.RequiredDependencyException: jpeg
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-d51wvxqq/pillow/setup.py", line 1037, in <module>
        raise RequiredDependencyException(msg)
    __main__.RequiredDependencyException:
    
    The headers or library files could not be found for jpeg,
    a required dependency when compiling Pillow from source.
    
    Please see the install instructions at:
       https://pillow.readthedocs.io/en/latest/installation.html
    
    
    
    ----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-d51wvxqq/pillow/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-og1tmj5x-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-d51wvxqq/pillow/
[root@localhost Init_Sys]# 


# 安装simplePro 失败,根据错误信息显示,安装Pillow库时出现了一个错误。错误提示说找不到jpeg的头文件或库文件,这是在从源码编译Pillow时所需的一个依赖项。

# sudo yum install libjpeg-devel
2.2.6 安装libjpeg-devel
[root@localhost Init_Sys]# yum install libjpeg-devel
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirrors.bfsu.edu.cn
 * epel: mirrors.bfsu.edu.cn
 * extras: mirrors.bfsu.edu.cn
 * updates: mirrors.aliyun.com
Resolving Dependencies
--> Running transaction check
---> Package libjpeg-turbo-devel.x86_64 0:1.2.90-8.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================================================================================================================================================================================================================
 Package                                                                       Arch                                                             Version                                                                Repository                                                      Size
============================================================================================================================================================================================================================================================================================
Installing:
 libjpeg-turbo-devel                                                           x86_64                                                           1.2.90-8.el7                                                           base                                                            99 k

Transaction Summary
============================================================================================================================================================================================================================================================================================
Install  1 Package

Total download size: 99 k
Installed size: 314 k
Is this ok [y/d/N]: y                          # y
Downloading packages:
libjpeg-turbo-devel-1.2.90-8.el7.x86_64.rpm                                                                                                                                                                                                                          |  99 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : libjpeg-turbo-devel-1.2.90-8.el7.x86_64                                                                                                                                                                                                                                  1/1 
  Verifying  : libjpeg-turbo-devel-1.2.90-8.el7.x86_64                                                                                                                                                                                                                                  1/1 

Installed:
  libjpeg-turbo-devel.x86_64 0:1.2.90-8.el7                                                                                                                                                                                                                                                 

Complete!
[root@localhost Init_Sys]# 
[root@localhost Init_Sys]# 
2.2.7 重新安装simplepro
# 重新安装  simplepro

[root@localhost Init_Sys]# pip3 install simplepro
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.
Collecting simplepro
  Using cached https://files.pythonhosted.org/packages/b5/a2/7d4fc4d98ff39d5453f4f5c7be8c07c593e6f863e0accdefa88f56916622/simplepro-7.2.2.tar.gz
Requirement already satisfied: django>=2.1 in /usr/local/lib64/python3.6/site-packages (from simplepro)
Requirement already satisfied: django-simpleui>=2023.11.15 in /usr/local/lib/python3.6/site-packages (from simplepro)
Requirement already satisfied: django-import-export in /usr/local/lib/python3.6/site-packages (from simplepro)
Requirement already satisfied: requests in /usr/local/lib/python3.6/site-packages (from simplepro)
Requirement already satisfied: rsa in /usr/local/lib/python3.6/site-packages (from simplepro)
Requirement already satisfied: psutil in /usr/local/lib64/python3.6/site-packages (from simplepro)
Collecting pillow (from simplepro)
  Using cached https://files.pythonhosted.org/packages/7d/2a/2fc11b54e2742db06297f7fa7f420a0e3069fdcf0e4b57dfec33f0b08622/Pillow-8.4.0.tar.gz
Requirement already satisfied: pytz in /usr/local/lib/python3.6/site-packages (from django>=2.1->simplepro)
Requirement already satisfied: asgiref<4,>=3.3.2 in /usr/local/lib/python3.6/site-packages (from django>=2.1->simplepro)
Requirement already satisfied: sqlparse>=0.2.2 in /usr/local/lib/python3.6/site-packages (from django>=2.1->simplepro)
Requirement already satisfied: tablib[html,ods,xls,xlsx,yaml]>=3.0.0 in /usr/local/lib/python3.6/site-packages (from django-import-export->simplepro)
Requirement already satisfied: diff-match-patch in /usr/local/lib/python3.6/site-packages (from django-import-export->simplepro)
Requirement already satisfied: charset-normalizer~=2.0.0; python_version >= "3" in /usr/local/lib/python3.6/site-packages (from requests->simplepro)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.6/site-packages (from requests->simplepro)
Requirement already satisfied: idna<4,>=2.5; python_version >= "3" in /usr/local/lib/python3.6/site-packages (from requests->simplepro)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.6/site-packages (from requests->simplepro)
Requirement already satisfied: pyasn1>=0.1.3 in /usr/local/lib/python3.6/site-packages (from rsa->simplepro)
Requirement already satisfied: typing-extensions; python_version < "3.8" in /usr/local/lib/python3.6/site-packages (from asgiref<4,>=3.3.2->django>=2.1->simplepro)
Requirement already satisfied: markuppy; extra == "html" in /usr/local/lib/python3.6/site-packages (from tablib[html,ods,xls,xlsx,yaml]>=3.0.0->django-import-export->simplepro)
Requirement already satisfied: odfpy; extra == "ods" in /usr/local/lib/python3.6/site-packages (from tablib[html,ods,xls,xlsx,yaml]>=3.0.0->django-import-export->simplepro)
Requirement already satisfied: xlrd; extra == "xls" in /usr/local/lib/python3.6/site-packages (from tablib[html,ods,xls,xlsx,yaml]>=3.0.0->django-import-export->simplepro)
Requirement already satisfied: xlwt; extra == "xls" in /usr/local/lib/python3.6/site-packages (from tablib[html,ods,xls,xlsx,yaml]>=3.0.0->django-import-export->simplepro)
Requirement already satisfied: openpyxl>=2.6.0; extra == "xlsx" in /usr/local/lib/python3.6/site-packages (from tablib[html,ods,xls,xlsx,yaml]>=3.0.0->django-import-export->simplepro)
Requirement already satisfied: pyyaml; extra == "yaml" in /usr/local/lib64/python3.6/site-packages (from tablib[html,ods,xls,xlsx,yaml]>=3.0.0->django-import-export->simplepro)
Requirement already satisfied: defusedxml in /usr/local/lib/python3.6/site-packages (from odfpy; extra == "ods"->tablib[html,ods,xls,xlsx,yaml]>=3.0.0->django-import-export->simplepro)
Requirement already satisfied: et-xmlfile in /usr/local/lib/python3.6/site-packages (from openpyxl>=2.6.0; extra == "xlsx"->tablib[html,ods,xls,xlsx,yaml]>=3.0.0->django-import-export->simplepro)
Installing collected packages: pillow, simplepro
  Running setup.py install for pillow ... done
  Running setup.py install for simplepro ... done
Successfully installed pillow-8.4.0 simplepro-7.2.2
[root@localhost Init_Sys]# 
2.2.8 安装faker 
root@localhost Init_Sys]# pip3 install faker
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.
Collecting faker
  Downloading https://files.pythonhosted.org/packages/36/e9/eb926239c310abc1502caffe651ac83e72a11c4cc9b9f8d9294be942758b/Faker-14.2.1-py3-none-any.whl (1.6MB)
    100% |████████████████████████████████| 1.6MB 31kB/s 
Collecting python-dateutil>=2.4 (from faker)
  Downloading https://files.pythonhosted.org/packages/36/7a/87837f39d0296e723bb9b62bbb257d0355c7f6128853c78955f57342a56d/python_dateutil-2.8.2-py2.py3-none-any.whl (247kB)
    100% |████████████████████████████████| 256kB 18kB/s 
Requirement already satisfied: typing-extensions>=3.7.4.3; python_version < "3.8" in /usr/local/lib/python3.6/site-packages (from faker)
Collecting six>=1.5 (from python-dateutil>=2.4->faker)
  Downloading https://files.pythonhosted.org/packages/d9/5a/e7c31adbe875f2abbb91bd84cf2dc52d792b5a01506781dbcf25c91daf11/six-1.16.0-py2.py3-none-any.whl
Installing collected packages: six, python-dateutil, faker
Successfully installed faker-14.2.1 python-dateutil-2.8.2 six-1.16.0
[root@localhost Init_Sys]# 
2.3 所有packages安装完成后,再次运行你的Python脚本
# python3 manage.py makemigrations Initapp

[root@localhost Init_Sys]# python3 manage.py makemigrations Initapp
Migrations for 'Initapp':
  Initapp/migrations/0097_alter_dyn_rule_factor_param_config_risk_param_type.py
    - Alter field risk_param_type on dyn_rule_factor_param_config
[root@localhost Init_Sys]# 
[root@localhost Init_Sys]# 
[root@localhost Init_Sys]# 
[root@localhost Init_Sys]# python3 manage.py migrate Initapp
Operations to perform:
  Apply all migrations: Initapp
Running migrations:
  Applying Initapp.0001_initial... OK
  Applying Initapp.0002_auto_20220903_1417... OK
  Applying Initapp.0003_auto_20220904_1658... OK
  Applying Initapp.0004_index_componentinfo_ext_stock_production_ext... OK
  Applying Initapp.0005_auto_20221011_1418... OK
  Applying Initapp.0006_auto_20221012_0952... OK
  Applying Initapp.0007_auto_20221012_0953... OK
  Applying Initapp.0008_auto_20221012_0953... OK
  Applying Initapp.0009_auto_20221012_0954... OK
  Applying Initapp.0010_auto_20221012_0956... OK
  Applying Initapp.0011_auto_20221012_1002... OK
  Applying Initapp.0012_alter_rule_acc_except_control_level_value... OK
  Applying Initapp.0013_auto_20221013_1429... OK
  Applying Initapp.0014_alter_security_info_security_type... OK
  Applying Initapp.0015_auto_20221013_1648... OK
  Applying Initapp.0016_alter_stock_production_ext_securityname... OK
  Applying Initapp.0017_auto_20221013_1653... OK
  Applying Initapp.0018_auto_20221013_1709... OK
  Applying Initapp.0019_auto_20221013_1715... OK
  Applying Initapp.0020_alter_stock_production_ext_contractmultipli... OK
  Applying Initapp.0021_auto_20221013_1720... OK
  Applying Initapp.0022_alter_security_info_security_type... OK
  Applying Initapp.0023_alter_security_info_security_type... OK
  Applying Initapp.0024_alter_rule_info_risk_conno... OK
  Applying Initapp.0025_alter_rule_info_risk_conno... OK
  Applying Initapp.0026_auto_20221017_1059... OK
  Applying Initapp.0027_auto_20221017_1100... OK
  Applying Initapp.0028_alter_rule_account_config_control_level... OK
  Applying Initapp.0029_alter_rule_info_enable_status... OK
  Applying Initapp.0030_auto_20221017_1619... OK
  Applying Initapp.0031_alter_security_info_securityid... OK
  Applying Initapp.0032_alter_security_info_securityid... OK
  Applying Initapp.0033_alter_security_info_securityid... OK
  Applying Initapp.0034_auto_20221017_1737... OK
  Applying Initapp.0035_alter_rule_account_config_account_source... OK
  Applying Initapp.0036_alter_rule_account_config_account_source... OK
  Applying Initapp.0037_alter_security_info_security_exchange... OK
  Applying Initapp.0038_alter_rule_condition_config_risk_param_type... OK
  Applying Initapp.0039_alter_security_info_securityid... OK
  Applying Initapp.0040_auto_20221018_1408... OK
  Applying Initapp.0041_auto_20221018_1454... OK
  Applying Initapp.0042_alter_rule_condition_config_factor_int_para3... OK
  Applying Initapp.0043_auto_20221018_1611... OK
  Applying Initapp.0044_alter_rule_condition_config_risk_param_type... OK
  Applying Initapp.0045_alter_security_info_securityid... OK
  Applying Initapp.0046_auto_20221025_1032... OK
  Applying Initapp.0047_auto_20221025_1037... OK
  Applying Initapp.0048_auto_20221025_1719... OK
  Applying Initapp.0049_auto_20221026_1609... OK
  Applying Initapp.0050_alter_threshold_value_a_pchg1... OK
  Applying Initapp.0051_alter_security_info_securityid... OK
  Applying Initapp.0052_auto_20221027_1139... OK
  Applying Initapp.0053_auto_20221027_1302... OK
  Applying Initapp.0054_auto_20221027_1307... OK
  Applying Initapp.0055_auto_20221027_1321... OK
  Applying Initapp.0056_alter_rule_info_remakrks... OK
  Applying Initapp.0057_auto_20221027_1343... OK
  Applying Initapp.0058_auto_20221027_1538... OK
  Applying Initapp.0059_auto_20221027_1700... OK
  Applying Initapp.0060_alter_rule_account_config_account_source... OK
  Applying Initapp.0061_auto_20221028_1605... OK
  Applying Initapp.0062_alter_rule_info_risk_conno... OK
  Applying Initapp.0063_alter_rule_info_riskcon_begindate... OK
  Applying Initapp.0064_alter_rule_info_riskcon_begindate... OK
  Applying Initapp.0065_auto_20221031_1107... OK
  Applying Initapp.0066_alter_index_componentinfo_ext_componentsecurityexchange... OK
  Applying Initapp.0067_alter_index_componentinfo_ext_componentsecurityexchange... OK
  Applying Initapp.0068_alter_index_componentinfo_ext_securityid... OK
  Applying Initapp.0069_alter_index_componentinfo_ext_securityid... OK
  Applying Initapp.0070_auto_20221031_1355... OK
  Applying Initapp.0071_auto_20221101_1040... OK
  Applying Initapp.0072_alter_account_info_stock_holder_no... OK
  Applying Initapp.0073_auto_20221104_0020... OK
  Applying Initapp.0074_alter_rule_account_config_account_source... OK
  Applying Initapp.0075_auto_20221114_1438... OK
  Applying Initapp.0076_alter_stock_production_ext_securityid... OK
  Applying Initapp.0077_auto_20221114_1450... OK
  Applying Initapp.0078_dynamic_dimension... OK
  Applying Initapp.0079_stock_production_ext_closepx... OK
  Applying Initapp.0080_auto_20221121_1103... OK
  Applying Initapp.0081_alter_dynamic_dimension_dimensionid... OK
  Applying Initapp.0082_auto_20221122_1401... OK
  Applying Initapp.0083_alter_rule_account_config_account_source... OK
  Applying Initapp.0084_dyn_rule_info... OK
  Applying Initapp.0085_alter_dyn_rule_info_risk_conno... OK
  Applying Initapp.0086_alter_dyn_rule_info_risk_conno... OK
  Applying Initapp.0087_auto_20230323_0953... OK
  Applying Initapp.0088_auto_20230323_1123... OK
  Applying Initapp.0089_dyn_rule_acc_except_dyn_rule_account_config_dyn_rule_condition_config_dyn_rule_factor_config_dyn_rul... OK
  Applying Initapp.0090_alter_dyn_rule_info_risk_conno... OK
  Applying Initapp.0091_alter_dyn_rule_factor_param_config_remove_sec_value... OK
  Applying Initapp.0092_alter_dyn_rule_factor_param_config_remove_sec_value... OK
  Applying Initapp.0093_auto_20230328_0927... OK
  Applying Initapp.0094_auto_20230328_0930... OK
  Applying Initapp.0095_auto_20230328_0934... OK
  Applying Initapp.0096_alter_rule_account_config_enable_status... OK
  Applying Initapp.0097_alter_dyn_rule_factor_param_config_risk_param_type... OK
[root@localhost Init_Sys]# 
2.4 启动Django 项目
[root@localhost Init_Sys]# python3 manage.py runserver
Watching for file changes with StatReloader
Performing system checks...

System check identified no issues (0 silenced).

You have 18 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.
Run 'python manage.py migrate' to apply them.
December 11, 2023 - 10:05:35
Django version 3.2.23, using settings 'Init_Sys.settings'
Starting development server at http://192.168.2.247:8888/
Quit the server with CONTROL-C.
2.5 浏览器访问

3. 添加supervisord 守护进程

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:/a/246573.html

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

亿赛通电子文档安全管理系统 SQL注入漏洞复现

0x01 产品简介 亿赛通电子文档安全管理系统&#xff08;简称&#xff1a;CDG&#xff09;是一款电子文档安全加密软件&#xff0c;该系统利用驱动层透明加密技术&#xff0c;通过对电子文档的加密保护&#xff0c;防止内部员工泄密和外部人员非法窃取企业核心重要数据资产&…

【深度学习】强化学习(五)深度强化学习

文章目录 一、强化学习问题1、交互的对象2、强化学习的基本要素3、策略&#xff08;Policy&#xff09;4、马尔可夫决策过程5、强化学习的目标函数6、值函数7、深度强化学习1. 背景与动机2. 关键要素3. 成功案例4. 挑战和未来展望5. 核心概念和方法总结 一、强化学习问题 强化学…

如何用 Cargo 管理 Rust 工程系列 甲

以下内容为本人的学习笔记&#xff0c;如需要转载&#xff0c;请声明原文链接 微信公众号「ENG八戒」https://mp.weixin.qq.com/s/ceMTUzRjDoiLwjn_KfZSrg 这几年 Rust 可谓是炙手可热的新兴编程语言了&#xff0c;而且被投票为最受程序员喜爱的语言。它很现代&#xff0c;专门…

GitHub Universe 2023 Watch Party in Shanghai:在开源世界中找到真我

文章目录 ⭐ 前言⭐ “我”的开源之旅⭐ 为什么要做开源⭐ 要如何做好开源⭐ 开源的深度影响⭐ 小结 ⭐ 前言 周末有幸参加了在上海举行的 GitHub Universe 2023 Watch Party&#xff0c;这是一个充满激情和活力的开源开发者日。我有幸聆听了一场特别令人印象深刻的演讲&#…

Linux,Windows或macOS系统的电脑怎样才能投屏到手机?

很多人都知道手机投屏到电脑的方法&#xff0c;但想要反过来的时候&#xff0c;却束手无策。 如果你想要将电脑投屏到手机&#xff0c;无论你的电脑是Windows&#xff0c;Linux还是macOS系统&#xff0c;无论你的手机是安卓、iOS还是鸿蒙&#xff0c;都可以用下面这个方法实现电…

深度探索Linux操作系统 —— Linux图形原理探讨

系列文章目录 深度探索Linux操作系统 —— 编译过程分析 深度探索Linux操作系统 —— 构建工具链 深度探索Linux操作系统 —— 构建内核 深度探索Linux操作系统 —— 构建initramfs 深度探索Linux操作系统 —— 从内核空间到用户空间 深度探索Linux操作系统 —— 构建根文件系统…

老杨说运维 | 年末大盘点!擎创CEO实时盘点运维大干货,不容错过

2023年即将走到尾声&#xff0c;对于擎创而言&#xff0c;这一年是颇具成长和成就的一年。我们庆幸获得了更多客户的信任&#xff0c;也为他们达到下一个运维阶段提供了充足的助力。 越多的实践就会带来越多新的理解和可优化的经验。这一年来&#xff0c;擎创在运维数据治理、智…

Java的struts2+MySQL+jsp实现登录、注册以及文件上传

Java的struts2MySQLjsp实现登录、注册以及文件上传 项目结构 项目所需jar包文件 jar包下载地址&#xff1a;https://download.csdn.net/download/qq_43001132/88629520 数据库设计SQL CREATE TABLE db_users ( id INT(10) NOT NULL AUTO_INCREMENT, username VARCHAR(50) …

50种css常用的代码(实用)

目录 1、文字超出部分显示省略号 2、中英文自动换行 3、文字阴影 4、设置placeholder的字体样式 5、不固定高宽 div 垂直居中的方法 6、设置滚动条样式 7、实现隐藏滚动条同时又可以滚动 8、创建渐变背景 9、悬停效果&#xff08;Hover&#xff09; 10、改变链接的样…

Unity | Shader基础知识(第五集:案例<小彩球>)

目录 一、本节介绍 1 上集回顾 2 本节介绍 二、原理分析 1 现实中出现彩色的原因 2 软件里的彩色的原理 3 方案 三、 实现数字由【-1,1】映射为【0,1】 1 结论 2 原理 四、代码实现 1 注意事项 2 详解结构体appdata_base 3 接收数据 4 映射数据 5 输出给SV_TAR…

如何在Facebook Business Manager进行企业认证

Facebook Business Manager&#xff0c;简称BM&#xff0c;按照字面意思理解就是Facebook官方的商务管理平台&#xff0c;是供广告主团队去使用的一个管理工具。BM可以绑定Facebook公共主页、广告账户等一系列Facebook账号。通过BM&#xff0c;企业就可以在一个后台&#xff0c…

三层交换机原理与配置

文章目录 三层交换机原理与配置一、三层交换技术概述二、传统的 MLS三、基于CEF 的MLS1、转发信息库&#xff08;FIB&#xff09;2、邻接关系表3、工作原理&#xff1a; 四、三层交换机的配置1、三层交换机配置命令2、三层交换机配置步骤 三层交换机原理与配置 一、三层交换技…

新手卖家如何入局独立站?看这一篇就够了

作为卖家如果有心入局搭建跨境独立站&#xff0c;先要了解清楚什么是独立站&#xff1f;优势是什么&#xff1f;再去思考如何入局独立站&#xff1f; 一、什么是独立站&#xff1f; 独立站&#xff0c;顾名思义&#xff0c;就是一个独立的网站&#xff0c;它不受限于任何平台&a…

docker-compose容器编排(单机一键拉起所有容器)

1、安装docker-compose实验 安装完成 2、yaml文件 &#xff08;1&#xff09;定义 一种直观的、以竖列形式展示序列化数据格式的标记语言&#xff0c;可读性高。类似于json格式&#xff0c;但语法简单 yaml通过缩进表示数据结构&#xff0c;连续的项目用-减号表示 &#x…

【OPNEGIS】Geoserver原地升级jetty,解决Apache HTTP/2拒绝服务漏洞 (CVE-2023-44487)

Geoserver是我们常用的地图服务器&#xff0c;在开源系统中的应用比较广泛。在实际环境中&#xff0c;我们可能会选用官方的二进制安装包进行部署&#xff0c;这样只要服务器上有java环境就可以运行&#xff0c;方便在现场进行部署。 1.问题来源 这次由于甲方一月一次的漏洞扫…

HarmonyOS保存应用数据

数据管理 1 概述 在移动互联网蓬勃发展的今天&#xff0c;移动应用给我们生活带来了极大的便利&#xff0c;这些便利的本质在于数据的互联互通。因此在应用的开发中数据存储占据了非常重要的位置&#xff0c;HarmonyOS应用开发也不例外。 本文将为您介绍HarmonyOS提供的数据管…

Java的没落 .NET的崛起

曾几何时&#xff0c;Java可是排列在编程语言的第一名的。而现在跌落到第三名。我觉得Java没落有以下几点原因: oracle收购之后&#xff0c;java不再开源。Java能发展是因为开源免费跨平台&#xff0c;现在这么一搞&#xff0c;Java都要收费&#xff0c;使用的人自然就少了。反…

2019年第八届数学建模国际赛小美赛C题预测通过拥堵路段所需的时间解题全过程文档及程序

2019年第八届数学建模国际赛小美赛 C题 预测通过拥堵路段所需的时间 原题再现&#xff1a; 在导航软件中&#xff0c;行程时间的估计往往是一个重要的功能。现有的导航软件往往通过出租车或安装了该软件的车辆获取实时GPS数据来确定当前的路况。在交通拥堵严重的情况下&#…

IC卡卡号修改UID卡CUID卡物理卡号修改考勤工号修改

普通M1卡的物理卡号是锁死的&#xff0c;UID卡、CUID卡、FUID卡是特殊的M1卡&#xff0c;他们的物理卡号是可以修改的。考勤卡、门禁等读取到的IC卡卡号是这样的0136098153&#xff0c;10位卡号&#xff0c;这个卡号是随机的&#xff0c;不连续的&#xff0c;没有规律&#xff…

Unity中后处理 脚本 和 Shader

文章目录 前言一、我们先创建一个默认的后处理Shader&#xff0c;用于脚本测试二、在脚本中使用Graphics.Blit();1、我们先公开一个材质&#xff0c;用于测试后处理效果2、因为在实际开发中&#xff0c;我们不可能为每一个后处理Shader创建对应的材质球。所以&#xff0c;需要对…