Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

331
Views
Python interpretor returns error for FASTAPI - **extra: Any,

I'm having trouble executing fastapi under WSL. I'm using:

  • WSL2
  • Ubuntu 16.04.7 LTS
  • Python 3.5.2 (using Visual Studio Code interpretor)
  • fastapi - 0.73.0
  • uvicorn - 0.8.6

I'm getting an error when I execute the uvicorn command -

**extra: Any,

  • see attached image.

I'm stuck on this for a while so any ideas would be strongly appreciated.

I tried updating python interpretor to newer version (3.9) but for some reason I did not succeed - see pls the second attached screenshot.

enter image description here

enter image description here

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

FastAPI requires python 3.6 and won't work with Python 3.5 as you've found out.

The ubuntu version you're using does not have a new enough Python version by default. You can either install a more recent Python version in Windows, upgrade your Ubuntu version or use the deadsnakes ppa to get access to newer versions of Python on older Ubuntu versions (or the other way around if you need old Python versions on more recent versions of Ubuntu).

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!