Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
abeelan opened this issue May 30, 2023 · 5 comments
Closed

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

abeelan opened this issue May 30, 2023 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@abeelan
Copy link

abeelan commented May 30, 2023

版本和代码

  • 操作系统:macOs 11.5.1
  • Python版本: Python 3.9.15

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

问题:安装 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 
@abeelan abeelan added the bug Something isn't working label May 30, 2023
@lihuacai168
Copy link
Owner

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

image

@abeelan
Copy link
Author

abeelan commented May 30, 2023

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

@lihuacai168
Copy link
Owner

嗯嗯,感谢

@lihuacai168
Copy link
Owner

版本和代码

  • 操作系统: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
Copy link
Author

abeelan commented May 30, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants