installing jppy without sudo rights
I am trying to install jppy on our Nikhef machines, but we are not allowed to write in the /usr/local/lib64/
folder without sudo root rights. I get
[tjuanve@stbc-i1 tjuanve]$ pip3 install jppy/
Processing ./jppy
Requirement already satisfied: pybind11>=2.4 in /cvmfs/sft.cern.ch/lcg/releases/pybind11/2.5.0-4041e/x86_64-centos7-gcc8-opt/lib/python3.7/site-packages (from jppy==3.3.0)
Installing collected packages: jppy
Running setup.py install for jppy ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-_hykh3qs-build/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-dwa3jyda-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/jppy
copying jppy/__init__.py -> build/lib.linux-x86_64-3.6/jppy
running build_ext
creating tmp
/cvmfs/sft.cern.ch/lcg/releases/gcc/8.3.0-cebb0/x86_64-centos7/bin/gcc -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python3.6m -c /tmp/tmpaub4wvzu.cpp -o tmp/tmpaub4wvzu.o -std=c++14
/cvmfs/sft.cern.ch/lcg/releases/gcc/8.3.0-cebb0/x86_64-centos7/bin/gcc -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python3.6m -c /tmp/tmp95gd2g16.cpp -o tmp/tmp95gd2g16.o -fvisibility=hidden
building 'jppy.pdf' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/src
/cvmfs/sft.cern.ch/lcg/releases/gcc/8.3.0-cebb0/x86_64-centos7/bin/gcc -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/cvmfs/sft.cern.ch/lcg/releases/pybind11/2.5.0-4041e/x86_64-centos7-gcc8-opt/lib/python3.7/site-packages/pybind11/include -I/cvmfs/sft.cern.ch/lcg/releases/pybind11/2.5.0-4041e/x86_64-centos7-gcc8-opt/lib/python3.7/site-packages/pybind11/include -I/project/antares/tjuanve/Jpp/software -I/usr/include/python3.6m -c src/pdf.cc -o build/temp.linux-x86_64-3.6/src/pdf.o -DVERSION_INFO="3.3.0" -std=c++14 -fvisibility=hidden
/cvmfs/sft.cern.ch/lcg/releases/gcc/8.3.0-cebb0/x86_64-centos7/bin/g++ -pthread -shared -Wl,-z,relro -g build/temp.linux-x86_64-3.6/src/pdf.o -L/usr/lib64 -lpython3.6m -o build/lib.linux-x86_64-3.6/jppy/pdf.cpython-36m-x86_64-linux-gnu.so
building 'jppy.npe' extension
/cvmfs/sft.cern.ch/lcg/releases/gcc/8.3.0-cebb0/x86_64-centos7/bin/gcc -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/cvmfs/sft.cern.ch/lcg/releases/pybind11/2.5.0-4041e/x86_64-centos7-gcc8-opt/lib/python3.7/site-packages/pybind11/include -I/cvmfs/sft.cern.ch/lcg/releases/pybind11/2.5.0-4041e/x86_64-centos7-gcc8-opt/lib/python3.7/site-packages/pybind11/include -I/project/antares/tjuanve/Jpp/software -I/usr/include/python3.6m -c src/npe.cc -o build/temp.linux-x86_64-3.6/src/npe.o -DVERSION_INFO="3.3.0" -std=c++14 -fvisibility=hidden
/cvmfs/sft.cern.ch/lcg/releases/gcc/8.3.0-cebb0/x86_64-centos7/bin/g++ -pthread -shared -Wl,-z,relro -g build/temp.linux-x86_64-3.6/src/npe.o -L/usr/lib64 -lpython3.6m -o build/lib.linux-x86_64-3.6/jppy/npe.cpython-36m-x86_64-linux-gnu.so
running install_lib
creating /usr/local/lib64/python3.6
error: could not create '/usr/local/lib64/python3.6': Permission denied
----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-_hykh3qs-build/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-dwa3jyda-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-_hykh3qs-build/
Is there a way to install the libraries somewhere else and to add to them to my path manually?