Failure to use cluster.Cluster()

22 views
Skip to first unread message

Yanan Gong

unread,
Jun 15, 2023, 5:31:24 PM6/15/23
to freud-users
Hello,

I am new to Freud and I tried to use freud.cluster.Cluster() but I got error like below showing "module 'freud' has no attribute 'cluster'". I am using  Python 3.9.12 on Windows with Jupyter. 

Could anyone please help? Thank you!!
--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) Input In [87], in <cell line: 1>() ----> 1 cl = freud.cluster.Cluster() AttributeError: module 'freud' has no attribute 'cluster'

jude vishnu

unread,
Jun 16, 2023, 7:25:17 AM6/16/23
to freud-users
Hi, 
I am not an expert, but have you installed the correct freud package? I remember getting this error when I installed freud instead of freud-analysis package.

Regards,
Jude

Tommy Waltmann

unread,
Jun 16, 2023, 8:09:54 AM6/16/23
to freud-users
Hi Yanan,

I need some more information about how you installed freud. Where did you install it from? What was the install command you used?

Best,
Tommy

Yanan Gong

unread,
Jun 16, 2023, 9:01:22 PM6/16/23
to freud-users
Thank you both! I solved the problem, and it turns out that I did not install the correct package. Follow the instructions on Freud webpage solved the problem. 
Reply all
Reply to author
Forward
0 new messages