Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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?
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.