python-version file in the current directory (if present). You can use the pyenv shell command to set this environment variable in your current shell session. The PYENV_VERSION environment variable (if specified).When you execute a shim, pyenv determines which Python version to use by reading it from the following sources, in this order: The next question is which version will be run? Choosing the Python Version That is to say, when you run a Python command, it will first searches in the shims directory. Through a process called rehashing, pyenv maintains shims in that directory to match every Python command across every installed version of Python: python, pip, and so on. Export PATH="$PYENV_ROOT/shims:$PATH" #PYENV_ROOT="$HOME/.pyenv" the root directory of pyenv
0 Comments
Leave a Reply. |