Announcement

Collapse
No announcement yet.

Set up of Python 3.5 on Kubuntu 16.04

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Set up of Python 3.5 on Kubuntu 16.04

    I'm a newbie on Kubuntu and I installed it because I was advised that it is a much better platform for Programming than windows. However, I can't seem to be able to start Python even though I have read it comes pre installed with Xenial Xerus.
    I have tried the "sudo apt-get install virtualenv python-pip python3-dev command"
    But it says Unable to locate package virtualenv and unable to locate package python-pip and Python3-dev has no installation candidate.
    .
    I have also tried the discover option and I found the python app but I don't know how to install it from there either...
    .
    Any help will be much appreciated. Thanks.

    #2
    Maybe..

    Code:
    sudo apt install python3-dev python-pip
    then use pip to install the virtualenv
    On #kubuntu-devel & #kubuntu on libera.chat - IRC Nick: RikMills - Launchpad ID: click

    Comment


      #3
      And, while you are at it, install muon and use it instead of Discover, a shiny graphical toy that lets the images get in the way.

      sudo apt install muon
      Last edited by GreyGeek; Aug 19, 2016, 01:09 PM.
      "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
      – John F. Kennedy, February 26, 1962.

      Comment


        #4
        Originally posted by GreyGeek View Post
        And, while you are at it, install muon and use it instead of Discovery, a shiny graphical toy that lets the images get in the way.
        Took me a bit to get it running but once I did, Discover stayed on my system for about ten minutes.

        we see things not as they are, but as we are.
        -- anais nin

        Comment


          #5
          Still doesn't work..
          .
          The response is python3-dev has no installation candidate. But it also says it is reffered to by another program.

          Comment


            #6
            It should be there:

            http://packages.ubuntu.com/xenial/python3-dev

            On a Xenial 16.04 install here

            $ apt-cache policy python3-dev
            python3-dev:
            Installed: (none)
            Candidate: 3.5.1-3
            Version table:
            3.5.1-3 500
            500 http://gb.archive.ubuntu.com/ubuntu xenial/main amd64 Packages


            $ sudo apt install python3-dev
            Reading package lists... Done
            Building dependency tree
            Reading state information... Done
            The following NEW packages will be installed
            python3-dev
            0 to upgrade, 1 to newly install, 0 to remove and 15 not to upgrade.
            Need to get 1,186 B of archives.
            After this operation, 17.4 kB of additional disk space will be used.
            Get:1 http://gb.archive.ubuntu.com/ubuntu xenial/main amd64 python3-dev amd64 3.5.1-3 [1,186 B]
            Fetched 1,186 B in 0s (11.6 kB/s)
            Selecting previously unselected package python3-dev.
            (Reading database ... 196994 files and directories currently installed.)
            Preparing to unpack .../python3-dev_3.5.1-3_amd64.deb ...
            Unpacking python3-dev (3.5.1-3) ...
            Processing triggers for man-db (2.7.5-1) ...
            Setting up python3-dev (3.5.1-3) ...
            On #kubuntu-devel & #kubuntu on libera.chat - IRC Nick: RikMills - Launchpad ID: click

            Comment


              #7
              It says unable to locate package muon

              Comment


                #8
                These are the results
                .
                (sorry I don't know how to send screenshots.)
                .
                "apt-cache policy python3-dev
                python3-dev:
                Installed: (none)
                Candidate: (none)
                Version table:
                "

                Comment


                  #9
                  It's there in the repositories, so maybe your sources.list is a bit messed up?

                  You could trying just installing the depends listed in the Xenial link in previous post, but given that the main meta-package is in 'main' and you can't find it, I guess that might fail as well.
                  On #kubuntu-devel & #kubuntu on libera.chat - IRC Nick: RikMills - Launchpad ID: click

                  Comment


                    #10
                    So how do I fix the sources.list ?
                    .
                    I had a previous problem that kept saying "Malformed line 52". But I got help with that and fixed it by adding a # infront of the 52nd line.
                    .
                    Could this be a similar way to fix the sources.list ?

                    Comment


                      #11
                      Can you post the contents of your /etc/apt/sources.list please.
                      On #kubuntu-devel & #kubuntu on libera.chat - IRC Nick: RikMills - Launchpad ID: click

                      Comment


                        #12
                        As a reference, from a system that is running great:
                        Code:
                        # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
                        # newer versions of the distribution.
                        deb http://us.archive.ubuntu.com/ubuntu/ xenial restricted main
                        
                        ## Major bug fix updates produced after the final release of the
                        ## distribution.
                        
                        ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
                        ## team, and may not be under a free license. Please satisfy yourself as to
                        ## your rights to use the software. Also, please note that software in
                        ## universe WILL NOT receive any review or updates from the Ubuntu security
                        ## team.
                        deb http://us.archive.ubuntu.com/ubuntu/ xenial universe
                        # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial universe
                        deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates universe main
                        # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-updates universe
                        
                        ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
                        ## team, and may not be under a free license. Please satisfy yourself as to 
                        ## your rights to use the software. Also, please note that software in 
                        ## multiverse WILL NOT receive any review or updates from the Ubuntu
                        ## security team.
                        
                        deb http://us.archive.ubuntu.com/ubuntu/ xenial multiverse
                        # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial multiverse
                        
                        deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
                        # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
                        
                        ## N.B. software from this repository may not have been tested as
                        ## extensively as that contained in the main release, although it includes
                        ## newer versions of some applications which may provide useful features.
                        ## Also, please note that software in backports WILL NOT receive any review
                        ## or updates from the Ubuntu security team.
                        
                        deb http://us.archive.ubuntu.com/ubuntu/ xenial-backports universe multiverse restricted main
                        # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
                        
                        ## Uncomment the following two lines to add software from Canonical's
                        ## 'partner' repository.
                        ## This software is not part of Ubuntu, but is offered by Canonical and the
                        ## respective vendors as a service to Ubuntu users.
                        
                        deb http://archive.canonical.com/ubuntu/ xenial partner
                        # deb-src http://archive.canonical.com/ubuntu/ xenial partner
                        
                        deb http://us.archive.ubuntu.com/ubuntu/ xenial-security restricted main
                        # deb-src http://security.ubuntu.com/ubuntu/ xenial-security main restricted
                        deb http://us.archive.ubuntu.com/ubuntu/ xenial-security universe
                        # deb-src http://security.ubuntu.com/ubuntu/ xenial-security universe
                        deb http://us.archive.ubuntu.com/ubuntu/ xenial-security multiverse
                        # deb-src http://security.ubuntu.com/ubuntu/ xenial-security multiverse
                        
                        
                        # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial main restricted
                        
                        deb http://us.archive.ubuntu.com/ubuntu/ xenial-proposed universe multiverse restricted main
                        #deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
                        
                        
                        
                        deb http://archive.neon.kde.org/user/ xenial main
                        # deb-src http://archive.neon.kde.org/user/ xenial main
                        
                        deb http://security.ubuntu.com/ubuntu/ xenial-security universe restricted multiverse main
                        "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
                        – John F. Kennedy, February 26, 1962.

                        Comment


                          #13
                          Originally posted by acheron View Post
                          Can you post the contents of your /etc/apt/sources.list please.
                          i'm terribly sorry for the absolutely late reply,
                          here's my sources.list
                          deb cdrom:[Kubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main multiverse restricted universe

                          # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
                          # newer versions of the distribution.
                          deb http://archive.ubuntu.com/ubuntu xenial main restricted
                          # deb-src http://ke.archive.ubuntu.com/ubuntu/ xenial main restricted

                          ## Major bug fix updates produced after the final release of the
                          ## distribution.
                          deb http://archive.ubuntu.com/ubuntu xenial-updates main restricted
                          # deb-src http://ke.archive.ubuntu.com/ubuntu/ xenial-updates main restricted

                          ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
                          ## team, and may not be under a free licence. Please satisfy yourself as to
                          ## your rights to use the software. Also, please note that software in
                          ## universe WILL NOT receive any review or updates from the Ubuntu security
                          ## team.
                          deb http://archive.ubuntu.com/ubuntu xenial universe
                          # deb-src http://ke.archive.ubuntu.com/ubuntu/ xenial universe
                          deb http://archive.ubuntu.com/ubuntu xenial-updates universe
                          # deb-src http://ke.archive.ubuntu.com/ubuntu/ xenial-updates universe

                          ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
                          ## team, and may not be under a free licence. Please satisfy yourself as to
                          ## your rights to use the software. Also, please note that software in
                          ## multiverse WILL NOT receive any review or updates from the Ubuntu
                          ## security team.
                          deb http://archive.ubuntu.com/ubuntu xenial multiverse
                          # deb-src http://ke.archive.ubuntu.com/ubuntu/ xenial multiverse
                          deb http://archive.ubuntu.com/ubuntu xenial-updates multiverse
                          # deb-src http://ke.archive.ubuntu.com/ubuntu/ xenial-updates multiverse

                          ## N.B. software from this repository may not have been tested as
                          ## extensively as that contained in the main release, although it includes
                          ## newer versions of some applications which may provide useful features.
                          ## Also, please note that software in backports WILL NOT receive any review
                          ## or updates from the Ubuntu security team.
                          deb http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse
                          # deb-src http://ke.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse

                          ## Uncomment the following two lines to add software from Canonical's
                          ## 'partner' repository.
                          ## This software is not part of Ubuntu, but is offered by Canonical and the
                          ## respective vendors as a service to Ubuntu users.
                          deb http://archive.canonical.com/ubuntu xenial partner

                          deb http://archive.ubuntu.com/ubuntu xenial-security main restricted
                          # deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
                          deb http://archive.ubuntu.com/ubuntu xenial-security universe
                          # deb-src http://security.ubuntu.com/ubuntu xenial-security universe
                          deb http://archive.ubuntu.com/ubuntu xenial-security multiverse
                          # deb-src http://archive.canonical.com/ubuntu xenial
                          deb http://kubuntu.org/packages/kde35 breezy main
                          # deb-src http://kubuntu.org/packages/kde35 breezy main
                          # deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse

                          Comment


                            #14
                            i tried to copy paste your sources.list but it said i cannot write to file..... is that okay?

                            Comment


                              #15
                              Originally posted by SageReal View Post
                              i tried to copy paste your sources.list but it said i cannot write to file..... is that okay?
                              /etc/apt/sources.list is owned by root.

                              Try kdesudo kwrite /etc/apt/sources.list in a terminal (Konsole)

                              Please Read Me

                              Comment

                              Working...
                              X