ModuleNotFoundError: No module named 'httpx' while importing FastAPI Test Client. #9286
-
First Check
Commit to Help
Example CodeDescriptionFirst of all, thanks for this wonderful project. I dont know if I can commit to help with my dumbness, like I did linked project for learning Python/FastAPI but I will try. I tried to import
and called
then I got traceback when I run the test: https://pastebinp.com/Gowv1n2s9CFmn1ik3nAg#hp8ZQovLZCttCuqhUuFKCwuAgTHuCdYvsr0qUpkGcyM= Installed FastAPI with: Operating SystemLinux Operating System DetailsUbuntu 22.04 running in WSL2. FastAPI Version0.95.0 Python Version3.10.6 Additional ContextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
caner in ~/damacansu-backend on master ● ● λ pip install httpx
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: httpx in /home/caner/.local/lib/python3.10/site-packages (0.23.3)
Requirement already satisfied: rfc3986[idna2008]<2,>=1.3 in /home/caner/.local/lib/python3.10/site-packages (from httpx) (1.5.0)
Requirement already satisfied: sniffio in /home/caner/.local/lib/python3.10/site-packages (from httpx) (1.3.0)
Requirement already satisfied: httpcore<0.17.0,>=0.15.0 in /home/caner/.local/lib/python3.10/site-packages (from httpx) (0.16.3)
Requirement already satisfied: certifi in /home/caner/.local/lib/python3.10/site-packages (from httpx) (2022.12.7)
Requirement already satisfied: anyio<5.0,>=3.0 in /home/caner/.local/lib/python3.10/site-packages (from httpcore<0.17.0,>=0.15.0->httpx) (3.6.2)
Requirement already satisfied: h11<0.15,>=0.13 in /home/caner/.local/lib/python3.10/site-packages (from httpcore<0.17.0,>=0.15.0->httpx) (0.14.0)
Requirement already satisfied: idna in /home/caner/.local/lib/python3.10/site-packages (from rfc3986[idna2008]<2,>=1.3->httpx) (3.4) |
Beta Was this translation helpful? Give feedback.
-
...bump. Library utility literally not working. |
Beta Was this translation helpful? Give feedback.
Run the following commands please:
python -m pip show httpx
python -m pytest