安装httprunner manager遇到的坑

阿里云国内75折 回扣 微信号:monov8
阿里云国际,腾讯云国际,低至75折。AWS 93折 免费开户实名账号 代冲值 优惠多多 微信号:monov8 飞机:@monov6

安装httprunner manager参考博客https://www.cnblogs.com/MrqiuS/p/12944481.html

安装mysqlclient报错

Collecting mysqlclient==1.3.12
  Downloading https://mirrors.aliyun.com/pypi/packages/6f/86/bad31f1c1bb0cc99e88ca2adb7cb5c71f7a6540c1bb001480513de76a931/mysqlclient-1.3.12.tar.gz (89 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 89.8/89.8 kB 1.7 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [11 lines of output]
      /bin/sh: mysql_config: command not found
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-w1x6vzlj/mysqlclient_1fdc9f26749f405e958414a44857b995/setup.py", line 17, in <module>
          metadata, options = get_config()
        File "/tmp/pip-install-w1x6vzlj/mysqlclient_1fdc9f26749f405e958414a44857b995/setup_posix.py", line 44, in get_config
          libs = mysql_config("libs_r")
        File "/tmp/pip-install-w1x6vzlj/mysqlclient_1fdc9f26749f405e958414a44857b995/setup_posix.py", line 26, in mysql_config
          raise EnvironmentError("%s not found" % (mysql_config.path,))
      OSError: mysql_config not found
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

解决办法

先安装mysql-devel

yum install mysql-devel -y

安装anyjson>=0.3.3报错

Collecting anyjson>=0.3.3
  Downloading https://mirrors.aliyun.com/pypi/packages/c3/4d/d4089e1a3dd25b46bebdb55a992b0797cff657b4477bc32ce28038fdecbc/anyjson-0.3.3.tar.gz (8.3 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      error in anyjson setup command: use_2to3 is invalid.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

主要因为在setuptools 58之后的版本已经废弃了use_2to3

解决办法

只需安装setuptools 低于58版本就可以了

pip install setuptools==50.3.2

进入注册页面时报错cannot import name 'escape' from 'jinja2'

解决方法

将jinja2的版本降为3.0.3

pip3 install jinja2==3.0.3

界面样式丢失amazeui.min.css样式引用源地址无法访问的问题

解决方法

在代码中的templates文件夹下base.html文件中找到原amazeui.min.css样式引用源地址,将引用源http://cdn.amazeui.org/amazeui/2.7.2/css/amazeui.min.css 替换为 https://pagecdn.io/lib/amazeui/2.7.2/css/amazeui.min.css

参考https://blog.csdn.net/DaisyCold/article/details/108522252

阿里云国内75折 回扣 微信号:monov8
阿里云国际,腾讯云国际,低至75折。AWS 93折 免费开户实名账号 代冲值 优惠多多 微信号:monov8 飞机:@monov6