I am trying to configure pip target path on CentOS by all known methods to no avail. I have no su rights. What I did:
export PYTHONPATH=$HOME/tools/.usr/py2/lib
echo $PYTHONPATH
# retus $HOME/tools/.usr/py2/lib
content of ~/.pydistutils.cfg:
[install]
install_scripts = $HOME/tools/.usr/py2/scripts
install_data = $HOME/tools/.usr/py2/data
install_lib = $HOME/tools/.usr/py2/lib
Ruing
scl enable python27 '$HOME/tools/.usr/py2/scripts/pip install --install-option="--home=$HOME/tools/.usr/py2/lib" ipython'
results in waings like this:
Target directory $HOME/tools/.usr/py3/lib/pathlib2.py already exists. Specify --upgrade to force replacement.
I.e. it has uses some other path file or variable than all listed above and believes that target is $HOME/tools/.usr/py3/lib. Why is it so and how to force it to my $PYTHONPATH?
Another try:
scl enable python27 '$HOME/tools/.usr/py2/scripts/pip install --install-option="--prefix=/ye/netapp/jimmie.ye/tools/.usr/py2/lib" --upgrade pip'
$HOME/tools/.usr/py2/lib/pip-8.1.1-py2.7.egg/pip/commands/install.py:180: UserWaing: Disabling all use of wheels due to the use of --build-options / --global-options / --install-options.
cmdoptions.check_install_build_global(options)
Collecting pip
Using cached pip-8.1.1.tar.gz
Installing collected packages: pip
Ruing setup.py install for pip ... error
Complete output from command /opt/rh/python27/root/usr/bin/python2 -u -c "import setuptools, tokenize;__file__='/scrapp/dlituiev/pip-build-pGEJ7L/pip/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('', 'n'), __file__, 'exec'))" install --record /scrapp/dlituiev/pip-SScyQc-record/install-record.txt --single-version-exteally-managed --compile --prefix=/ye/netapp/jimmie.ye/tools/.usr/py2/lib --home=/scrapp/dlituiev/tmps67g2R:
ruing install
error: must supply either home or prefix/exec-prefix -- not both
----------------------------------------
Command "/opt/rh/python27/root/usr/bin/python2 -u -c "import setuptools, tokenize;__file__='/scrapp/pip-build-pGEJ7L/pip/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('', 'n'), __file__, 'exec'))" install --record /scrapp/dlituiev/pip-SScyQc-record/install-record.txt --single-version-exteally-managed --compile --prefix=$HOME/tools/.usr/py2/lib --home=/scrapp/tmps67g2R" failed with error code 1 in /scrapp/pip-build-pGEJ7L/pip/
all $HOME are spelled in full in original commands and errors.
