Game-Bot icon indicating copy to clipboard operation
Game-Bot copied to clipboard

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

Open waheedullahkhan001 opened this issue 5 years ago • 4 comments

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

waheedullahkhan001 avatar Oct 28 '20 16:10 waheedullahkhan001

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?

SamuelJMiller avatar Dec 15 '20 00:12 SamuelJMiller

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

EARider23 avatar Jan 05 '21 08:01 EARider23

pip install scipy==1.1.0 --user

breadbrowser avatar Jan 16 '22 15:01 breadbrowser

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

SandorAlbert avatar Jun 03 '23 22:06 SandorAlbert