LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-26-2016, 10:55 PM   #1
ptahx
LQ Newbie
 
Registered: Dec 2016
Posts: 6

Rep: Reputation: Disabled
Confused with pip upgrade


I am running Ubuntu 16.10 with Anaconda installed and am attempting to update pip using the command line
Quote:
sudo pip install --upgrade pip
which doesn't seem to work at all .

I have also tried

Quote:
pip install --upgrade pip
(output below).

beyond that I have tried in an attempt to change the permissions on that directory.
Quote:
sudo find /home/ptahx/anaconda3 -type d -exec chmod 755 {} \;
I'm at a loss as to what to attempt next, I've tried reading up on it but haven't had much luck beyond what I have listed above. Any ideas or help would be appreciated.

Cheers!
newbie - PtahX



Quote:
ptahx@PtahXGamer:~$ pip install --upgrade pip
Collecting pip
Using cached pip-9.0.1-py2.py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 8.1.2
Uninstalling pip-8.1.2:
Exception:
Traceback (most recent call last):
File "/home/ptahx/anaconda3/lib/python3.5/shutil.py", line 538, in move
os.rename(src, real_dst)
OSError: [Errno 18] Invalid cross-device link: '/home/ptahx/anaconda3/bin/pip' -> '/tmp/pip-84n_t6ee-uninstall/home/ptahx/anaconda3/bin/pip'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/ptahx/anaconda3/lib/python3.5/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/home/ptahx/anaconda3/lib/python3.5/site-packages/pip/commands/install.py", line 317, in run
prefix=options.prefix_path,
File "/home/ptahx/anaconda3/lib/python3.5/site-packages/pip/req/req_set.py", line 736, in install
requirement.uninstall(auto_confirm=True)
File "/home/ptahx/anaconda3/lib/python3.5/site-packages/pip/req/req_install.py", line 742, in uninstall
paths_to_remove.remove(auto_confirm)
File "/home/ptahx/anaconda3/lib/python3.5/site-packages/pip/req/req_uninstall.py", line 115, in remove
renames(path, new_path)
File "/home/ptahx/anaconda3/lib/python3.5/site-packages/pip/utils/__init__.py", line 267, in renames
shutil.move(old, new)
File "/home/ptahx/anaconda3/lib/python3.5/shutil.py", line 553, in move
os.unlink(src)
PermissionError: [Errno 13] Permission denied: '/home/ptahx/anaconda3/bin/pip'
You are using pip version 8.1.2, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
 
Old 12-27-2016, 08:23 AM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by ptahx View Post
Quote:
You should consider upgrading via the 'pip install --upgrade pip' command.
command worked here.
Code:
sudo pip install --upgrade pip
Downloading/unpacking pip from https://pypi.python.org/packages/b6/ac/7015eb97dc749283ffdec1c3a88ddb8ae03b8fad0f0e611408f196358da3/pip-9.0.1-py2.py3-none-any.whl#md5=297dbd16ef53bcef0447d245815f5144
  Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB): 1.3MB downloaded
Installing collected packages: pip
  Found existing installation: pip 1.5.4
    Not uninstalling pip at /usr/lib/python2.7/dist-packages, owned by OS
Successfully installed pip
Cleaning up...
Let us know.

What is meant by "doesn't seem to work"?
If you run it twice, it spews really nasty looking Warnings.
Just means "current" AFAICT.

Stop changing perms/ownership until you get this resolved is my advice.
Shouldn't have to delete nothing either.

Last edited by Habitual; 12-27-2016 at 08:28 AM.
 
1 members found this post helpful.
Old 12-27-2016, 09:05 AM   #3
ptahx
LQ Newbie
 
Registered: Dec 2016
Posts: 6

Original Poster
Rep: Reputation: Disabled
Smile Solved :)

Appreciate the time from all of you! I will stop messing with permissions as recommended so running pip (without sudo) shows pip as being up to date --

in response to your questions:
#What is meant by "doesn't seem to work"?

You are using pip version 8.1.2, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command. but It is as of this mornig no longer giving me this warning for some reason. Probably you're correct in I entered the command too many times

below is the result - Thanks again for all your help

Quote:
ptahx@PtahXGamer:~$ sudo pip install --upgrade pip
sudo: pip: command not found

ptahx@PtahXGamer:~$ pip install --upgrade pip
Requirement already up-to-date: pip in ./.local/lib/python3.5/site-packages
ptahx@PtahXGamer:~$


************************************
Quote:
Originally Posted by Habitual View Post
command worked here.
Code:
sudo pip install --upgrade pip
Downloading/unpacking pip from https://pypi.python.org/packages/b6/ac/7015eb97dc749283ffdec1c3a88ddb8ae03b8fad0f0e611408f196358da3/pip-9.0.1-py2.py3-none-any.whl#md5=297dbd16ef53bcef0447d245815f5144
  Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB): 1.3MB downloaded
Installing collected packages: pip
  Found existing installation: pip 1.5.4
    Not uninstalling pip at /usr/lib/python2.7/dist-packages, owned by OS
Successfully installed pip
Cleaning up...
Let us know.

What is meant by "doesn't seem to work"?
If you run it twice, it spews really nasty looking Warnings.
Just means "current" AFAICT.

Stop changing perms/ownership until you get this resolved is my advice.
Shouldn't have to delete nothing either.
 
Old 12-27-2016, 09:50 AM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Glad it worked out!
 
1 members found this post helpful.
  


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
confused by slackpkg upgrade-all and install-new stringchopper Slackware 15 12-18-2022 04:06 PM
pip install mitmproxy==0.13 hack3rcon Linux - Software 4 02-12-2016 12:39 AM
Hello, Bon Jour, Pip Pip SocaSpice LinuxQuestions.org Member Intro 3 11-14-2010 08:22 AM
upgrade or patch or what? ... i'm confused fenderman11111 *BSD 1 01-24-2006 07:45 PM

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

All times are GMT -5. The time now is 11:57 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