LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-18-2019, 07:25 PM   #1
ren13
LQ Newbie
 
Registered: Jan 2019
Distribution: Slackware
Posts: 5

Rep: Reputation: Disabled
pip3 on slackware


So im using slackware 14.2 and i cant install pip3, pip2 is working normally, but i dont know how to install pip3, id be glad if anyone could help me.
 
Old 01-18-2019, 08:36 PM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Hi & Welcome to LQ.

Are you using Python 2 or Python 3?

Download the SlackBuild (pip.tar.gz) here:
https://slackbuilds.org/repository/14.2/python/pip/

https://www.gungorbudak.com/blog/201...pip2-and-pip3/

I strongly suggest that you read Slackware Package Management:-

https://docs.slackware.com/slackbookackage_management

When the script is done running install pip with installpkg.
https://slackbuilds.org/howto/
 
Old 01-18-2019, 08:38 PM   #3
ren13
LQ Newbie
 
Registered: Jan 2019
Distribution: Slackware
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ztcoracat View Post
Hi & Welcome to LQ.

Are you using Python 2 or Python 3?

Download the SlackBuild (pip.tar.gz) here:
https://slackbuilds.org/repository/14.2/python/pip/

https://www.gungorbudak.com/blog/201...pip2-and-pip3/

I strongly suggest that you read Slackware Package Management:-

https://docs.slackware.com/slackbookackage_management

When the script is done running install pip with installpkg.
https://slackbuilds.org/howto/
Im using python3, but i need to use pip3 because i use python3, i installed pip through slackbuild, but it installed pip2, and i dont find how to install pip3, because if i type pip3 install something, it says pip3 command not found.
 
Old 01-18-2019, 08:52 PM   #4
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
What is the output of:

Code:
python2 --version

python3 --version
 
Old 01-18-2019, 08:54 PM   #5
ren13
LQ Newbie
 
Registered: Jan 2019
Distribution: Slackware
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ztcoracat View Post
What is the output of:

Code:
python2 --version

python3 --version
Code:
python2: 2.7.15

python3: 3.6.8
 
Old 01-18-2019, 09:20 PM   #6
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by ren13 View Post
Code:
python2: 2.7.15

python3: 3.6.8
Thanks--

Was this the exact pip pkg that you installed?

https://slackbuilds.org/repository/14.2/python/pip/

Don't upgrade pip2 because it removes pip3.

I wouldn't run the get-pip.py script because it could break your Slackware os.

I downloaded the get-pip.py script and it was not clear that it was pip3.

WARNING

Be cautious if you are using a Python install that is managed by your operating system or another package manager. get-pip.py does not coordinate with those tools, and may leave your system in an inconsistent state.

https://pip.pypa.io/en/stable/installing/

https://www.linuxquestions.org/quest...p3-4175631527/

https://tutorialforlinux.com/2016/03...ux-easy-guide/
 
Old 01-18-2019, 09:27 PM   #7
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,223

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
You just install Python 3. Python 3 ships with pip3.
 
Old 01-18-2019, 09:28 PM   #8
ren13
LQ Newbie
 
Registered: Jan 2019
Distribution: Slackware
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ztcoracat View Post

Was this the exact pip pkg that you installed?

https://slackbuilds.org/repository/14.2/python/pip/

yes sir, and like i said, it just installed pip2.
 
Old 01-18-2019, 09:29 PM   #9
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Thanks dugan-

Pip should be in /usr/bin/pip
 
Old 01-18-2019, 09:31 PM   #10
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Just install Python 3 and you should be good to go:-

https://slackbuilds.org/repository/14.2/python/python3/
 
Old 01-18-2019, 09:31 PM   #11
ren13
LQ Newbie
 
Registered: Jan 2019
Distribution: Slackware
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by dugan View Post
You just install Python 3. Python 3 ships with pip3.
i already have python3 installed, but pip3 aint man, still showing command not found.
 
Old 01-18-2019, 10:02 PM   #12
individual
Member
 
Registered: Jul 2018
Posts: 315
Blog Entries: 1

Rep: Reputation: 233Reputation: 233Reputation: 233
I'm not sure if you actually solved your problem, but the thread is marked as such. Anyway, Python began shipping with pip in version 3.4. However, I have a separate package for it on Slackware-current.
Code:
python-pip-18.1-x86_64-1
 
