Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use SciPy > = 1.8.0 #61

Closed
byerose opened this issue Apr 2, 2022 · 2 comments
Closed

use SciPy > = 1.8.0 #61

byerose opened this issue Apr 2, 2022 · 2 comments

Comments

@byerose
Copy link

byerose commented Apr 2, 2022

It is recommended to use SciPy > = 1.8.0 to be compatible with other algorithm libraries. The lower version of SciPy will cause the following statement to report an error.

#D:\anaconda3\envs\nn\Lib\site-packages\torchattacks\attacks\_differential_evolution.py
from scipy.optimize.optimize import _status_message

==> from scipy.optimize._optimize import _status_message
Art has the same problem and is being modified.

@CHENBIN99
Copy link

I have installed the scipy==1.8.0, but still have this error

ImportError: cannot import name '_status_message' from 'scipy.optimize.optimize'

do you know how to fix it?

@Harry24k
Copy link
Owner

Harry24k commented Apr 5, 2022

Thank you!
For compatibility with other scipy versions, I modified it as follows:
315913f
Please use v3.2.6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants