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.
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.
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.