Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unable to install Python 3
#3
There also pyenv which in my option is the best way.
Have tutorial here.
When pyenv is setup,it's easy to use.
# Install
mint@mint ~ $ pyenv install 3.6.5
Downloading Python-3.6.5.tar.xz...
-> https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tar.xz
Installing Python-3.6.5...
Installed Python-3.6.5 to /home/mint/.pyenv/versions/3.6.5
  
# Set python and pip to point to 3.6.5
mint@mint ~ $ pyenv global 3.6.5
mint@mint ~ $ python -V
Python 3.6.5
mint@mint ~ $ pip -V
pip 9.0.1 from /home/mint/.pyenv/versions/3.6.5/lib/python3.6/site-packages (python 3.6)
# Finish
So now will python my_script.py and pip install something always use Python 3.6.5
There is never need for sudo pip install something or pip install --user something as pyenv has set user privileges.
Reply


Messages In This Thread
Unable to install Python 3 - by PierreSoulier - Jun-19-2018, 12:48 PM
RE: Unable to install Python 3 - by gontajones - Jun-19-2018, 02:29 PM
RE: Unable to install Python 3 - by snippsat - Jun-19-2018, 02:35 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Unable to install Python branty1970 5 8,105 May-25-2021, 01:18 PM
Last Post: branty1970
  Unable to install module rrowhe4d 1 2,358 Oct-13-2020, 10:20 AM
Last Post: Larz60+
  Unable to install virtual environment on python 3.8.3 Allen10 4 3,261 Jun-04-2020, 04:22 AM
Last Post: Larz60+
  Unable to install Python russianponchik 2 2,171 Mar-18-2020, 07:39 AM
Last Post: russianponchik
  Unable to install python-wnck python-imaging on Void Linux linuxlight 1 3,282 Mar-08-2020, 03:53 AM
Last Post: Larz60+
  Unable to install pyaudio junzhi 2 24,335 Oct-30-2019, 03:11 PM
Last Post: HorDamn
  unable to install sip/pyqt on windows 10 phparion 1 4,480 Oct-27-2018, 11:03 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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