$ pyenv virtualenv 3.8.0 tf12
creates a virtualenv located in ~/.pyenv/versions/3.8.0/envs/tf12
which contains packages we installed into it using pip install
. If we create a new project directory like mkdir myfolder && cd myfolder && pyenv local tf12
, that project directory will use the same kernels and packages that the tf12 environment contains because we used the pyenv local
command.
But then we also have virtualenvs and directories created with mkproject mynewenv
located somewhere like ~/.ve
and ~/workspace
. The workspace is where we place notebooks, code and scripts .pynb
, .py
, .r
etc and the corresponding virtualenv uses the global python version that was active when executing mkproject mynewenv
.
These virtualenvs created with mkproject mynewenv
are separate from virtualenvs created with pyenv virtualenv
.
I have come to the conclusion that we cannot use them together for further possibilities. They are used independently. Correct me if I'm wrong.