DebugFactor.com | Forum

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-rllx0act/pynacl/ while trying to install docker-compose with pip

I am getting the following error while trying to install docker-compose.

pip3 install docker-compose
File "src/bindings/build.py", line 35, in <module>
        ffi = FFI()
      File "/tmp/pip-build-rllx0act/pynacl/.eggs/cffi-1.15.0-py3.6-linux-x86_64.egg/cffi/api.py", line 48, in __init__
        import _cffi_backend as backend
    ImportError: /tmp/pip-build-rllx0act/pynacl/.eggs/cffi-1.15.0-py3.6-linux-x86_64.egg/_cffi_backend.cpython-36m-x86_64-linux-gnu.so: failed to map segment from shared object: Operation not permitted

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-rllx0act/pynacl/

The error Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-rllx0act/pynacl/ indicates that you don’t have permissions to execute commands in /tmp folder.

Try giving exec permission to /tmp folder as

mount -o remount,exec /tmp