Can't make it work

I have installed nvidia driver for deep learning using python’s anaconda and tried many other ways but for one reason or another I can’t make it work, I’ll appreciate any help. These are the info

nvcc --version

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2017 NVIDIA Corporation
Built on Fri_Nov__3_21:07:56_CDT_2017
Cuda compilation tools, release 9.1, V9.1.85

nvidia-smi
Mon Oct 15 20:42:15 2018
±----------------------------------------------------------------------------+
| NVIDIA-SMI 390.87 Driver Version: 390.87 |
|-------------------------------±---------------------±---------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce 840M Off | 00000000:04:00.0 Off | N/A |
| N/A 43C P0 N/A / N/A | 384MiB / 2004MiB | 4% Default |
±------------------------------±---------------------±---------------------+

±----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 1878 G /usr/lib/xorg/Xorg 134MiB |
| 0 2904 G /usr/bin/compiz 146MiB |
| 0 14723 G …equest-channel-token=936771730267175627 53MiB |
| 0 15079 C python 18MiB |
| 0 15317 C python 18MiB |
±----------------------------------------------------------------------------+

and when I try to run it on python this is the error i get

from tensorflow.python.client import device_lib
print(device_lib.list_local_devices())
2018-10-15 20:44:46.731429: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA
2018-10-15 20:44:46.806566: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:964] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2018-10-15 20:44:46.807251: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1411] Found device 0 with properties:
name: GeForce 840M major: 5 minor: 0 memoryClockRate(GHz): 1.124
pciBusID: 0000:04:00.0
totalMemory: 1.96GiB freeMemory: 1.55GiB
2018-10-15 20:44:46.807276: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1490] Adding visible gpu devices: 0
Traceback (most recent call last):
File “”, line 1, in
File “/home/herooooooooo/anaconda3/envs/tf_gpu/lib/python3.6/site-packages/tensorflow/python/client/device_lib.py”, line 41, in list_local_devices
for s in pywrap_tensorflow.list_devices(session_config=session_config)
File “/home/herooooooooo/anaconda3/envs/tf_gpu/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py”, line 1711, in list_devices
return ListDevices(status)
File “/home/herooooooooo/anaconda3/envs/tf_gpu/lib/python3.6/site-packages/tensorflow/python/framework/errors_impl.py”, line 526, in exit
c_api.TF_GetCode(self.status.status))
tensorflow.python.framework.errors_impl.InternalError: cudaGetDevice() failed. Status: CUDA driver version is insufficient for CUDA runtime version

Thanks again