lihuacai168 / AnotherFasterRunner

接口自动化测试平台,基于HttpRunner+Python+Django+Vue,已在多家公司落地使用,2018年服役至今
https://fast.huacai.one
MIT License
628 stars 133 forks source link

安装 python 库遇到的问题汇总 #98

Closed abeelan closed 1 year ago

abeelan commented 1 year ago

版本和代码

拉取代码,本地部署,遇到的一些问题。

问题:安装 anyjson 库时出现报错。

$ pip install -r requirements.txt  
...
Collecting anyjson
  Downloading http://pypi.doubanio.com/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]

解决:参考地址

$ pip install "setuptools<58.0.0"

问题:安装 django-simpleui 库时出现报错。

解决:添加 --upgrade 参数

$ pip install --upgrade django-simpleui 
lihuacai168 commented 1 year ago

这不科学啊,已经限定了setuptool是版本啦

image
abeelan commented 1 year ago

我是新建的虚拟环境安装依赖的~ 具体就不清楚啥原因了~ 这里做个记录。

lihuacai168 commented 1 year ago

嗯嗯,感谢

lihuacai168 commented 1 year ago

版本和代码

  • 操作系统:MacOs 15
  • Python版本: Python 3.9

拉取代码,本地部署,遇到的一些问题。

问题:安装 anyjson 库时出现报错。

$ pip install -r requirements.txt  
...
Collecting anyjson
  Downloading http://pypi.doubanio.com/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]

解决:参考地址

$ pip install "setuptools<58.0.0"

问题:安装 django-simpleui 库时出现报错。

解决:添加 --upgrade 参数

$ pip install --upgrade django-simpleui 

macOS有15版本?是不是写错了,python3.9,具体版本麻烦也补充一下

abeelan commented 1 year ago

确实是我的疏忽,已更新。