-
Notifications
You must be signed in to change notification settings - Fork 1.6k
部署报错 #376
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
Comments
anyjson==0.3.3 × Getting requirements to build wheel did not run successfully. note: This error originates from a subprocess, and is likely not a problem with pip. × Getting requirements to build wheel did not run successfully. note: This error originates from a subprocess, and is likely not a problem with pip. |
没遇到过建议按照文档里面的要求使用python版本 |
解决了,是mysqlclient的安装问题,windows可以直接安装,macOS和linux安装前需要一些依赖。 macOS (Homebrew) $ # Assume you are activating Python 3 venv $ # Assume you are activating Python 3 venv You may need to install the Python 3 and MySQL development headers and libraries like so: $ sudo apt-get install python3-dev default-libmysqlclient-dev build-essential pkg-config # Debian / Ubuntu $ pip install mysqlclient You can use MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS environment variables to customize compiler/linker options. $ export MYSQLCLIENT_CFLAGS= |
Collecting anyjson
Using cached https://mirrors.aliyun.com/pypi/packages/c3/4d/d4089e1a3dd25b46bebdb55a992b0797cff657b4477bc32ce28038fdecbc/anyjson-0.3.3.tar.gz (8.3 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel 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: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
环境
python==3.10.13
setuptools==57.5.0
The text was updated successfully, but these errors were encountered: