When the version of pip provided by the image is not the latest, running command the one reported below fails.
[scikit-ci] Executing: ./dockcross /opt/python/cp27-cp27mu/bin/python -m pip install --disable-pip-version-check --upgrade pip
Collecting pip
Downloading pip-9.0.0-py2.py3-none-any.whl (1.3MB)
Installing collected packages: pip
Found existing installation: pip 8.1.2
Uninstalling pip-8.1.2:
Exception:
Traceback (most recent call last):
File "/opt/python/cp27-cp27mu/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/opt/python/cp27-cp27mu/lib/python2.7/site-packages/pip/commands/install.py", line 317, in run
prefix=options.prefix_path,
File "/opt/python/cp27-cp27mu/lib/python2.7/site-packages/pip/req/req_set.py", line 736, in install
requirement.uninstall(auto_confirm=True)
File "/opt/python/cp27-cp27mu/lib/python2.7/site-packages/pip/req/req_install.py", line 742, in uninstall
paths_to_remove.remove(auto_confirm)
File "/opt/python/cp27-cp27mu/lib/python2.7/site-packages/pip/req/req_uninstall.py", line 115, in remove
renames(path, new_path)
File "/opt/python/cp27-cp27mu/lib/python2.7/site-packages/pip/utils/__init__.py", line 267, in renames
shutil.move(old, new)
File "/opt/python/cp27-cp27mu/lib/python2.7/shutil.py", line 303, in move
os.unlink(src)
OSError: [Errno 13] Permission denied: '/opt/_internal/cpython-2.7.11-ucs4/bin/pip'
When the version of pip provided by the image is not the latest, running command the one reported below fails.
Few approaches:
pre_chown_hookto give an opportunity for the script to change the ownership of the site-packages folder associated with the different python installs.