So have you installed pyenv correct and it work as it should?
You know that python
3
is not needed when if you set global
pyenv global 3.7.0
mint@mint ~ $ pyenv global 3.7.0
mint@mint ~ $ python -V
Python 3.7.0
mint@mint ~ $ pip -V
pip 10.0.1 from /home/mint/.pyenv/versions/3.7.0/lib/python3.7/site-packages/pip (python 3.7)
Can take a litt more about usage,the point is that is shall be easy and safe to switch.
# Look at what's available
mint@mint ~ $ pyenv install --list
Available versions:
....
3.6.6
3.6.6rc1
3.7.0
3.7-dev
3.8-dev
# install 3.8-dev
mint@mint ~ $ pyenv install 3.8-dev
Cloning https://github.com/python/cpython...
Installing Python-3.8-dev...
Installed Python-3.8-dev to /home/mint/.pyenv/versions/3.8-dev
# Set python and pip to point to 3.8
mint@mint ~ $ pyenv global 3.8-dev
mint@mint ~ $ python -V
Python 3.8.0a0
mint@mint ~ $ pip -V
pip 10.0.1 from /home/mint/.pyenv/versions/3.8-dev/lib/python3.8/site-packages/pip (python 3.8)
Just want to test
miniconda in shell session.
mint@mint ~ $ pyenv shell miniconda3-4.3.11
(miniconda3-4.3.11) mint@mint ~ $ conda -V
conda 4.3.21
(miniconda3-4.3.11) mint@mint ~ $ python -V
Python 3.6.0 :: Continuum Analytics, Inc.
(miniconda3-4.3.11) mint@mint ~ $ jupyter notebook
There is a option to use virtual environment
pyenv virtualenv
,but i use
venv(what python has build in) or
pipenev.