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

docker安装后运行python3 ShuiZe.py 报错 #177

Open
LK00100 opened this issue Jul 17, 2024 · 1 comment
Open

docker安装后运行python3 ShuiZe.py 报错 #177

LK00100 opened this issue Jul 17, 2024 · 1 comment

Comments

@LK00100
Copy link

LK00100 commented Jul 17, 2024

$ python3 ShuiZe.py
Traceback (most recent call last):
File "/home/kali/Downloads/ShuiZe_0x727-master/ShuiZe.py", line 11, in
import openpyxl
File "/usr/local/lib/python3.11/dist-packages/openpyxl/init.py", line 4, in
from openpyxl.compat.numbers import NUMPY, PANDAS
File "/usr/local/lib/python3.11/dist-packages/openpyxl/compat/init.py", line 5, in
from .strings import (
File "/usr/local/lib/python3.11/dist-packages/openpyxl/compat/strings.py", line 10, in
from .numbers import NUMERIC_TYPES
File "/usr/local/lib/python3.11/dist-packages/openpyxl/compat/numbers.py", line 49, in
numpy.float,
^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/numpy/init.py", line 324, in getattr
raise AttributeError(former_attrs[attr])
AttributeError: module 'numpy' has no attribute 'float'.
np.float was a deprecated alias for the builtin float. To avoid this error in existing code, use float by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.float64 here.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations. Did you mean: 'cfloat'?

@lzh24
Copy link

lzh24 commented Aug 8, 2024

卸载原来的 numpy, 安装pip install -U numpy==1.23.5

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

2 participants