Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #57257 > unrolled thread
| Started by | Neal Becker <ndbecker2@gmail.com> |
|---|---|
| First post | 2013-10-22 09:11 -0400 |
| Last post | 2013-10-22 20:04 -0700 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.python
pip won't ignore system-installed files Neal Becker <ndbecker2@gmail.com> - 2013-10-22 09:11 -0400
Re: pip won't ignore system-installed files jason.gors.work@gmail.com - 2013-10-22 20:04 -0700
| From | Neal Becker <ndbecker2@gmail.com> |
|---|---|
| Date | 2013-10-22 09:11 -0400 |
| Subject | pip won't ignore system-installed files |
| Message-ID | <mailman.1351.1382447513.18130.python-list@python.org> |
IIUC, it is perfectly legitimate to do install into --user to override system-
wide installed modules. Thus, I should be able to do:
pip install --user --up blah
even though there is already a package blah in
/usr/lib/pythonxxx/site_packages/...
But even with -I (ignore installed) switch, pip fails:
pip install --user --up -I matplotlib
...
Installing collected packages: matplotlib, numpy, python-dateutil, tornado,
pyparsing, nose, six
Found existing installation: matplotlib 1.2.0
Uninstalling matplotlib:
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/pip-1.2.1-
py2.7.egg/pip/basecommand.py", line 107, in main
status = self.run(options, args)
File "/usr/lib/python2.7/site-packages/pip-1.2.1-
py2.7.egg/pip/commands/install.py", line 261, in run
requirement_set.install(install_options, global_options)
File "/usr/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg/pip/req.py", line
1162, in install
requirement.uninstall(auto_confirm=True)
File "/usr/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg/pip/req.py", line
495, in uninstall
paths_to_remove.remove(auto_confirm)
File "/usr/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg/pip/req.py", line
1492, in remove
renames(path, new_path)
File "/usr/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg/pip/util.py", line
273, in renames
shutil.move(old, new)
File "/usr/lib64/python2.7/shutil.py", line 302, in move
os.unlink(src)
OSError: [Errno 13] Permission denied: '/usr/lib64/python2.7/site-
packages/matplotlib-1.2.0-py2.7.egg-info'
Can we please fix this?
[toc] | [next] | [standalone]
| From | jason.gors.work@gmail.com |
|---|---|
| Date | 2013-10-22 20:04 -0700 |
| Message-ID | <6f304a06-b794-4102-b9c6-0b06c1116fea@googlegroups.com> |
| In reply to | #57257 |
if you use a newer version of pip i think this should work. On Tuesday, October 22, 2013 9:11:40 AM UTC-4, Neal Becker wrote: > IIUC, it is perfectly legitimate to do install into --user to override system- > > wide installed modules. Thus, I should be able to do: > > > > pip install --user --up blah > > > > even though there is already a package blah in > > /usr/lib/pythonxxx/site_packages/... > > > > But even with -I (ignore installed) switch, pip fails: > > > > pip install --user --up -I matplotlib > > ... > > Installing collected packages: matplotlib, numpy, python-dateutil, tornado, > > pyparsing, nose, six > > Found existing installation: matplotlib 1.2.0 > > Uninstalling matplotlib: > > Exception: > > Traceback (most recent call last): > > File "/usr/lib/python2.7/site-packages/pip-1.2.1- > > py2.7.egg/pip/basecommand.py", line 107, in main > > status = self.run(options, args) > > File "/usr/lib/python2.7/site-packages/pip-1.2.1- > > py2.7.egg/pip/commands/install.py", line 261, in run > > requirement_set.install(install_options, global_options) > > File "/usr/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg/pip/req.py", line > > 1162, in install > > requirement.uninstall(auto_confirm=True) > > File "/usr/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg/pip/req.py", line > > 495, in uninstall > > paths_to_remove.remove(auto_confirm) > > File "/usr/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg/pip/req.py", line > > 1492, in remove > > renames(path, new_path) > > File "/usr/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg/pip/util.py", line > > 273, in renames > > shutil.move(old, new) > > File "/usr/lib64/python2.7/shutil.py", line 302, in move > > os.unlink(src) > > OSError: [Errno 13] Permission denied: '/usr/lib64/python2.7/site- > > packages/matplotlib-1.2.0-py2.7.egg-info' > > > > Can we please fix this?
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web