title: How to fix error with PIP Install Couchbase in Python 3.9.1?
body: <p>I am having issues trying to install the couchbase python module and can't seem to find a working solution online.</p>
  <p>Please note that I have previously installed this version (2.5.11) of the module on a different machine running python 3.8.x and Windows 10, but I get errors when trying to install it on a new machine with running python 3.9.1 and Windows 10.</p>
  <p>I have tried the following to see if it would fix the issue:</p>
  <pre><code>python pip install --upgrade pip setuptools wheel
  </code></pre>
  <p>and</p>
  <pre><code>pip install docutils
  </code></pre>
  <p>The complete (sanitized) error output:</p>
  <pre><code>Microsoft Windows [Version 10.0.18363.1198]
  (c) 2019 Microsoft Corporation. All rights reserved.
  
  C:\Users\USERNAME&gt;pip install couchbase==2.5.11
  Collecting couchbase==2.5.11
    Using cached couchbase-2.5.11.tar.gz (591 kB)
  Building wheels for collected packages: couchbase
    Building wheel for couchbase (setup.py) ... error
    ERROR: Command errored out with exit status 1:
     command: 'c:\users\USERNAME\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '&quot;'&quot;'C:\\Users\\USERNAME\\AppData\\Local\\Temp\\pip-install-3_475qvt\\couchbase_ffbb6075b7344f3580fc833cec48eea3\\setup.py'&quot;'&quot;'; __file__='&quot;'&quot;'C:\\Users\\USERNAME\\AppData\\Local\\Temp\\pip-install-3_475qvt\\couchbase_ffbb6075b7344f3580fc833cec48eea3\\setup.py'&quot;'&quot;';f=getattr(tokenize, '&quot;'&quot;'open'&quot;'&quot;', open)(__file__);code=f.read().replace('&quot;'&quot;'\r\n'&quot;'&quot;', '&quot;'&quot;'\n'&quot;'&quot;');f.close();exec(compile(code, __file__, '&quot;'&quot;'exec'&quot;'&quot;'))' bdist_wheel -d 'C:\Users\USERNAME\AppData\Local\Temp\pip-wheel-avdmzikj'
         cwd: C:\Users\USERNAME\AppData\Local\Temp\pip-install-3_475qvt\couchbase_ffbb6075b7344f3580fc833cec48eea3\
    Complete output (147 lines):
    C:\Users\USERNAME\AppData\Local\Temp\pip-install-3_475qvt\couchbase_ffbb6075b7344f3580fc833cec48eea3\setup.py:111: UserWarning: I'm detecting you're running windows.You might want to modify the 'setup.py' script to use appropriate paths
      warnings.warn(&quot;I'm detecting you're running windows.&quot;
    running bdist_wheel
    running build
    running build_py
    creating build\lib.win-amd64-3.9
    creating build\lib.win-amd64-3.9\acouchbase
    copying acouchbase\asyncio_iops.py -&gt; build\lib.win-amd64-3.9\acouchbase
    copying acouchbase\bucket.py -&gt; build\lib.win-amd64-3.9\acouchbase
    copying acouchbase\__init__.py -&gt; build\lib.win-amd64-3.9\acouchbase
    creating build\lib.win-amd64-3.9\couchbase
    copying couchbase\admin.py -&gt; build\lib.win-amd64-3.9\couchbase
    copying couchbase\analytics.py -&gt; build\lib.win-amd64-3.9\couchbase
    copying couchbase\analytics_ingester.py -&gt; build\lib.win-amd64-3.9\couchbase
    copying couchbase\auth_domain.py -&gt; build\lib.win-amd64-3.9\couchbase
    copying couchbase\bucket.py -&gt; build\lib.win-amd64-3.9\couchbase
    copying couchbase\bucketmanager.py -&gt; build\lib.win-amd64-3.9\couchbase
    copying couchbase\cbas.py -&gt; build\lib.win-amd64-3.9\couchbase
    copying couchbase\cluster.py -&gt; build\lib.win-amd64-3.9\couchbase
    copying couchbase\connection.py -&gt; build\lib.win-amd64-3.9\couchbase
    copying couchbase\connstr.py -&gt; build\lib.win-amd64-3.9\couchbase
    copying couchbase\crypto.py -&gt; build\lib.win-amd64-3.9\couchbase
    copying couchbase\deprecation.py -&gt; build\lib.win-amd64-3.9\couchbase
    copying couchbase\exceptions.py -&gt; build\lib.win-amd64-3.9\couchbase
    copying couchbase\experimental.py -&gt; build\lib.win-amd64-3.9\couchbase
    copying couchbase\fulltext.py -&gt; build\lib.win-amd64-3.9\couchbase
    copying couchbase\items.py -&gt; build\lib.win-amd64-3.9\couchbase
    copying couchbase\mockserver.py -&gt; build\lib.win-amd64-3.9\couchbase
    copying couchbase\mutation_state.py -&gt; build\lib.win-amd64-3.9\couchbase
    copying couchbase\n1ql.py -&gt; build\lib.win-amd64-3.9\couchbase
    copying couchbase\priv_constants.py -&gt; build\lib.win-amd64-3.9\couchbase
    copying couchbase\result.py -&gt; build\lib.win-amd64-3.9\couchbase
    copying couchbase\subdocument.py -&gt; build\lib.win-amd64-3.9\couchbase
    copying couchbase\transcoder.py -&gt; build\lib.win-amd64-3.9\couchbase
    copying couchbase\user_constants.py -&gt; build\lib.win-amd64-3.9\couchbase
    copying couchbase\_bootstrap.py -&gt; build\lib.win-amd64-3.9\couchbase
    copying couchbase\_ixmgmt.py -&gt; build\lib.win-amd64-3.9\couchbase
    copying couchbase\_logutil.py -&gt; build\lib.win-amd64-3.9\couchbase
    copying couchbase\_pyport.py -&gt; build\lib.win-amd64-3.9\couchbase
    copying couchbase\_version.py -&gt; build\lib.win-amd64-3.9\couchbase
    copying couchbase\__init__.py -&gt; build\lib.win-amd64-3.9\couchbase
    creating build\lib.win-amd64-3.9\couchbase\views
    copying couchbase\views\iterator.py -&gt; build\lib.win-amd64-3.9\couchbase\views
    copying couchbase\views\params.py -&gt; build\lib.win-amd64-3.9\couchbase\views
    copying couchbase\views\__init__.py -&gt; build\lib.win-amd64-3.9\couchbase\views
    creating build\lib.win-amd64-3.9\couchbase\iops
    copying couchbase\iops\base.py -&gt; build\lib.win-amd64-3.9\couchbase\iops
    copying couchbase\iops\select.py -&gt; build\lib.win-amd64-3.9\couchbase\iops
    copying couchbase\iops\__init__.py -&gt; build\lib.win-amd64-3.9\couchbase\iops
    creating build\lib.win-amd64-3.9\couchbase\asynchronous
    copying couchbase\asynchronous\async_bucket.py -&gt; build\lib.win-amd64-3.9\couchbase\asynchronous
    copying couchbase\asynchronous\bucket.py -&gt; build\lib.win-amd64-3.9\couchbase\asynchronous
    copying couchbase\asynchronous\events.py -&gt; build\lib.win-amd64-3.9\couchbase\asynchronous
    copying couchbase\asynchronous\fulltext.py -&gt; build\lib.win-amd64-3.9\couchbase\asynchronous
    copying couchbase\asynchronous\n1ql.py -&gt; build\lib.win-amd64-3.9\couchbase\asynchronous
    copying couchbase\asynchronous\rowsbase.py -&gt; build\lib.win-amd64-3.9\couchbase\asynchronous
    copying couchbase\asynchronous\view.py -&gt; build\lib.win-amd64-3.9\couchbase\asynchronous
    copying couchbase\asynchronous\__init__.py -&gt; build\lib.win-amd64-3.9\couchbase\asynchronous
    creating build\lib.win-amd64-3.9\couchbase\tests
    copying couchbase\tests\base.py -&gt; build\lib.win-amd64-3.9\couchbase\tests
    copying couchbase\tests\importer.py -&gt; build\lib.win-amd64-3.9\couchbase\tests
    copying couchbase\tests\test_sync.py -&gt; build\lib.win-amd64-3.9\couchbase\tests
    copying couchbase\tests\__init__.py -&gt; build\lib.win-amd64-3.9\couchbase\tests
    creating build\lib.win-amd64-3.9\couchbase\tests\cases
    copying couchbase\tests\cases\admin_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
    copying couchbase\tests\cases\analytics_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
    copying couchbase\tests\cases\append_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
    copying couchbase\tests\cases\arithmetic_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
    copying couchbase\tests\cases\badargs_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
    copying couchbase\tests\cases\cbftstrings_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
    copying couchbase\tests\cases\cluster_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
    copying couchbase\tests\cases\connection_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
    copying couchbase\tests\cases\connstr_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
    copying couchbase\tests\cases\crypto_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
    copying couchbase\tests\cases\datastructures_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
    copying couchbase\tests\cases\delete_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
    copying couchbase\tests\cases\design_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
    copying couchbase\tests\cases\diag_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
    copying couchbase\tests\cases\dupkeys_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
    copying couchbase\tests\cases\empty_key_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
    copying couchbase\tests\cases\encodings_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
    copying couchbase\tests\cases\endure_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
    copying couchbase\tests\cases\enh_err_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
    copying couchbase\tests\cases\excextra_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
    copying couchbase\tests\cases\flush_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
    copying couchbase\tests\cases\format_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
    copying couchbase\tests\cases\get_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
    copying couchbase\tests\cases\iops_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
    copying couchbase\tests\cases\itertypes_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
    copying couchbase\tests\cases\itmops_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
    copying couchbase\tests\cases\ixmgmt_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
    copying couchbase\tests\cases\lockmode_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
    copying couchbase\tests\cases\lock_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
    copying couchbase\tests\cases\misc_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
    copying couchbase\tests\cases\mutationtokens_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
    copying couchbase\tests\cases\n1qlstrings_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
    copying couchbase\tests\cases\n1ql_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
    copying couchbase\tests\cases\observe_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
    copying couchbase\tests\cases\pipeline_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
    copying couchbase\tests\cases\results_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
    copying couchbase\tests\cases\rget_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
    copying couchbase\tests\cases\set_converters_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
    copying couchbase\tests\cases\set_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
    copying couchbase\tests\cases\spatial_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
    copying couchbase\tests\cases\stats_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
    copying couchbase\tests\cases\subdoc_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
    copying couchbase\tests\cases\touch_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
    copying couchbase\tests\cases\tracing_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
    copying couchbase\tests\cases\transcoder_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
    copying couchbase\tests\cases\verinfo_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
    copying couchbase\tests\cases\viewstrings_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
    copying couchbase\tests\cases\view_iterator_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
    copying couchbase\tests\cases\view_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
    copying couchbase\tests\cases\xattr_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
    copying couchbase\tests\cases\__init__.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
    creating build\lib.win-amd64-3.9\gcouchbase
    copying gcouchbase\bucket.py -&gt; build\lib.win-amd64-3.9\gcouchbase
    copying gcouchbase\connection.py -&gt; build\lib.win-amd64-3.9\gcouchbase
    copying gcouchbase\gevent_bucket.py -&gt; build\lib.win-amd64-3.9\gcouchbase
    copying gcouchbase\iops_gevent0x.py -&gt; build\lib.win-amd64-3.9\gcouchbase
    copying gcouchbase\iops_gevent10.py -&gt; build\lib.win-amd64-3.9\gcouchbase
    copying gcouchbase\__init__.py -&gt; build\lib.win-amd64-3.9\gcouchbase
    creating build\lib.win-amd64-3.9\txcouchbase
    copying txcouchbase\bucket.py -&gt; build\lib.win-amd64-3.9\txcouchbase
    copying txcouchbase\connection.py -&gt; build\lib.win-amd64-3.9\txcouchbase
    copying txcouchbase\iops.py -&gt; build\lib.win-amd64-3.9\txcouchbase
    copying txcouchbase\twisted_bucket.py -&gt; build\lib.win-amd64-3.9\txcouchbase
    copying txcouchbase\__init__.py -&gt; build\lib.win-amd64-3.9\txcouchbase
    package init file 'acouchbase\tests\__init__.py' not found (or not a regular file)
    creating build\lib.win-amd64-3.9\acouchbase\tests
    copying acouchbase\tests\asyncio_tests.py -&gt; build\lib.win-amd64-3.9\acouchbase\tests
    copying acouchbase\tests\fixtures.py -&gt; build\lib.win-amd64-3.9\acouchbase\tests
    copying acouchbase\tests\py34only.py -&gt; build\lib.win-amd64-3.9\acouchbase\tests
    copying acouchbase\tests\py35only.py -&gt; build\lib.win-amd64-3.9\acouchbase\tests
    package init file 'acouchbase\py34only\__init__.py' not found (or not a regular file)
    creating build\lib.win-amd64-3.9\acouchbase\py34only
    copying acouchbase\py34only\iterator.py -&gt; build\lib.win-amd64-3.9\acouchbase\py34only
    copying couchbase\libcouchbase.dll -&gt; build\lib.win-amd64-3.9\couchbase
    running build_ext
    building 'couchbase._libcouchbase' extension
    creating build\temp.win-amd64-3.9
    creating build\temp.win-amd64-3.9\Release
    creating build\temp.win-amd64-3.9\Release\src
    C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -D_CRT_SECURE_NO_WARNINGS=1 -I..\lcb-winbuild\x64\deps\include -Ic:\users\USERNAME\appdata\local\programs\python\python39\include -Ic:\users\USERNAME\appdata\local\programs\python\python39\include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcsrc\bucket.c /Fobuild\temp.win-amd64-3.9\Release\src\bucket.obj
    bucket.c
    c:\users\USERNAME\appdata\local\temp\pip-install-3_475qvt\couchbase_ffbb6075b7344f3580fc833cec48eea3\src\pycbc.h(193): fatal error C1083: Cannot open include file: 'libcouchbase/couchbase.h': No such file or directory
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
    ----------------------------------------
    ERROR: Failed building wheel for couchbase
    Running setup.py clean for couchbase
  Failed to build couchbase
  Installing collected packages: couchbase
      Running setup.py install for couchbase ... error
      ERROR: Command errored out with exit status 1:
       command: 'c:\users\USERNAME\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '&quot;'&quot;'C:\\Users\\USERNAME\\AppData\\Local\\Temp\\pip-install-3_475qvt\\couchbase_ffbb6075b7344f3580fc833cec48eea3\\setup.py'&quot;'&quot;'; __file__='&quot;'&quot;'C:\\Users\\USERNAME\\AppData\\Local\\Temp\\pip-install-3_475qvt\\couchbase_ffbb6075b7344f3580fc833cec48eea3\\setup.py'&quot;'&quot;';f=getattr(tokenize, '&quot;'&quot;'open'&quot;'&quot;', open)(__file__);code=f.read().replace('&quot;'&quot;'\r\n'&quot;'&quot;', '&quot;'&quot;'\n'&quot;'&quot;');f.close();exec(compile(code, __file__, '&quot;'&quot;'exec'&quot;'&quot;'))' install --record 'C:\Users\USERNAME\AppData\Local\Temp\pip-record-1zzxrwpq\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\USERNAME\appdata\local\programs\python\python39\Include\couchbase'
           cwd: C:\Users\USERNAME\AppData\Local\Temp\pip-install-3_475qvt\couchbase_ffbb6075b7344f3580fc833cec48eea3\
      Complete output (147 lines):
      C:\Users\USERNAME\AppData\Local\Temp\pip-install-3_475qvt\couchbase_ffbb6075b7344f3580fc833cec48eea3\setup.py:111: UserWarning: I'm detecting you're running windows.You might want to modify the 'setup.py' script to use appropriate paths
        warnings.warn(&quot;I'm detecting you're running windows.&quot;
      running install
      running build
      running build_py
      creating build\lib.win-amd64-3.9
      creating build\lib.win-amd64-3.9\acouchbase
      copying acouchbase\asyncio_iops.py -&gt; build\lib.win-amd64-3.9\acouchbase
      copying acouchbase\bucket.py -&gt; build\lib.win-amd64-3.9\acouchbase
      copying acouchbase\__init__.py -&gt; build\lib.win-amd64-3.9\acouchbase
      creating build\lib.win-amd64-3.9\couchbase
      copying couchbase\admin.py -&gt; build\lib.win-amd64-3.9\couchbase
      copying couchbase\analytics.py -&gt; build\lib.win-amd64-3.9\couchbase
      copying couchbase\analytics_ingester.py -&gt; build\lib.win-amd64-3.9\couchbase
      copying couchbase\auth_domain.py -&gt; build\lib.win-amd64-3.9\couchbase
      copying couchbase\bucket.py -&gt; build\lib.win-amd64-3.9\couchbase
      copying couchbase\bucketmanager.py -&gt; build\lib.win-amd64-3.9\couchbase
      copying couchbase\cbas.py -&gt; build\lib.win-amd64-3.9\couchbase
      copying couchbase\cluster.py -&gt; build\lib.win-amd64-3.9\couchbase
      copying couchbase\connection.py -&gt; build\lib.win-amd64-3.9\couchbase
      copying couchbase\connstr.py -&gt; build\lib.win-amd64-3.9\couchbase
      copying couchbase\crypto.py -&gt; build\lib.win-amd64-3.9\couchbase
      copying couchbase\deprecation.py -&gt; build\lib.win-amd64-3.9\couchbase
      copying couchbase\exceptions.py -&gt; build\lib.win-amd64-3.9\couchbase
      copying couchbase\experimental.py -&gt; build\lib.win-amd64-3.9\couchbase
      copying couchbase\fulltext.py -&gt; build\lib.win-amd64-3.9\couchbase
      copying couchbase\items.py -&gt; build\lib.win-amd64-3.9\couchbase
      copying couchbase\mockserver.py -&gt; build\lib.win-amd64-3.9\couchbase
      copying couchbase\mutation_state.py -&gt; build\lib.win-amd64-3.9\couchbase
      copying couchbase\n1ql.py -&gt; build\lib.win-amd64-3.9\couchbase
      copying couchbase\priv_constants.py -&gt; build\lib.win-amd64-3.9\couchbase
      copying couchbase\result.py -&gt; build\lib.win-amd64-3.9\couchbase
      copying couchbase\subdocument.py -&gt; build\lib.win-amd64-3.9\couchbase
      copying couchbase\transcoder.py -&gt; build\lib.win-amd64-3.9\couchbase
      copying couchbase\user_constants.py -&gt; build\lib.win-amd64-3.9\couchbase
      copying couchbase\_bootstrap.py -&gt; build\lib.win-amd64-3.9\couchbase
      copying couchbase\_ixmgmt.py -&gt; build\lib.win-amd64-3.9\couchbase
      copying couchbase\_logutil.py -&gt; build\lib.win-amd64-3.9\couchbase
      copying couchbase\_pyport.py -&gt; build\lib.win-amd64-3.9\couchbase
      copying couchbase\_version.py -&gt; build\lib.win-amd64-3.9\couchbase
      copying couchbase\__init__.py -&gt; build\lib.win-amd64-3.9\couchbase
      creating build\lib.win-amd64-3.9\couchbase\views
      copying couchbase\views\iterator.py -&gt; build\lib.win-amd64-3.9\couchbase\views
      copying couchbase\views\params.py -&gt; build\lib.win-amd64-3.9\couchbase\views
      copying couchbase\views\__init__.py -&gt; build\lib.win-amd64-3.9\couchbase\views
      creating build\lib.win-amd64-3.9\couchbase\iops
      copying couchbase\iops\base.py -&gt; build\lib.win-amd64-3.9\couchbase\iops
      copying couchbase\iops\select.py -&gt; build\lib.win-amd64-3.9\couchbase\iops
      copying couchbase\iops\__init__.py -&gt; build\lib.win-amd64-3.9\couchbase\iops
      creating build\lib.win-amd64-3.9\couchbase\asynchronous
      copying couchbase\asynchronous\async_bucket.py -&gt; build\lib.win-amd64-3.9\couchbase\asynchronous
      copying couchbase\asynchronous\bucket.py -&gt; build\lib.win-amd64-3.9\couchbase\asynchronous
      copying couchbase\asynchronous\events.py -&gt; build\lib.win-amd64-3.9\couchbase\asynchronous
      copying couchbase\asynchronous\fulltext.py -&gt; build\lib.win-amd64-3.9\couchbase\asynchronous
      copying couchbase\asynchronous\n1ql.py -&gt; build\lib.win-amd64-3.9\couchbase\asynchronous
      copying couchbase\asynchronous\rowsbase.py -&gt; build\lib.win-amd64-3.9\couchbase\asynchronous
      copying couchbase\asynchronous\view.py -&gt; build\lib.win-amd64-3.9\couchbase\asynchronous
      copying couchbase\asynchronous\__init__.py -&gt; build\lib.win-amd64-3.9\couchbase\asynchronous
      creating build\lib.win-amd64-3.9\couchbase\tests
      copying couchbase\tests\base.py -&gt; build\lib.win-amd64-3.9\couchbase\tests
      copying couchbase\tests\importer.py -&gt; build\lib.win-amd64-3.9\couchbase\tests
      copying couchbase\tests\test_sync.py -&gt; build\lib.win-amd64-3.9\couchbase\tests
      copying couchbase\tests\__init__.py -&gt; build\lib.win-amd64-3.9\couchbase\tests
      creating build\lib.win-amd64-3.9\couchbase\tests\cases
      copying couchbase\tests\cases\admin_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
      copying couchbase\tests\cases\analytics_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
      copying couchbase\tests\cases\append_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
      copying couchbase\tests\cases\arithmetic_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
      copying couchbase\tests\cases\badargs_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
      copying couchbase\tests\cases\cbftstrings_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
      copying couchbase\tests\cases\cluster_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
      copying couchbase\tests\cases\connection_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
      copying couchbase\tests\cases\connstr_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
      copying couchbase\tests\cases\crypto_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
      copying couchbase\tests\cases\datastructures_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
      copying couchbase\tests\cases\delete_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
      copying couchbase\tests\cases\design_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
      copying couchbase\tests\cases\diag_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
      copying couchbase\tests\cases\dupkeys_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
      copying couchbase\tests\cases\empty_key_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
      copying couchbase\tests\cases\encodings_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
      copying couchbase\tests\cases\endure_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
      copying couchbase\tests\cases\enh_err_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
      copying couchbase\tests\cases\excextra_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
      copying couchbase\tests\cases\flush_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
      copying couchbase\tests\cases\format_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
      copying couchbase\tests\cases\get_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
      copying couchbase\tests\cases\iops_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
      copying couchbase\tests\cases\itertypes_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
      copying couchbase\tests\cases\itmops_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
      copying couchbase\tests\cases\ixmgmt_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
      copying couchbase\tests\cases\lockmode_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
      copying couchbase\tests\cases\lock_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
      copying couchbase\tests\cases\misc_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
      copying couchbase\tests\cases\mutationtokens_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
      copying couchbase\tests\cases\n1qlstrings_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
      copying couchbase\tests\cases\n1ql_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
      copying couchbase\tests\cases\observe_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
      copying couchbase\tests\cases\pipeline_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
      copying couchbase\tests\cases\results_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
      copying couchbase\tests\cases\rget_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
      copying couchbase\tests\cases\set_converters_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
      copying couchbase\tests\cases\set_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
      copying couchbase\tests\cases\spatial_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
      copying couchbase\tests\cases\stats_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
      copying couchbase\tests\cases\subdoc_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
      copying couchbase\tests\cases\touch_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
      copying couchbase\tests\cases\tracing_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
      copying couchbase\tests\cases\transcoder_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
      copying couchbase\tests\cases\verinfo_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
      copying couchbase\tests\cases\viewstrings_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
      copying couchbase\tests\cases\view_iterator_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
      copying couchbase\tests\cases\view_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
      copying couchbase\tests\cases\xattr_t.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
      copying couchbase\tests\cases\__init__.py -&gt; build\lib.win-amd64-3.9\couchbase\tests\cases
      creating build\lib.win-amd64-3.9\gcouchbase
      copying gcouchbase\bucket.py -&gt; build\lib.win-amd64-3.9\gcouchbase
      copying gcouchbase\connection.py -&gt; build\lib.win-amd64-3.9\gcouchbase
      copying gcouchbase\gevent_bucket.py -&gt; build\lib.win-amd64-3.9\gcouchbase
      copying gcouchbase\iops_gevent0x.py -&gt; build\lib.win-amd64-3.9\gcouchbase
      copying gcouchbase\iops_gevent10.py -&gt; build\lib.win-amd64-3.9\gcouchbase
      copying gcouchbase\__init__.py -&gt; build\lib.win-amd64-3.9\gcouchbase
      creating build\lib.win-amd64-3.9\txcouchbase
      copying txcouchbase\bucket.py -&gt; build\lib.win-amd64-3.9\txcouchbase
      copying txcouchbase\connection.py -&gt; build\lib.win-amd64-3.9\txcouchbase
      copying txcouchbase\iops.py -&gt; build\lib.win-amd64-3.9\txcouchbase
      copying txcouchbase\twisted_bucket.py -&gt; build\lib.win-amd64-3.9\txcouchbase
      copying txcouchbase\__init__.py -&gt; build\lib.win-amd64-3.9\txcouchbase
      package init file 'acouchbase\tests\__init__.py' not found (or not a regular file)
      creating build\lib.win-amd64-3.9\acouchbase\tests
      copying acouchbase\tests\asyncio_tests.py -&gt; build\lib.win-amd64-3.9\acouchbase\tests
      copying acouchbase\tests\fixtures.py -&gt; build\lib.win-amd64-3.9\acouchbase\tests
      copying acouchbase\tests\py34only.py -&gt; build\lib.win-amd64-3.9\acouchbase\tests
      copying acouchbase\tests\py35only.py -&gt; build\lib.win-amd64-3.9\acouchbase\tests
      package init file 'acouchbase\py34only\__init__.py' not found (or not a regular file)
      creating build\lib.win-amd64-3.9\acouchbase\py34only
      copying acouchbase\py34only\iterator.py -&gt; build\lib.win-amd64-3.9\acouchbase\py34only
      copying couchbase\libcouchbase.dll -&gt; build\lib.win-amd64-3.9\couchbase
      running build_ext
      building 'couchbase._libcouchbase' extension
      creating build\temp.win-amd64-3.9
      creating build\temp.win-amd64-3.9\Release
      creating build\temp.win-amd64-3.9\Release\src
      C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -D_CRT_SECURE_NO_WARNINGS=1 -I..\lcb-winbuild\x64\deps\include -Ic:\users\USERNAME\appdata\local\programs\python\python39\include -Ic:\users\USERNAME\appdata\local\programs\python\python39\include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt /Tcsrc\bucket.c /Fobuild\temp.win-amd64-3.9\Release\src\bucket.obj
      bucket.c
      c:\users\USERNAME\appdata\local\temp\pip-install-3_475qvt\couchbase_ffbb6075b7344f3580fc833cec48eea3\src\pycbc.h(193): fatal error C1083: Cannot open include file: 'libcouchbase/couchbase.h': No such file or directory
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
      ----------------------------------------
  ERROR: Command errored out with exit status 1: 'c:\users\USERNAME\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '&quot;'&quot;'C:\\Users\\USERNAME\\AppData\\Local\\Temp\\pip-install-3_475qvt\\couchbase_ffbb6075b7344f3580fc833cec48eea3\\setup.py'&quot;'&quot;'; __file__='&quot;'&quot;'C:\\Users\\USERNAME\\AppData\\Local\\Temp\\pip-install-3_475qvt\\couchbase_ffbb6075b7344f3580fc833cec48eea3\\setup.py'&quot;'&quot;';f=getattr(tokenize, '&quot;'&quot;'open'&quot;'&quot;', open)(__file__);code=f.read().replace('&quot;'&quot;'\r\n'&quot;'&quot;', '&quot;'&quot;'\n'&quot;'&quot;');f.close();exec(compile(code, __file__, '&quot;'&quot;'exec'&quot;'&quot;'))' install --record 'C:\Users\USERNAME\AppData\Local\Temp\pip-record-1zzxrwpq\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\USERNAME\appdata\local\programs\python\python39\Include\couchbase' Check the logs for full command output.
  
  C:\Users\USERNAME&gt;
  </code></pre>