0

I have Python 3.10.0 installed on my Mac. But when I create a virtual environment (using: python -m venv nameofvirtualenvironment) and check the Python version which is installed in the virtual environment it says that Python 3.8.10 is installed. But I really need Python 3.10.0.

Python version 3.10.0 is installed at /usr/local/bin/python3

Do you have ideas how to solve this?

jumuell
  • 7
  • 2
  • 1
    Use `/usr/local/bin/python3 -m venv` instead. Or possibly `python3.10 -m venv`. – 9769953 Mar 01 '22 at 10:09
  • You could make an alias like `alias python310 = /usr/local/bin/python3.10`, and work with that. At least, normally, Python minor versions are also installed by their specific minor-version name. – 9769953 Mar 01 '22 at 10:10
  • @9769953 That's a syntax error in Bourne-compatible shells. You might want to `alias python=python3.10` though. (Though generally, functions and scripts are superior to aliases in multiple respects.) – tripleee Mar 01 '22 at 10:29

0 Answers0