is python3-pip a good package to use? [Solved]

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
james_1830
Level 1
Level 1
Posts: 3
Joined: Thu Apr 19, 2018 1:58 pm

is python3-pip a good package to use? [Solved]

Post by james_1830 » Thu Apr 19, 2018 2:45 pm

Hello all,

As you probably guessed, I am a noob to linux. I am a Software Engineer student exploring and learning programming. I dabbled a little in python, but I want to install different python modules. From my windows experience, I know pip comes with installing python. However, at least in Ubuntu and LInux Mint, you need to install a python package installer to get python modules. Python3-pip seems like a good package to use. However, from my research, I believe Linux Mint gets many package from Ubuntu, and Ubuntu gets many of its packages from Debian. On the Ubuntu launchpad site I looked at the date release of python-pip for the Ubutntu Xenial version. It was released in April of 2016. Correct me if I am wrong, I am assuming that if I download python3-pip from the software manager onto my linux mint, I will be getting a package that hasn't been updated since 2016. I believe that those who maintain python have already updated pip multiple times since then.

Even though python3-pip may be a few years old, will it download python modules safely, securely and accurately from PyPI? Will it install the packages on my system correctly?
Last edited by james_1830 on Fri Apr 20, 2018 10:08 pm, edited 1 time in total.

deepakdeshp
Level 10
Level 10
Posts: 3297
Joined: Sun Aug 09, 2015 10:00 am

Re: is python3-pip a good package to use?

Post by deepakdeshp » Thu Apr 19, 2018 11:14 pm

pip and pip3 are the modules for Python 2.7 and 3.x respectively.
Look up the information about anaconda too.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help, and keeps the forum clean.
I am using Mint 18.3 Cinnamon 64 bit with AMD processor . Memory 8GB

james_1830
Level 1
Level 1
Posts: 3
Joined: Thu Apr 19, 2018 1:58 pm

Re: is python3-pip a good package to use?

Post by james_1830 » Fri Apr 20, 2018 12:27 pm

Thank you, deepakdeshp for responding to my post.

I know that pip and pip3 are the official modules for downloading python modules. My concern is that the package python3-pip may not work properly. Hopefully, this concern is overly thought out.

From an article in the Python Software Foundation website, https://packaging.python.org/guides/ins ... nux-tools/, the article talks about getting pip for Linux. In the first four paragraphs, it notes that Linux Distributions may have outdated pip software in their repository, and the Linux Distributions may alter pip for security reasons, so it could cause some bugs in the software. If this is true, then the python3-pip package in the Linux Mint could have some alterations to it, for security reasons. This would make the code base of python3-pip a little different from the pip that comes officially from the Python Software Foundation, so it might not download packages correctly. In addition, it looks like the package has not been updated in a few years, https://launchpad.net/ubuntu/xenial/arm64/python3-pip . This would make the python3-pip software outdated, so python3-pip may not be secure as it was, in its last release of 2016.

User avatar
phd21
Level 15
Level 15
Posts: 5993
Joined: Thu Jan 09, 2014 9:42 pm
Location: Florida

Re: is python3-pip a good package to use?

Post by phd21 » Fri Apr 20, 2018 2:34 pm

HI james_1830,

I just read your post and the good replies to it. Here are my thoughts on this as well.

It would help to know more about your system setup. If you run "inxi -Fxzd" and "lsusb" from the console terminal prompt, highlight the results, copy and paste them back here, that should provide enough information.

"Python-pip" (Python ver2.x) and "python3-pip" can be used for many things, including installing various python modules and python applications.

I would highly recommend installing both the python ver2 and ver3 development packages and the typical compiling packages. These are the commands below that I use for that. After installing the python packages, the python pip commands can update themselves as well. And, a lot of applications are developed in python, so installing these will help with various application dependencies as well.

To install these open a console terminal, type in, or copy & paste, each line below one by one: Click "Select All" above command, right-click the highlighted command, select Copy (or Ctrl+Insert), click in the console terminal window, and right click paste (or Shift+Insert), repeat for each command.

Code: Select all

sudo apt install build-essential cmake wget curl git checkinstall

Code: Select all

sudo apt-get install python-all-dev python-wheel python-setuptools python-pip python-numpy

Code: Select all

sudo apt-get install python3-all-dev python3-wheel python3-setuptools python3-pip python3-numpy

From Python developers - bookmark this website
Installation — pip 10.0.1 documentation
https://pip.pypa.io/en/stable/installing/

Code: Select all

pip install -U pip
python - How to upgrade pip to latest? - Ask Ubuntu
https://askubuntu.com/questions/712339/ ... -to-latest

Code: Select all

sudo -H pip3 install --upgrade pip

Code: Select all

sudo -H pip2 install --upgrade pip

Updating or upgrading installed packages using either pip or pip3
A `pip` hack to upgrade all your Python packages – Hacker Noon
https://hackernoon.com/a-pip-hack-to-up ... 2658c49681

Code: Select all

sudo pip install [package_name] --upgrade
or in short

Code: Select all

sudo pip3 install [package_name] -u


Hope this helps ...
Phd21: Mint KDE 17.3 & 18.3, 64-bit Awesome OS, Ancient Dell OptiPlex 780 Core2Duo E8400 3GHz,4gb Ram,256gb SDD, Video: Intel 4 Graphics, DVD Lightscribe. Why I use KDE?:https://opensource.com/life/15/4/9-reasons-to-use-kde

james_1830
Level 1
Level 1
Posts: 3
Joined: Thu Apr 19, 2018 1:58 pm

Re: is python3-pip a good package to use?

Post by james_1830 » Fri Apr 20, 2018 10:07 pm

Hi phd21,

Thank you for taking the time to respond to me. I will look into all these commands. You pretty much answered my question. Your answer makes sense. I just need to upgrade pip using pip.

User avatar
phd21
Level 15
Level 15
Posts: 5993
Joined: Thu Jan 09, 2014 9:42 pm
Location: Florida

Re: is python3-pip a good package to use?

Post by phd21 » Fri Apr 20, 2018 11:31 pm

Hi james_1830,

You are welcome...

That's correct...
Phd21: Mint KDE 17.3 & 18.3, 64-bit Awesome OS, Ancient Dell OptiPlex 780 Core2Duo E8400 3GHz,4gb Ram,256gb SDD, Video: Intel 4 Graphics, DVD Lightscribe. Why I use KDE?:https://opensource.com/life/15/4/9-reasons-to-use-kde

Post Reply

Return to “Newbie Questions”