Skip to content

使用admet模型遇到了下面的问题 #590

@Herman-Liang

Description

@Herman-Liang

Traceback (most recent call last):
File "finetune_predict.py", line 22, in
from pgl.utils.logger import log
File "D:\miniconda3\envs\test\lib\site-packages\pgl_init_.py", line 28, in
from pgl import graph
File "D:\miniconda3\envs\test\lib\site-packages\pgl\graph.py", line 30, in
import pgl.graph_kernel as graph_kernel
File "pgl\graph_kernel.pyx", line 1, in init pgl.graph_kernel
ImportError: numpy.core.multiarray failed to import (auto-generated because you didn't call 'numpy.import_array()' after cimporting numpy; use 'numpy._import_array' to disable if you are certain you don't need it).
这里提示的是numpy存在问题,环境配置为:py38,pip list如下:
anyio 4.5.2
astor 0.8.1
certifi 2025.1.31
charset-normalizer 3.4.1
click 8.1.8
colorama 0.4.6
contourpy 1.1.1
cycler 0.12.1
Cython 3.0.12
decorator 5.2.1
dill 0.4.0
exceptiongroup 1.2.2
fonttools 4.57.0
funcsigs 1.0.2
gast 0.3.3
graphviz 0.20.3
h11 0.14.0
httpcore 1.0.8
httpx 0.28.1
idna 3.10
importlib_resources 6.4.5
joblib 1.4.2
kiwisolver 1.4.7
matplotlib 3.7.5
multiprocess 0.70.18
networkx 3.1
nltk 3.9.1
numpy 1.19.3
objgraph 3.6.2
opencv-python 4.2.0.32
opt-einsum 3.3.0
packaging 25.0
paddlehelix 1.0.1
paddlepaddle-gpu 2.6.1.post116
pandas 1.1.4
pathlib 1.0.1
pathos 0.2.8
pgl 2.2.6
pillow 10.4.0
pip 24.2
pox 0.3.6
ppft 1.7.7
prettytable 3.11.0
protobuf 3.19.0
pyparsing 3.1.4
python-dateutil 2.9.0.post0
pytz 2025.2
PyYAML 5.4.1
rarfile 4.2
rdkit-pypi 2022.9.5
regex 2024.11.6
requests 2.32.3
scikit-learn 0.24.1
scipy 1.10.1
setuptools 75.1.0
six 1.17.0
sklearn 0.0.post12
sniffio 1.3.1
threadpoolctl 3.5.0
tqdm 4.67.1
typing_extensions 4.13.2
urllib3 2.2.3
wcwidth 0.2.13
wheel 0.44.0
zipp 3.20.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions