(Feb-17-2020, 09:39 AM)DeaD_EyE Wrote: I guess you've forgotten to add
export PATH="/home/public/.pyenv/bin:$PATH" eval "$(pyenv init -)" eval "$(pyenv virtualenv-init -)"
to your ~/.bashrc
I had added 2 of the 3 lines ?? Anyway, the third line is added now and I rebooted.
(Feb-17-2020, 09:39 AM)DeaD_EyE Wrote: You should also check your environment (shell, not Python):
env | egrep "SHELL|PYENV_SHELL|PYENV_VIRTUALENV_INIT|HOME|PATH"
Mine was ..
Output:
SHELL=/bin/bash SHELL_SESSION_ID=b1e4f28e8fc04000a3e6c7bcae119f97 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 DEFAULTS_PATH=/usr/share/gconf//usr/share/xsessions/plasma.default.path PATH=/home/********/.pyenv/shims:~/.pyenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin MANDATORY_PATH=/usr/share/gconf//usr/share/xsessions/plasma.mandatory.path PYENV_SHELL=bash HOME=/home/******** PROFILEHOME=
(Feb-17-2020, 09:39 AM)DeaD_EyE Wrote: With the command which you can see the path of a program:
which python
In my case this is returned:
Output:
/home/********/.pyenv/shims/python
(Feb-17-2020, 09:39 AM)DeaD_EyE Wrote: PS: Python 3.8.2rc1 was released.
To get the new version of pyenv:
cd ~/.pyenv git pull
I tried that but it thinks 3.8.1 is the latest ?
:~$ cd ~/.pyenv :~/.pyenv$ git pull Already up-to-date. :~/.pyenv$ python -V Python 3.8.1 :~/.pyenv$ python Python 3.8.1 (default, Feb 17 2020, 13:06:58) [GCC 5.4.0 20160609] on linux Type "help", "copyright", "credits" or "license" for more information. >>> :~/.pyenv$
Also, before adding the environment packages and settings, when I did a
pip list there were quite a few packages shown. Now there are only two ?
:~/.pyenv$ pip list Package Version ---------- ------- pip 20.0.2 setuptools 41.2.0
EDIT - It's resolved regards the packages and
pip. I obviously need to reinstall the missing ones