Old 01-18-2019, 10:06 PM   #13
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
How did you solve the pip3 issue?
 
Old 01-26-2019, 01:22 AM   #14
m1sf3t
LQ Newbie
 
Registered: Jan 2019
Posts: 4

Rep: Reputation: Disabled
Quote:
Originally Posted by Ztcoracat View Post
How did you solve the pip3 issue?
Just ran into the same issue on Vector Linux. Pip and Python 2 was on here initially but Python 3 wasn't. I installed python 3 using alienbob's x86 version

Code:
 upgradepkg --install-new
then while installing another package that wasn't necessarily 3 dependent, I ran into a setup.py error. Rather than negotiating the error I decided to just check pip to see if I could install it using that and was advised to upgrade to 19.0.1.

Having luck with that I tried installing a python3 specific package (webencodings) and was advised that I needed python3. The unanimous solution on the web seemed to be run "pip3", but that was nowhere to be found. Not sure if it was just missing to begin with or that happened during the pip upgrade, but I stumbled onto this thread looking for a solution. Reading somewhat between the lines, I come up with this to fix:

First I got rid of the old python3 pkg...

Code:
sudo removepkg ~/..../python3-3.6.7...
I glanced through the included packages listed on packages.org and wasn't entirely sure whether that contained a copy of pip so not taking a chance I downloaded the the python3-3.6.7 package set from slackbuild.org and installed via the Slackbuild file.

Pip3 can now be found either using "which" or simply running

Code:
pip3 -V
(returns pip 10.0.1)
but utilizing it to install or search you'll of course get the prompt to upgrade to 19 again.

Run

Code:
 pip -V
however and you should find that "pip" is still the correct at the correct version of 19. To verify execute "pip" search or install and you shouldn't see the prompt to upgrade.

Full disclosure, I haven't been messing with linux or python very long so this is probably by far not the correct way to go about fixing the problem but it seems to get by so idk?
 
Old 01-26-2019, 09:55 PM   #15
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by m1sf3t View Post
Just ran into the same issue on Vector Linux. Pip and Python 2 was on here initially but Python 3 wasn't. I installed python 3 using alienbob's x86 version

Code:
 upgradepkg --install-new
then while installing another package that wasn't necessarily 3 dependent, I ran into a setup.py error. Rather than negotiating the error I decided to just check pip to see if I could install it using that and was advised to upgrade to 19.0.1.

Having luck with that I tried installing a python3 specific package (webencodings) and was advised that I needed python3. The unanimous solution on the web seemed to be run "pip3", but that was nowhere to be found. Not sure if it was just missing to begin with or that happened during the pip upgrade, but I stumbled onto this thread looking for a solution. Reading somewhat between the lines, I come up with this to fix:

First I got rid of the old python3 pkg...

Code:
sudo removepkg ~/..../python3-3.6.7...
I glanced through the included packages listed on packages.org and wasn't entirely sure whether that contained a copy of pip so not taking a chance I downloaded the the python3-3.6.7 package set from slackbuild.org and installed via the Slackbuild file.

Pip3 can now be found either using "which" or simply running

Code:
pip3 -V
(returns pip 10.0.1)
but utilizing it to install or search you'll of course get the prompt to upgrade to 19 again.

Run

Code:
 pip -V
however and you should find that "pip" is still the correct at the correct version of 19. To verify execute "pip" search or install and you shouldn't see the prompt to upgrade.

Full disclosure, I haven't been messing with linux or python very long so this is probably by far not the correct way to go about fixing the problem but it seems to get by so idk?
Thanks for the details.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Upgrading pip2 destroys pip3 Luridis Linux From Scratch 1 06-09-2018 02:07 PM
[SOLVED] How to install Python "pip"/"pip3" in slackware-arm? njathan Slackware - ARM 5 08-09-2017 12:35 PM
After upgrade python3.4 to python3.5.1 , not able to install packages "request" though pip3 YOGESHAS87 Linux - Software 1 08-03-2016 10:38 PM
About Slackware 9.1 boot disk?? ftp://ftp.kpn.be/pub/linux/slackware/slackware-9.1-is AL3OMDAH Slackware 4 04-18-2007 09:54 AM
Slackware Slackware Slackware!!!!! monkeymartin Slackware 5 03-28-2003 10:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration