unidip icon indicating copy to clipboard operation
unidip copied to clipboard

no module named 'unidip'

Open laurengregory298 opened this issue 6 years ago • 3 comments

Per your website instructions, I used 'from unidip import UniDip' and I got an error on the import statement saying there is no module named unidip. I used pip to install it like your page says, and using pip list it shows up there. Cannot figure out why it's not recognizing it.

I haven't even tried to use it yet, just importing to make sure it works.

I'm using anaconda.

laurengregory298 avatar May 29 '19 00:05 laurengregory298

It works for me. Are you using Jupyter notebook? You have to restart kernel after pip install. Hope it helps.

Cheukting avatar Jul 04 '19 15:07 Cheukting

got it to work! thank you

laurengregory298 avatar Jul 09 '19 20:07 laurengregory298

I am using Spyder (Python 2.7). I typed "pip install unidip" in cmd. I retyped the same command to check, and I got "Requirement already satisfied: unidip in c:\python27\lib\site-packages"

However, even after I restart IPython console, I continue to get: "ImportError: No module named unidip".

Any suggestions? Thank you!

EDIT: I have managed to overcome the ImportError problem. However, when I run "from unidip import UniDip", I get:

  File "c:\python27\lib\site-packages\unidip\unidip.py", line 230
  print(f"length of test on {filename}: {len(dat)}")
                                                  ^
  SyntaxError: invalid syntax

XWChua avatar Jul 02 '20 06:07 XWChua