Traceback (most recent call last):


 "E:/Pycharm_Code/Fruit_count/train.py", line 17, in <module>

torch.cuda.set_device(gpus[0])


 "E:\Anaconda\lib\site-packages\torch\cuda\__init__.py", line 293, in set_device

torch._C._cuda_setDevice(-1)
AttributeError: module 'torch._C' has no attribute '_cuda_setDevice'
Traceback (most recent call last):


 "social_mapper.py", line 35, in <module>

from django.utils import encoding


 "C:\Python27\lib\site-packages\django\__init__.py", line 1, in <module>

from django.utils.version import get_version


 "C:\Python27\lib\site-packages\django\utils\version.py", line 71, in <module>

@functools.lru_cache()
AttributeError: 'module' object has no attribute 'lru_cache'
