Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unable to install Python 3
#1
Hello!

I'm unable to install Python 3 as i get this:

sudo apt-get install python3

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 gsettings-desktop-schemas : Breaks: mutter (< 3.19.92) but 3.18.3-0ubuntu2 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
Do you have any idea?
Reply
#2
Try following this tutorial:
install-python-3-6-1-in-ubuntu-16-04-lts
Reply
#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


Possibly Related Threads…
Thread Author Replies Views Last Post
  Unable to install Python branty1970 5 7,669 May-25-2021, 01:18 PM
Last Post: branty1970
  Unable to install module rrowhe4d 1 2,253 Oct-13-2020, 10:20 AM
Last Post: Larz60+
  Unable to install virtual environment on python 3.8.3 Allen10 4 3,047 Jun-04-2020, 04:22 AM
Last Post: Larz60+
  Unable to install Python russianponchik 2 2,074 Mar-18-2020, 07:39 AM
Last Post: russianponchik
  Unable to install python-wnck python-imaging on Void Linux linuxlight 1 3,153 Mar-08-2020, 03:53 AM
Last Post: Larz60+
  Unable to install pyaudio junzhi 2 24,170 Oct-30-2019, 03:11 PM
Last Post: HorDamn
  unable to install sip/pyqt on windows 10 phparion 1 4,372 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