Python Forum
remember me how to delete python2.7 in Linux
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
remember me how to delete python2.7 in Linux
#11
@ Dead_Eye Many thanks. Time here is 18h14. I will look to all that to-morrow, because my internet works badly at the end of the evening.
Reply
#12
I went to nano. I wrote the 3 lines. I gave the name of the file (sylas). I don't understand M-D(DOS format)
Error:
sylvain@sylvain-HP-Laptop-15-bw0xx:~$ echo $PATH /home/sylvain/.local/share/umake/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
Reply
#13
I wrote again all. Unfortunately no progress:
Error:
sylvain@sylvain-HP-Laptop-15-bw0xx:~$ echo $PYENV_ROOT sylvain@sylvain-HP-Laptop-15-bw0xx:~$

With the uploads I get:
sylvain@sylvain-HP-Laptop-15-bw0xx:~/Téléchargements$ cd pyenv-master;ls
bin           CONDUCT.md  plugins                 src
CHANGELOG.md  libexec     pyenv.d                 terminal_output.png
COMMANDS.md   LICENSE     pyenv-installer-master  test
completions   Makefile    README.md
Reply
#14
Maybe with this you can help me!
sylvain@sylvain-HP-Laptop-15-bw0xx:~/Téléchargements/pyenv-master/bin$ ./pyenv
pyenv 1.2.6
Usage: pyenv <command> [<args>]

Some useful pyenv commands are:
   commands    List all available pyenv commands
   local       Set or show the local application-specific Python version
   global      Set or show the global Python version
   shell       Set or show the shell-specific Python version
   install     Install a Python version using python-build
   uninstall   Uninstall a specific Python version
   rehash      Rehash pyenv shims (run this after installing executables)
   version     Show the current Python version and its origin
   versions    List all Python versions available to pyenv
   which       Display the full path to an executable
   whence      List all Python versions that contain the given executable

See `pyenv help <command>' for information on a specific command.
For full documentation, see: https://github.com/pyenv/pyenv#readme
Reply
#15
For the moment I use pyenv with; "/home/sylvain/Téléchargements/pyenv-master/bin/pyenv"(Téléchargemets stands for uploads). It works . So I learned that if you have not installed Python-2.7.14 with pyenv, you cannot uninstall it with pyenv.
Reply
#16
@snippsat I should like very much to have 3.6.3 instead of 2.7.14 as default. 3.6.3 is already installed but not with pyenv. So I tried to install it pyenv. Impossible
Error:
sylvain@sylvain-HP-Laptop-15-bw0xx:~$ /home/sylvain/Téléchargements/pyenv-master/bin/pyenv install 3.6.3 Downloading Python-3.6.3.tar.xz... -> https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tar.xz Installing Python-3.6.3... BUILD FAILED (Ubuntu 17.10 using python-build 1.2.6-4-gb7eea900) Inspect or clean up the working tree at /tmp/python-build.20180812112817.13188 Results logged to /tmp/python-build.20180812112817.13188.log Last 10 log lines: ensurepip._main() File "/tmp/python-build.20180812112817.13188/Python-3.6.3/Lib/ensurepip/__init__.py", line 189, in _main default_pip=args.default_pip, File "/tmp/python-build.20180812112817.13188/Python-3.6.3/Lib/ensurepip/__init__.py", line 102, in bootstrap _run_pip(args + [p[0] for p in _PROJECTS], additional_paths) File "/tmp/python-build.20180812112817.13188/Python-3.6.3/Lib/ensurepip/__init__.py", line 27, in _run_pip import pip zipimport.ZipImportError: can't decompress data; zlib not available Makefile:1079 : la recette pour la cible « install » a échouée make: *** [install] Erreur 1
Reply
#17
(Aug-12-2018, 09:38 AM)sylas Wrote: @snippsat I should like very much to have 3.6.3 instead of 2.7.14 as default.
As usually you have messed it up and not followed @DeaD_EyE instruction.
I also have tutorial here(setting up pyenv) which i have linked to you before.
Quote:I went to nano. I wrote the 3 lines. I gave the name of the file (sylas). I don't understand M-D(DOS format)
Arggg you shall give the file a new name it has be ~/.bashrc(just save as same name) you just save after adding 3 lines under.
export PATH="~/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
So if i look at ~/.bashrc last 10 lines,you see that i have placed those 3 lines last.
mint@mint ~ $ tail -n 10 ~/.bashrc 
fi
 
if [ -x /usr/bin/mint-fortune ]; then
     /usr/bin/mint-fortune
fi
 
export PATH="~/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
Quote:/pyenv-master/bin/pyenv install 3.6.3
This is just wrong as you try to use it from Repo download.

This how it look when installed correct and when i updatet to 3.7.
# Update pyenv
mint@mint ~ $ pyenv update
  
# 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
....
  
# Update needed
sudo apt-get update
sudo apt-get install libffi-dev
  
# Install 3.7
mint@mint ~ $ pyenv install 3.7.0
Installing Python-3.7.0...
Installed Python-3.7.0 to /home/mint/.pyenv/versions/3.7.0
  
# Set python and pip to point to 3.7
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)
mint@mint ~ $ 
# Finish
This will be my last post about this Hand
If you can get someone to help you like live on PC that would be fine,
because you can not follow instruction given.
Reply
#18
This may be last help I ask. When I install python 3.7 with pyenv, it takes about 5 mn to upload, then at the install case, after about 3 mn it stops saying he can't install because "can't decompress data, zlib not available". If you have an idea please tell me.
Otherwise, to-morrow I will reread the huge information I have.
Reply
#19
@DeaD_EyE Many many thanks. Now 3.7.0 is my default language. Problem solved , with your 3 lines:
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-dev
Reply
#20
This is good. I had the last week not much time to look.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Trying to run a python2 script dagamer1991 3 2,484 Aug-12-2019, 12:33 PM
Last Post: buran
  python2.7 executables thus the system python2.7 was erroring utility.execute()? vivekm 1 1,727 May-20-2019, 11:24 AM
Last Post: vivekm
  Python2 is not supported Skaperen 2 2,123 Mar-01-2019, 07:50 PM
Last Post: stranac

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020