Installing Python Client for Windows

When I attempt to install the python client from Github using the command:
pip install git+git://
I receive the error:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.Cpp.props(31,5): error MSB4186: Invalid static method invocation syntax: “[Microsoft.Build.Utilities.ToolLocationHelper]::FindRootFolderWhereAllFilesExist((_VCTargetsPathFolders), (_RelativeToolsetFiles))”. Method ‘Microsoft.Build.Utilities.ToolLocationHelper.FindRootFolderWhereAllFilesExist’ not found. Static method invocation should be of the form: ([FullTypeName]::Method()), e.g. ([System.IO.Path]::Combine(a, b)). [C:\Users\mcsj1\AppData\Local\Temp\pip-req-build-vnhq35zm\build\\Release\Release\lcb_build\CMakeFiles\3.17.2\VCTargetsPath.vcxproj] [C:\Users\mcsj1\AppData\Local\Temp\pip-req-build-vnhq35zm\build\\Release\libcouchbase_src.vcxproj]

I have fixed prior errors by setting the environment variable VCTargetsPath.

Any help would be appreciated

We publish a Python wheel for windows, so you shouldn’t need to install from github – installation is easier. Is there a reason you’re trying to build from source?

If you are referring to just running ‘pip install couchbase’ I recieve the same error as above.

HI @mcsj120, as mentioned, we publish binary wheels for Windows, which I can confirm installs on our VMs. Install falls back to source build if there is not a binary for your specific Python version and architecture, which seems to be happening here, despite us having builds for AMD64/Python 3.8. Please could you send exact details of your system ?



P…S. If you do wish to install from source anyway, it’s simplest to install the MSVC v140 SDK and run pip install couchbase from the MSVC 2015 Command Line Prompt for your platform/arch. You will also need the Python headers for the version you are targeting (these can be easily downloaded by using the Web installer for Python). Looking at the errors from your compile, it seems the MSVC project generated by CMake here is not understood by MSVC, possibly because you have MSVC v160 selected. I will add this to installation notes…

I had my Python version set at 3.6 for some compatibility with other projects, so I was able to install couchbase running py -3.8 -m pip install couchbase.
I did earlier try to install the 3.8 wheel directly, but was unsuccessful in doing so.
I am running Windows 10 with a x64 base processor.

Thank you for your help!

Ah, glad to hear it. Hopefully we’ll upload some Python 3.6 wheels soon to avoid this issue entirely.