Search code examples
pythonpipversionpython-venvpyvenv

Python in the Global Environment, but a different version on the Virtual Environment?


I'm trying to solve a python installing problem that I couldn't seem to find an answer to, yet.

So I've created a virtual environment named 'venv', and in order to make the virtual environment, you should have a python installed in your computer globally before, right??

So what if the Python in the global environment is Python 3.9.0 and in the virtual environment 'venv', I want the Python version to be Python 3.8.6? How do I make this happen?


Solution

  • https://github.com/pyenv/pyenv - here's tool for you - Pyenv. It will take some time to get used to it though.