diff --git a/python/opendht.pyx b/python/opendht.pyx
index 6a66d2cb94f776c2a9c07649d215f2492c104368..454deffe7ce51414a696244af17c16561f8a3a5b 100644
--- a/python/opendht.pyx
+++ b/python/opendht.pyx
@@ -1,5 +1,5 @@
 # distutils: language = c++
-# distutils: extra_compile_args = -std=c++14
+# distutils: extra_compile_args = -std=c++17
 # distutils: include_dirs = ../../include
 # distutils: library_dirs = ../../src
 # distutils: libraries = opendht gnutls
diff --git a/python/setup.py.in b/python/setup.py.in
index f5029b682460a51205c13e4f25b0aebc42e18782..168b126ec911b895ce31a5bebd60440eddd703ed 100644
--- a/python/setup.py.in
+++ b/python/setup.py.in
@@ -50,8 +50,8 @@ setup(name="opendht",
           ["@CURRENT_SOURCE_DIR@/opendht.pyx"],
           include_dirs = ['@PROJECT_SOURCE_DIR@/include'],
           language="c++",
-          extra_compile_args=["-std=c++14"],
-          extra_link_args=["-std=c++14"],
+          extra_compile_args=["-std=c++17"],
+          extra_link_args=["-std=c++17"],
           libraries=["opendht"],
           library_dirs = ['@CURRENT_BINARY_DIR@', '@PROJECT_BINARY_DIR@']
       ))