Imposible to install in docker Python library cryptography
I am using ubuntu 22.04
If I try to install cryptography in the docker container , there is an error
Is there any solution or do you think it is better to go with odoo online.
thanks
error
odoo@15c12366bb21:/$ pip install cryptography
bash: pip: command not found
odoo@15c12366bb21:/$ pip3 install cryptography
Collecting cryptography
Using cached https://files\.pythonhosted\.org/packages/13/dd/a9608b7aebe5d2dc0c98a4b2090a6b815628efa46cc1c046b89d8cd25f4c/cryptography\-38\.0\.3\.tar\.gz
\ \ Installing\ build\ dependencies\ \.\.\.\ error
\ \ Complete\ output\ from\ command\ /usr/bin/python3\ \-m\ pip\ install\ \-\-ignore\-installed\ \-\-no\-user\ \-\-prefix\ /tmp/pip\-build\-env\-fospjm0f\ \-\-no\-warn\-script\-location\ \-\-no\-binary\ :none:\ \-\-only\-binary\ :none:\ \-i\ https://pypi\.org/simple\ \-\-\ setuptools>=40\.6\.0,!=60\.9\.0\ wheel\ "cffi>=1\.12;\ platform_python_implementation\ !=\ 'PyPy'"\ setuptools\-rust>=0\.11\.4:
\ \ Collecting\ setuptools!=60\.9\.0,>=40\.6\.0
\ \ \ \ Using\ cached\ https://files\.pythonhosted\.org/packages/1f/97/c03668380f278f1f8b0486d820c142cf224bba1bd78416e1797b52e0e81c/setuptools\-65\.6\.0\-py3\-none\-any\.whl
\ \ Collecting\ wheel
\ \ \ \ Using\ cached\ https://files\.pythonhosted\.org/packages/bd/7c/d38a0b30ce22fc26ed7dbc087c6d00851fb3395e9d0dac40bec1f905030c/wheel\-0\.38\.4\-py3\-none\-any\.whl
\ \ Collecting\ cffi>=1\.12
\ \ \ \ Using\ cached\ https://files\.pythonhosted\.org/packages/2b/a8/050ab4f0c3d4c1b8aaa805f70e26e84d0e27004907c5b8ecc1d31815f92a/cffi\-1\.15\.1\.tar\.gz
\ \ Collecting\ setuptools\-rust>=0\.11\.4
\ \ \ \ Using\ cached\ https://files\.pythonhosted\.org/packages/ef/da/dca8f90986325abe3027a5e3af5e12ce1d78eeb664a11971b2e7e703b9e3/setuptools_rust\-1\.5\.2\-py3\-none\-any\.whl
\ \ Collecting\ pycparser\ \(from\ cffi>=1\.12\)
\ \ \ \ Using\ cached\ https://files\.pythonhosted\.org/packages/62/d5/5f610ebe421e85889f2e55e33b7f9a6795bd982198517d912eb1c76e1a53/pycparser\-2\.21\-py2\.py3\-none\-any\.whl
\ \ Collecting\ typing\-extensions>=3\.7\.4\.3\ \(from\ setuptools\-rust>=0\.11\.4\)
\ \ \ \ Using\ cached\ https://files\.pythonhosted\.org/packages/0b/8e/f1a0a5a76cfef77e1eb6004cb49e5f8d72634da638420b9ea492ce8305e8/typing_extensions\-4\.4\.0\-py3\-none\-any\.whl
\ \ Collecting\ semantic\-version<3,>=2\.8\.2\ \(from\ setuptools\-rust>=0\.11\.4\)
\ \ \ \ Using\ cached\ https://files\.pythonhosted\.org/packages/6a/23/8146aad7d88f4fcb3a6218f41a60f6c2d4e3a72de72da1825dc7c8f7877c/semantic_version\-2\.10\.0\-py2\.py3\-none\-any\.whl
\ \ Building\ wheels\ for\ collected\ packages:\ cffi
\ \ \ \ Running\ setup\.py\ bdist_wheel\ for\ cffi:\ started
\ \ \ \ Running\ setup\.py\ bdist_wheel\ for\ cffi:\ finished\ with\ status\ 'error'
\ \ \ \ Complete\ output\ from\ command\ /usr/bin/python3\ \-u\ \-c\ "import\ setuptools,\ tokenize;__file__='/tmp/pip\-install\-eizuk1un/cffi/setup\.py';f=getattr\(tokenize,\ 'open',\ open\)\(__file__\);code=f\.read\(\)\.replace\('\r\n',\ '\n'\);f\.close\(\);exec\(compile\(code,\ __file__,\ 'exec'\)\)"\ bdist_wheel\ \-d\ /tmp/pip\-wheel\-b_09ilxl\ \-\-python\-tag\ cp37:
\ \ \ \ unable\ to\ execute\ 'x86_64\-linux\-gnu\-gcc':\ No\ such\ file\ or\ directory
\ \ \ \ unable\ to\ execute\ 'x86_64\-linux\-gnu\-gcc':\ No\ such\ file\ or\ directory
\ \ \ \ \ \ \ \ No\ working\ compiler\ found,\ or\ bogus\ compiler\ options\ passed\ to
\ \ \ \ \ \ \ \ the\ compiler\ from\ Python's\ standard\ "distutils"\ module\.\ \ See
\ \ \ \ \ \ \ \ the\ error\ messages\ above\.\ \ Likely,\ the\ problem\ is\ not\ related
\ \ \ \ \ \ \ \ to\ CFFI\ but\ generic\ to\ the\ setup\.py\ of\ any\ Python\ package\ that
\ \ \ \ \ \ \ \ tries\ to\ compile\ C\ code\.\ \ \(Hints:\ on\ OS/X\ 10\.8,\ for\ errors\ about
\ \ \ \ \ \ \ \ \-mno\-fused\-madd\ see\ http://stackoverflow\.com/questions/22313407/
\ \ \ \ \ \ \ \ Otherwise,\ see\ https://wiki\.python\.org/moin/CompLangPython\ or
\ \ \ \ \ \ \ \ the\ IRC\ channel\ \#python\ on\ irc\.libera\.chat\.\)
\ \ \ \ \ \ \ \ Trying\ to\ continue\ anyway\.\ \ If\ you\ are\ trying\ to\ install\ CFFI\ from
\ \ \ \ \ \ \ \ a\ build\ done\ in\ a\ different\ context,\ you\ can\ ignore\ this\ warning\.
\ \ \ \ usage:\ \-c\ \[global_opts\]\ cmd1\ \[cmd1_opts\]\ \[cmd2\ \[cmd2_opts\]\ \.\.\.\]
\ \ \ \ \ \ \ or:\ \-c\ \-\-help\ \[cmd1\ cmd2\ \.\.\.\]
\ \ \ \ \ \ \ or:\ \-c\ \-\-help\-commands
\ \ \ \ \ \ \ or:\ \-c\ cmd\ \-\-help
\ \ \ \ error:\ invalid\ command\ 'bdist_wheel'
\ \ \ \ \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
\ \ \ \ Failed\ building\ wheel\ for\ cffi
\ \ \ \ Running\ setup\.py\ clean\ for\ cffi
\ \ Failed\ to\ build\ cffi
\ \ Installing\ collected\ packages:\ setuptools,\ wheel,\ pycparser,\ cffi,\ typing\-extensions,\ semantic\-version,\ setuptools\-rust
\ \ \ \ Running\ setup\.py\ install\ for\ cffi:\ started
\ \ \ \ \ \ Running\ setup\.py\ install\ for\ cffi:\ finished\ with\ status\ 'error'
\ \ \ \ \ \ Complete\ output\ from\ command\ /usr/bin/python3\ \-u\ \-c\ "import\ setuptools,\ tokenize;__file__='/tmp/pip\-install\-eizuk1un/cffi/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\-record\-ogt04t19/install\-record\.txt\ \-\-single\-version\-externally\-managed\ \-\-prefix\ /tmp/pip\-build\-env\-fospjm0f\ \-\-compile:
\ \ \ \ \ \ unable\ to\ execute\ 'x86_64\-linux\-gnu\-gcc':\ No\ such\ file\ or\ directory
\ \ \ \ \ \ unable\ to\ execute\ 'x86_64\-linux\-gnu\-gcc':\ No\ such\ file\ or\ directory
\ \ \ \ \ \ \ \ \ \ No\ working\ compiler\ found,\ or\ bogus\ compiler\ options\ passed\ to
\ \ \ \ \ \ \ \ \ \ the\ compiler\ from\ Python's\ standard\ "distutils"\ module\.\ \ See
\ \ \ \ \ \ \ \ \ \ the\ error\ messages\ above\.\ \ Likely,\ the\ problem\ is\ not\ related
\ \ \ \ \ \ \ \ \ \ to\ CFFI\ but\ generic\ to\ the\ setup\.py\ of\ any\ Python\ package\ that
\ \ \ \ \ \ \ \ \ \ tries\ to\ compile\ C\ code\.\ \ \(Hints:\ on\ OS/X\ 10\.8,\ for\ errors\ about
\ \ \ \ \ \ \ \ \ \ \-mno\-fused\-madd\ see\ http://stackoverflow\.com/questions/22313407/
\ \ \ \ \ \ \ \ \ \ Otherwise,\ see\ https://wiki\.python\.org/moin/CompLangPython\ or
\ \ \ \ \ \ \ \ \ \ the\ IRC\ channel\ \#python\ on\ irc\.libera\.chat\.\)
\ \ \ \ \ \ \ \ \ \ Trying\ to\ continue\ anyway\.\ \ If\ you\ are\ trying\ to\ install\ CFFI\ from
\ \ \ \ \ \ \ \ \ \ a\ build\ done\ in\ a\ different\ context,\ you\ can\ ignore\ this\ warning\.
\ \ \ \ \ \ running\ install
\ \ \ \ \ \ running\ build
\ \ \ \ \ \ running\ build_py
\ \ \ \ \ \ creating\ build
\ \ \ \ \ \ creating\ build/lib\.linux\-x86_64\-3\.7
\ \ \ \ \ \ creating\ build/lib\.linux\-x86_64\-3\.7/cffi
\ \ \ \ \ \ copying\ cffi/setuptools_ext\.py\ \->\ build/lib\.linux\-x86_64\-3\.7/cffi
\ \ \ \ \ \ copying\ cffi/api\.py\ \->\ build/lib\.linux\-x86_64\-3\.7/cffi
\ \ \ \ \ \ copying\ cffi/pkgconfig\.py\ \->\ build/lib\.linux\-x86_64\-3\.7/cffi
\ \ \ \ \ \ copying\ cffi/backend_ctypes\.py\ \->\ build/lib\.linux\-x86_64\-3\.7/cffi
\ \ \ \ \ \ copying\ cffi/__init__\.py\ \->\ build/lib\.linux\-x86_64\-3\.7/cffi
\ \ \ \ \ \ copying\ cffi/recompiler\.py\ \->\ build/lib\.linux\-x86_64\-3\.7/cffi
\ \ \ \ \ \ copying\ cffi/lock\.py\ \->\ build/lib\.linux\-x86_64\-3\.7/cffi
\ \ \ \ \ \ copying\ cffi/ffiplatform\.py\ \->\ build/lib\.linux\-x86_64\-3\.7/cffi
\ \ \ \ \ \ copying\ cffi/cffi_opcode\.py\ \->\ build/lib\.linux\-x86_64\-3\.7/cffi
\ \ \ \ \ \ copying\ cffi/model\.py\ \->\ build/lib\.linux\-x86_64\-3\.7/cffi
\ \ \ \ \ \ copying\ cffi/vengine_cpy\.py\ \->\ build/lib\.linux\-x86_64\-3\.7/cffi
\ \ \ \ \ \ copying\ cffi/vengine_gen\.py\ \->\ build/lib\.linux\-x86_64\-3\.7/cffi
\ \ \ \ \ \ copying\ cffi/error\.py\ \->\ build/lib\.linux\-x86_64\-3\.7/cffi
\ \ \ \ \ \ copying\ cffi/cparser\.py\ \->\ build/lib\.linux\-x86_64\-3\.7/cffi
\ \ \ \ \ \ copying\ cffi/commontypes\.py\ \->\ build/lib\.linux\-x86_64\-3\.7/cffi
\ \ \ \ \ \ copying\ cffi/verifier\.py\ \->\ build/lib\.linux\-x86_64\-3\.7/cffi
\ \ \ \ \ \ copying\ cffi/_cffi_include\.h\ \->\ build/lib\.linux\-x86_64\-3\.7/cffi
\ \ \ \ \ \ copying\ cffi/parse_c_type\.h\ \->\ build/lib\.linux\-x86_64\-3\.7/cffi
\ \ \ \ \ \ copying\ cffi/_embedding\.h\ \->\ build/lib\.linux\-x86_64\-3\.7/cffi
\ \ \ \ \ \ copying\ cffi/_cffi_errors\.h\ \->\ build/lib\.linux\-x86_64\-3\.7/cffi
\ \ \ \ \ \ running\ build_ext
\ \ \ \ \ \ building\ '_cffi_backend'\ extension
\ \ \ \ \ \ creating\ build/temp\.linux\-x86_64\-3\.7
\ \ \ \ \ \ creating\ build/temp\.linux\-x86_64\-3\.7/c
\ \ \ \ \ \ x86_64\-linux\-gnu\-gcc\ \-pthread\ \-DNDEBUG\ \-g\ \-fwrapv\ \-O2\ \-Wall\ \-g\ \-fstack\-protector\-strong\ \-Wformat\ \-Werror=format\-security\ \-Wdate\-time\ \-D_FORTIFY_SOURCE=2\ \-fPIC\ \-DFFI_BUILDING=1\ \-I/usr/include/ffi\ \-I/usr/include/libffi\ \-I/usr/include/python3\.7m\ \-c\ c/_cffi_backend\.c\ \-o\ build/temp\.linux\-x86_64\-3\.7/c/_cffi_backend\.o
\ \ \ \ \ \ unable\ to\ execute\ 'x86_64\-linux\-gnu\-gcc':\ No\ such\ file\ or\ directory
\ \ \ \ \ \ error:\ command\ 'x86_64\-linux\-gnu\-gcc'\ failed\ with\ exit\ status\ 1
\ \ \ \ \ \ \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
\ \ Command\ "/usr/bin/python3\ \-u\ \-c\ "import\ setuptools,\ tokenize;__file__='/tmp/pip\-install\-eizuk1un/cffi/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\-record\-ogt04t19/install\-record\.txt\ \-\-single\-version\-externally\-managed\ \-\-prefix\ /tmp/pip\-build\-env\-fospjm0f\ \-\-compile"\ failed\ with\ error\ code\ 1\ in\ /tmp/pip\-install\-eizuk1un/cffi/
\ \ \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
Command\ "/usr/bin/python3\ \-m\ pip\ install\ \-\-ignore\-installed\ \-\-no\-user\ \-\-prefix\ /tmp/pip\-build\-env\-fospjm0f\ \-\-no\-warn\-script\-location\ \-\-no\-binary\ :none:\ \-\-only\-binary\ :none:\ \-i\ https://pypi.org/simple -- setuptools>=40.6.0,!=60.9.0 wheel "cffi>=1.12; platform_python_implementation != 'PyPy'" setuptools-rust>=0.11.4" failed with error code 1 in None