Unable to install sdk python on Ubuntu 18.04

Hello everyone. I am trying to install Python SDK but I keep getting this error ( very long but I will include ir complete in case is needed for information, thanks so much if anyone could help me on this matter).

ERROR: Command errored out with exit status 1:
command: /usr/bin/python3.6 -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-6sorp8d5/couchbase/setup.py’"’"’; file=’"’"’/tmp/pip-install-6sorp8d5/couchbase/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-4k5_c353/install-record.txt --single-version-externally-managed --compile
cwd: /tmp/pip-install-6sorp8d5/couchbase/
Complete output (146 lines):
running install
running build
running build_py
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/acouchbase
copying acouchbase/asyncio_iops.py -> build/lib.linux-x86_64-3.6/acouchbase
copying acouchbase/init.py -> build/lib.linux-x86_64-3.6/acouchbase
copying acouchbase/bucket.py -> build/lib.linux-x86_64-3.6/acouchbase
creating build/lib.linux-x86_64-3.6/couchbase
copying couchbase/analytics_ingester.py -> build/lib.linux-x86_64-3.6/couchbase
copying couchbase/items.py -> build/lib.linux-x86_64-3.6/couchbase
copying couchbase/user_constants.py -> build/lib.linux-x86_64-3.6/couchbase
copying couchbase/priv_constants.py -> build/lib.linux-x86_64-3.6/couchbase
copying couchbase/fulltext.py -> build/lib.linux-x86_64-3.6/couchbase
copying couchbase/transcoder.py -> build/lib.linux-x86_64-3.6/couchbase
copying couchbase/result.py -> build/lib.linux-x86_64-3.6/couchbase
copying couchbase/exceptions.py -> build/lib.linux-x86_64-3.6/couchbase
copying couchbase/connstr.py -> build/lib.linux-x86_64-3.6/couchbase
copying couchbase/bucketmanager.py -> build/lib.linux-x86_64-3.6/couchbase
copying couchbase/_bootstrap.py -> build/lib.linux-x86_64-3.6/couchbase
copying couchbase/mutation_state.py -> build/lib.linux-x86_64-3.6/couchbase
copying couchbase/n1ql.py -> build/lib.linux-x86_64-3.6/couchbase
copying couchbase/deprecation.py -> build/lib.linux-x86_64-3.6/couchbase
copying couchbase/connection.py -> build/lib.linux-x86_64-3.6/couchbase
copying couchbase/experimental.py -> build/lib.linux-x86_64-3.6/couchbase
copying couchbase/cluster.py -> build/lib.linux-x86_64-3.6/couchbase
copying couchbase/init.py -> build/lib.linux-x86_64-3.6/couchbase
copying couchbase/_logutil.py -> build/lib.linux-x86_64-3.6/couchbase
copying couchbase/bucket.py -> build/lib.linux-x86_64-3.6/couchbase
copying couchbase/admin.py -> build/lib.linux-x86_64-3.6/couchbase
copying couchbase/_ixmgmt.py -> build/lib.linux-x86_64-3.6/couchbase
copying couchbase/cbas.py -> build/lib.linux-x86_64-3.6/couchbase
copying couchbase/_version.py -> build/lib.linux-x86_64-3.6/couchbase
copying couchbase/crypto.py -> build/lib.linux-x86_64-3.6/couchbase
copying couchbase/mockserver.py -> build/lib.linux-x86_64-3.6/couchbase
copying couchbase/_pyport.py -> build/lib.linux-x86_64-3.6/couchbase
copying couchbase/analytics.py -> build/lib.linux-x86_64-3.6/couchbase
copying couchbase/auth_domain.py -> build/lib.linux-x86_64-3.6/couchbase
copying couchbase/subdocument.py -> build/lib.linux-x86_64-3.6/couchbase
creating build/lib.linux-x86_64-3.6/couchbase/views
copying couchbase/views/iterator.py -> build/lib.linux-x86_64-3.6/couchbase/views
copying couchbase/views/params.py -> build/lib.linux-x86_64-3.6/couchbase/views
copying couchbase/views/init.py -> build/lib.linux-x86_64-3.6/couchbase/views
creating build/lib.linux-x86_64-3.6/couchbase/iops
copying couchbase/iops/base.py -> build/lib.linux-x86_64-3.6/couchbase/iops
copying couchbase/iops/select.py -> build/lib.linux-x86_64-3.6/couchbase/iops
copying couchbase/iops/init.py -> build/lib.linux-x86_64-3.6/couchbase/iops
creating build/lib.linux-x86_64-3.6/couchbase/asynchronous
copying couchbase/asynchronous/fulltext.py -> build/lib.linux-x86_64-3.6/couchbase/asynchronous
copying couchbase/asynchronous/n1ql.py -> build/lib.linux-x86_64-3.6/couchbase/asynchronous
copying couchbase/asynchronous/events.py -> build/lib.linux-x86_64-3.6/couchbase/asynchronous
copying couchbase/asynchronous/init.py -> build/lib.linux-x86_64-3.6/couchbase/asynchronous
copying couchbase/asynchronous/async_bucket.py -> build/lib.linux-x86_64-3.6/couchbase/asynchronous
copying couchbase/asynchronous/rowsbase.py -> build/lib.linux-x86_64-3.6/couchbase/asynchronous
copying couchbase/asynchronous/bucket.py -> build/lib.linux-x86_64-3.6/couchbase/asynchronous
copying couchbase/asynchronous/view.py -> build/lib.linux-x86_64-3.6/couchbase/asynchronous
creating build/lib.linux-x86_64-3.6/couchbase/tests
copying couchbase/tests/importer.py -> build/lib.linux-x86_64-3.6/couchbase/tests
copying couchbase/tests/base.py -> build/lib.linux-x86_64-3.6/couchbase/tests
copying couchbase/tests/test_sync.py -> build/lib.linux-x86_64-3.6/couchbase/tests
copying couchbase/tests/init.py -> build/lib.linux-x86_64-3.6/couchbase/tests
creating build/lib.linux-x86_64-3.6/couchbase/tests/cases
copying couchbase/tests/cases/transcoder_t.py -> build/lib.linux-x86_64-3.6/couchbase/tests/cases
copying couchbase/tests/cases/connection_t.py -> build/lib.linux-x86_64-3.6/couchbase/tests/cases
copying couchbase/tests/cases/admin_t.py -> build/lib.linux-x86_64-3.6/couchbase/tests/cases
copying couchbase/tests/cases/lockmode_t.py -> build/lib.linux-x86_64-3.6/couchbase/tests/cases
copying couchbase/tests/cases/set_t.py -> build/lib.linux-x86_64-3.6/couchbase/tests/cases
copying couchbase/tests/cases/get_t.py -> build/lib.linux-x86_64-3.6/couchbase/tests/cases
copying couchbase/tests/cases/touch_t.py -> build/lib.linux-x86_64-3.6/couchbase/tests/cases
copying couchbase/tests/cases/dupkeys_t.py -> build/lib.linux-x86_64-3.6/couchbase/tests/cases
copying couchbase/tests/cases/crypto_t.py -> build/lib.linux-x86_64-3.6/couchbase/tests/cases
copying couchbase/tests/cases/excextra_t.py -> build/lib.linux-x86_64-3.6/couchbase/tests/cases
copying couchbase/tests/cases/design_t.py -> build/lib.linux-x86_64-3.6/couchbase/tests/cases
copying couchbase/tests/cases/connstr_t.py -> build/lib.linux-x86_64-3.6/couchbase/tests/cases
copying couchbase/tests/cases/stats_t.py -> build/lib.linux-x86_64-3.6/couchbase/tests/cases
copying couchbase/tests/cases/cbftstrings_t.py -> build/lib.linux-x86_64-3.6/couchbase/tests/cases
copying couchbase/tests/cases/view_iterator_t.py -> build/lib.linux-x86_64-3.6/couchbase/tests/cases
copying couchbase/tests/cases/rget_t.py -> build/lib.linux-x86_64-3.6/couchbase/tests/cases
copying couchbase/tests/cases/n1ql_t.py -> build/lib.linux-x86_64-3.6/couchbase/tests/cases
copying couchbase/tests/cases/diag_t.py -> build/lib.linux-x86_64-3.6/couchbase/tests/cases
copying couchbase/tests/cases/enh_err_t.py -> build/lib.linux-x86_64-3.6/couchbase/tests/cases
copying couchbase/tests/cases/ixmgmt_t.py -> build/lib.linux-x86_64-3.6/couchbase/tests/cases
copying couchbase/tests/cases/delete_t.py -> build/lib.linux-x86_64-3.6/couchbase/tests/cases
copying couchbase/tests/cases/set_converters_t.py -> build/lib.linux-x86_64-3.6/couchbase/tests/cases
copying couchbase/tests/cases/viewstrings_t.py -> build/lib.linux-x86_64-3.6/couchbase/tests/cases
copying couchbase/tests/cases/init.py -> build/lib.linux-x86_64-3.6/couchbase/tests/cases
copying couchbase/tests/cases/xattr_t.py -> build/lib.linux-x86_64-3.6/couchbase/tests/cases
copying couchbase/tests/cases/endure_t.py -> build/lib.linux-x86_64-3.6/couchbase/tests/cases
copying couchbase/tests/cases/cluster_t.py -> build/lib.linux-x86_64-3.6/couchbase/tests/cases
copying couchbase/tests/cases/datastructures_t.py -> build/lib.linux-x86_64-3.6/couchbase/tests/cases
copying couchbase/tests/cases/lock_t.py -> build/lib.linux-x86_64-3.6/couchbase/tests/cases
copying couchbase/tests/cases/results_t.py -> build/lib.linux-x86_64-3.6/couchbase/tests/cases
copying couchbase/tests/cases/misc_t.py -> build/lib.linux-x86_64-3.6/couchbase/tests/cases
copying couchbase/tests/cases/badargs_t.py -> build/lib.linux-x86_64-3.6/couchbase/tests/cases
copying couchbase/tests/cases/pipeline_t.py -> build/lib.linux-x86_64-3.6/couchbase/tests/cases
copying couchbase/tests/cases/mutationtokens_t.py -> build/lib.linux-x86_64-3.6/couchbase/tests/cases
copying couchbase/tests/cases/subdoc_t.py -> build/lib.linux-x86_64-3.6/couchbase/tests/cases
copying couchbase/tests/cases/spatial_t.py -> build/lib.linux-x86_64-3.6/couchbase/tests/cases
copying couchbase/tests/cases/arithmetic_t.py -> build/lib.linux-x86_64-3.6/couchbase/tests/cases
copying couchbase/tests/cases/append_t.py -> build/lib.linux-x86_64-3.6/couchbase/tests/cases
copying couchbase/tests/cases/encodings_t.py -> build/lib.linux-x86_64-3.6/couchbase/tests/cases
copying couchbase/tests/cases/itertypes_t.py -> build/lib.linux-x86_64-3.6/couchbase/tests/cases
copying couchbase/tests/cases/tracing_t.py -> build/lib.linux-x86_64-3.6/couchbase/tests/cases
copying couchbase/tests/cases/analytics_t.py -> build/lib.linux-x86_64-3.6/couchbase/tests/cases
copying couchbase/tests/cases/verinfo_t.py -> build/lib.linux-x86_64-3.6/couchbase/tests/cases
copying couchbase/tests/cases/observe_t.py -> build/lib.linux-x86_64-3.6/couchbase/tests/cases
copying couchbase/tests/cases/n1qlstrings_t.py -> build/lib.linux-x86_64-3.6/couchbase/tests/cases
copying couchbase/tests/cases/itmops_t.py -> build/lib.linux-x86_64-3.6/couchbase/tests/cases
copying couchbase/tests/cases/view_t.py -> build/lib.linux-x86_64-3.6/couchbase/tests/cases
copying couchbase/tests/cases/flush_t.py -> build/lib.linux-x86_64-3.6/couchbase/tests/cases
copying couchbase/tests/cases/empty_key_t.py -> build/lib.linux-x86_64-3.6/couchbase/tests/cases
copying couchbase/tests/cases/format_t.py -> build/lib.linux-x86_64-3.6/couchbase/tests/cases
copying couchbase/tests/cases/iops_t.py -> build/lib.linux-x86_64-3.6/couchbase/tests/cases
creating build/lib.linux-x86_64-3.6/gcouchbase
copying gcouchbase/iops_gevent10.py -> build/lib.linux-x86_64-3.6/gcouchbase
copying gcouchbase/connection.py -> build/lib.linux-x86_64-3.6/gcouchbase
copying gcouchbase/init.py -> build/lib.linux-x86_64-3.6/gcouchbase
copying gcouchbase/iops_gevent0x.py -> build/lib.linux-x86_64-3.6/gcouchbase
copying gcouchbase/bucket.py -> build/lib.linux-x86_64-3.6/gcouchbase
copying gcouchbase/gevent_bucket.py -> build/lib.linux-x86_64-3.6/gcouchbase
creating build/lib.linux-x86_64-3.6/txcouchbase
copying txcouchbase/twisted_bucket.py -> build/lib.linux-x86_64-3.6/txcouchbase
copying txcouchbase/connection.py -> build/lib.linux-x86_64-3.6/txcouchbase
copying txcouchbase/init.py -> build/lib.linux-x86_64-3.6/txcouchbase
copying txcouchbase/bucket.py -> build/lib.linux-x86_64-3.6/txcouchbase
copying txcouchbase/iops.py -> build/lib.linux-x86_64-3.6/txcouchbase
package init file ‘acouchbase/tests/init.py’ not found (or not a regular file)
creating build/lib.linux-x86_64-3.6/acouchbase/tests
copying acouchbase/tests/py34only.py -> build/lib.linux-x86_64-3.6/acouchbase/tests
copying acouchbase/tests/fixtures.py -> build/lib.linux-x86_64-3.6/acouchbase/tests
copying acouchbase/tests/py35only.py -> build/lib.linux-x86_64-3.6/acouchbase/tests
copying acouchbase/tests/asyncio_tests.py -> build/lib.linux-x86_64-3.6/acouchbase/tests
package init file ‘acouchbase/py34only/init.py’ not found (or not a regular file)
creating build/lib.linux-x86_64-3.6/acouchbase/py34only
copying acouchbase/py34only/iterator.py -> build/lib.linux-x86_64-3.6/acouchbase/py34only
running build_ext
building ‘couchbase._libcouchbase’ extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/src
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 -I/usr/include/python3.6m -c src/exceptions.c -o build/temp.linux-x86_64-3.6/src/exceptions.o
In file included from src/exceptions.c:17:0:
src/pycbc.h:192:10: fatal error: Python.h: No such file or directory
#include <Python.h>
^~~~~~~~~~
compilation terminated.
error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3.6 -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-6sorp8d5/couchbase/setup.py’"’"’; file=’"’"’/tmp/pip-install-6sorp8d5/couchbase/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-4k5_c353/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.

Hi @lap1956 - looks like you are missing at least one of the prerequisites for installation - the Python development libraries. See here for install instructions:

https://docs.couchbase.com/python-sdk/current/start-using-sdk.html#requirements

Many thanks,

Ellis