-
Notifications
You must be signed in to change notification settings - Fork 7.2k
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
Preparing metadata (pyproject.toml) did not run successfully. #942
Comments
Also seen on macOS using Python 3.11.4. Using Python 3.10.12, Edit: Tested with Python 3.10. |
Faced the same bug but installed dependencies one by one, which works. |
It works form me on Python version 3.10.11. |
I fixed a similar issue by using Python version 3.10.10 on linux-mint. I think it's a wrapt issue caused by python 3.11 deprecations. I didn't try versions other than 3.10.10, but given the other comments I suspect anything less than 3.11 would work. After downloading the LLM and editing the env to add its (absolute) path, I also had to use Now I have it working. |
same issue with me using python version 3.113 on windows 10 os. |
Same issue, solutions listed here did not work. |
faced the same with Python 3.11.4. Worked fine with 3.10 and installing C++ Universal Windows Platform Support |
I think i handle some of the error that i have try follow these steps 0.pip cache purge |
note: This error originates from a subprocess, and is likely not a problem with pip.
|
Downgrading to Python 3.10.x solved the issue for me. Hope it helps. |
Same problem here |
you can try python 3.8, I solve the problem successfully. |
I also get the same type of error. However, I'm on a RaspberryPi 4, and running Python 3.11.2. Further research, on my system, I could see that some packages/software was not completely installed. If someone else has same version of Python (3.11.2), and is running Bookworm, let me know if you solved it, and which steps to take. |
How can i resolve this error in windows 11 -Python 3.12.2 Preparing metadata (pyproject.toml) ... error × Preparing metadata (pyproject.toml) did not run successfully.
note: This error originates from a subprocess, and is likely not a problem with pip. × Encountered error while generating package metadata. |
I installed Cargo from here: https://rustup.rs |
Yes! DOWNGRADING THE PYTHON VERSION FROM 3.11 TO 3.10 |
Could be resolved if you install required pip one by one |
pip install matplotlib==3.8.4it works |
pip install matplotlib==3.8.4 worked for me, too. |
It works! Thank you a lot!!! |
same problem |
You are not writing the package correctly |
Note: if you'd like to ask a question or open a discussion, head over to the Discussions section and post it there.
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [86 lines of output]
Traceback (most recent call last):
File "C:\Users\Satish\AppData\Local\Temp\pip-build-env-om9hg96c\overlay\Lib\site-packages\setuptools\config\expand.py", line 81, in getattr
return next(
^^^^^
File "C:\Users\Satish\AppData\Local\Temp\pip-build-env-om9hg96c\overlay\Lib\site-packages\setuptools\config\expand.py", line 82, in
ast.literal_eval(value)
File "C:\Users\Satish\AppData\Local\Programs\Python\Python311\Lib\ast.py", line 110, in literal_eval
return _convert(node_or_string)
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Satish\AppData\Local\Programs\Python\Python311\Lib\ast.py", line 109, in _convert
return _convert_signed_num(node)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Satish\AppData\Local\Programs\Python\Python311\Lib\ast.py", line 83, in _convert_signed_num
return _convert_num(node)
^^^^^^^^^^^^^^^^^^
File "C:\Users\Satish\AppData\Local\Programs\Python\Python311\Lib\ast.py", line 74, in _convert_num
_raise_malformed_node(node)
File "C:\Users\Satish\AppData\Local\Programs\Python\Python311\Lib\ast.py", line 71, in _raise_malformed_node
raise ValueError(msg + f': {node!r}')
ValueError: malformed node or string on line 2: <ast.Call object at 0x0000025683AD1330>
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.
Describe the bug and how to reproduce it
A clear and concise description of what the bug is and the steps to reproduce the behavior.
Expected behavior
A clear and concise description of what you expected to happen.
Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: