maximtrp / scikit-posthocs

Multiple Pairwise Comparisons (Post Hoc) Tests in Python
https://scikit-posthocs.rtfd.io
MIT License
351 stars 40 forks source link

Cannot import under python 2.7 by using Spyder #50

Closed lidongren closed 3 years ago

lidongren commented 3 years ago

Describe the bug I cannot import scikit_posthocs under python 2.7 by using Spyder. when I run the following code: import scikit_posthocs as sp

It gives the following error:

import scikit_posthocs as sp File "//anaconda2/lib/python2.7/site-packages/scikit_posthocs/_global.py", line 6 def global_simes_test(x: Union[List, ndarray]) -> float: ^ SyntaxError: invalid syntax

Could you give a solution? Thanks.

maximtrp commented 3 years ago

Sorry, Python 2.7 support is discontinued. Please use Python 3 instead.