I have no root access.
I followed this tutorial http://ernie55ernie.github.io/python/2016/11/11/install-python-packages-for-local-user-without-sudo.html to install python without sudo access.
It worked fine, but then when I try to install a package I get the _ctypes error, which I know is due to the "libffi-dev" package missing (on debian).
I can't install this package, so I downloaded version 3.3 from their ftp servers and built it in python/libffi
.
I then set env variables like so:
export LD_LIBRARY_PATH=$HOME/python/libffi/lib64
export LD_RUN_PATH=/$HOME/python/libffi/lib64
export PKG_CONFIG_PATH=$HOME/python/libffi/lib/pkgconfig
After coming across this thread: https://www.reddit.com/r/linuxquestions/comments/c5wxh0/help_with_error_on_install_of_python37_from/
However, my pip install is still not working. How can I get around this? Is there an argument I can specify to pip to use my local version of libffi?