INTERESTING!
When i do nvidia-smi it shows my gpus, but when i do echo $CUDA_VISIBLE_DEVICES, it shows nothing!
also the second command shows this error:
>>> print(os.environ["CUDA_VISIBLE_DEVICES"]) 
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/alireza/anaconda3/lib/python3.6/os.py", line 669, in __getitem__
    raise KeyError(key) from None
KeyError: 'CUDA_VISIBLE_DEVICES'


when i do echo $CUDA_VISIBLE_DEVICES=0,1, it shows =0,1
What should i do?