ardamavi / Game-Bot

Artificial intelligence learn playing any game with watching you.
Apache License 2.0
442 stars 116 forks source link

ImportError: cannot import name 'imresize' from 'scipy.misc' #29

Open waheedullahkhan001 opened 3 years ago

waheedullahkhan001 commented 3 years ago

I downloaded the code as zip. I had latest python 3 version. I did pip3 install -r requirements.txt it installed all. but when I ran this command python3 create_dataset.py it gave me this error:

Traceback (most recent call last):
  File "create_dataset.py", line 9, in <module>
    from predict import predict
  File "C:\Users\admin\Desktop\Game-Bot-master\Game-Bot-master\predict.py", line 3, in <module>
    from scipy.misc import imresize
ImportError: cannot import name 'imresize' from 'scipy.misc' (C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\site-packages\scipy\misc\__init__.py)

after that I simply installed the recommended version from the given link in README.md same error

SamuelJMiller commented 3 years ago

I looked through the requirements.txt file, and I didn't see the scipy module specified. Perhaps we need to specify that in the requirements file?

EARider23 commented 3 years ago

yeah i encounter this same error i dont know how to open it. Solve this Problem ASAP..

breadbrowser commented 2 years ago

pip install scipy==1.1.0 --user

SandorAlbert commented 1 year ago

Also it's important to mention that CUDA should be installed since not accessing to the GPU will slow down your program by >10x