Error occurs when running pip install fastapi (venv) #11173
-
First Check
Commit to Help
Example Code$ python -m venv .venv
$ source ./venv/bin/activate
(.venv) radian@server14:~/workspace/temp/.venv/bin$ pip install fastapiDescription(.venv) radian@server14:~/workspace/temp/.venv/bin$ pip install fastapi × python setup.py egg_info 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. note: This is an issue with the package mentioned above, not pip. [notice] A new release of pip is available: 23.0.1 -> 24.0 Operating SystemLinux Operating System DetailsUbuntu 20.04 FastAPI Versioninstall error Pydantic Versioninstall error Python VersionPython 3.10.13 Additional ContextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
|
The commands below work well. The command below does not work. |
Beta Was this translation helpful? Give feedback.
-
|
try |
Beta Was this translation helpful? Give feedback.
-
|
I get the same error when I use 'pip install "fastapi[standard]"' like the walkthough says but the fix here doesn't seem to let me run the walkthrough server using "fastapi dev main.py". I also get the error metadata-generation-failed, when I tried to install it using pip install fastapi. |
Beta Was this translation helpful? Give feedback.
try
pip install fastapi -i https://pypi.org/simplenot
try
pip install fastapi -i https://test.pypi.org/simple