Aug-10-2018, 05:37 AM
Pages: 1 2
Aug-10-2018, 05:49 AM
If Python 2.7 came preinstalled with your Linux, then uninstalling it will probably break your Linux install. I suggest you do not try to uninstall it.
Aug-10-2018, 07:47 AM
I tried again to install pyenv, which seems very usefull, without success. All concerning pyenv are on my uploads.
sylvain@sylvain-HP-Laptop-15-bw0xx:~/Téléchargements/pyenv-master/pyenv-installemaster$ ls
bin MANIFEST.in setup.cfg Vagrantfile
LICENSE README.rst setup.py vagrant-salt
sylvain@sylvain-HP-Laptop-15-bw0xx:~/Téléchargements/pyenv-master/pyenv-installemaster$ cd bin;ls
download-pyenv-package.sh pyenv-installer pyenv-offline-installer
sylvain@sylvain-HP-Laptop-15-bw0xx:~/Téléchargements/pyenv-master/pyenv-installemaster/bin$ ls
download-pyenv-package.sh pyenv-installer pyenv-offline-installer
sylvain@sylvain-HP-Laptop-15-bw0xx:~/Téléchargements/pyenv-master/pyenv-installemaster/bin$
Can somebody help me to install pyenv on the terminal ?? Thanks
Error:sylvain@sylvain-HP-Laptop-15-bw0xx:~$ pyenv install 3.7
La commande « pyenv » est introuvable, vouliez-vous dire :
La commande « p7env » du paquet « libnss3-tools » (universe)
La commande « pyvenv » du paquet « python3-venv » (universe)
pyenv : commande introuvable
I prefer the english language, but so it is, sorrysylvain@sylvain-HP-Laptop-15-bw0xx:~/Téléchargements/pyenv-master/pyenv-installemaster$ ls
bin MANIFEST.in setup.cfg Vagrantfile
LICENSE README.rst setup.py vagrant-salt
sylvain@sylvain-HP-Laptop-15-bw0xx:~/Téléchargements/pyenv-master/pyenv-installemaster$ cd bin;ls
download-pyenv-package.sh pyenv-installer pyenv-offline-installer
sylvain@sylvain-HP-Laptop-15-bw0xx:~/Téléchargements/pyenv-master/pyenv-installemaster/bin$ ls
download-pyenv-package.sh pyenv-installer pyenv-offline-installer
sylvain@sylvain-HP-Laptop-15-bw0xx:~/Téléchargements/pyenv-master/pyenv-installemaster/bin$
Can somebody help me to install pyenv on the terminal ?? Thanks
Aug-10-2018, 09:52 AM
What enormous task to install "pyenv" !!!
Aug-10-2018, 09:58 AM
Try to install libnss3-tools.
Then try again to install Python 3.7
Many packages, not only Python related, do have Python2 dependencies.
apt-get install libnss3-toolsNormally Python is built with venv support.
Then try again to install Python 3.7
pyenv install 3.7.0If everything works, you can switch the global python version with pyenv and look what breaks.
Many packages, not only Python related, do have Python2 dependencies.
Aug-10-2018, 10:23 AM
Thanks to dead_eye. I tried "apt-get install libnss3-tools" with sudo at the head. No problem. But for python3 it always ignores pyenv. How many days to install pyenv?? Is it because I did not sign in Github ??
Aug-10-2018, 11:25 AM
Please tell me what to do when I am in the Github page:https://github.com/pyenv/pyenv-installer
Aug-10-2018, 12:39 PM
The readme says:
Quote:Install:
$ curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
Aug-10-2018, 03:17 PM
sylvain@sylvain-HP-Laptop-15-bw0xx:~$ curl -L https://github.com/pyenv/pyenv-installer...-installer | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 148 100 148 0 0 148 0 0:00:01 0:00:01 --:--:-- 145
100 2194 100 2194 0 0 1097 0 0:00:02 0:00:02 --:--:-- 271k
WARNING: seems you still have not added 'pyenv' to the load path.
# Load pyenv automatically by adding
# the following to ~/.bash_profile:
export PATH="/home/sylvain/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
I did that before. Can you help me with the above text. It seems also that the best tool in order to delete python2 is precisely pyenv. Have you already installed pyenv ??
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 148 100 148 0 0 148 0 0:00:01 0:00:01 --:--:-- 145
100 2194 100 2194 0 0 1097 0 0:00:02 0:00:02 --:--:-- 271k
WARNING: seems you still have not added 'pyenv' to the load path.
# Load pyenv automatically by adding
# the following to ~/.bash_profile:
export PATH="/home/sylvain/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
I did that before. Can you help me with the above text. It seems also that the best tool in order to delete python2 is precisely pyenv. Have you already installed pyenv ??
Aug-10-2018, 03:53 PM
I'm using pyenv together with xonsh and some other libraries, which also requires the shared libs and header files.
The installation was not easy. The text above must added to your .bash_profile in your home directory.
Just edit the file:
Nano: CTRL+X y Enter
Look if the environment variables have been set.
Path of PYENV_ROOT: /home/deadeye/.pyenv
The path was evaluated from the shell before it was added to the environment.
Then don't forget, that you need build tools.
For debian source 1 [source 2]
Then install the newest version.
The installation was not easy. The text above must added to your .bash_profile in your home directory.
Just edit the file:
nano ./.bash_profilethen add this and save the file.
Nano: CTRL+X y Enter
export PYENV_ROOT="$HOME/.pyenv" export PATH="$PYENV_ROOT/bin:$PATH" eval "$(pyenv init -)"Then close the old and open a new terminal.
Look if the environment variables have been set.
echo $PATH echo $PYENV_ROOTIn $PATH must a path like: /home/deadeye/.pyenv/bin
Path of PYENV_ROOT: /home/deadeye/.pyenv
The path was evaluated from the shell before it was added to the environment.
Then don't forget, that you need build tools.
For debian source 1 [source 2]
apt install build-essential apt-get install libssl-dev zlib1g-dev libncurses5-dev libncursesw5-dev libreadline-dev libsqlite3-dev apt-get install libgdbm-dev libdb5.3-dev libbz2-dev libexpat1-dev liblzma-dev tk-devDownload, Build, Install Python 3.7.0
env PYTHON_CONFIGURE_OPTS="--enable-shared" # i used this for nuitka i guess pyenv install 3.7.0If there is an update of python, you can change the current working
cd ~/.pyenv
, then git pull
.Then install the newest version.
Pages: 1 2