Tflearn: ImportError: No module named '_curses'

Created on 20 Dec 2016  路  5Comments  路  Source: tflearn/tflearn

Hi All,

i just intsalled the tftrean for widnows , python 3.5 for 64 bits and I got this:

Traceback (most recent call last):
File "dp_v5.py", line 2, in
import tflearn
File "C:Program FilesAnaconda3libsite-packagestflearn__init__.py", line 8, in
from . import models
File "C:Program FilesAnaconda3libsite-packagestflearnmodels__init__.py", line 2, in
from .dnn import DNN
File "C:Program FilesAnaconda3libsite-packagestflearnmodelsdnn.py", line 5, in
from ..helpers.trainer import Trainer
File "C:Program FilesAnaconda3libsite-packagestflearnhelpers__init__.py", line 2, in
from .evaluator import Evaluator
File "C:Program FilesAnaconda3libsite-packagestflearnhelpersevaluator.py", line 10, in
from .trainer import evaluate_flow
File "C:Program FilesAnaconda3libsite-packagestflearnhelperstrainer.py", line 12, in
from .. import callbacks
File "C:Program FilesAnaconda3libsite-packagestflearncallbacks.py", line 3, in
import sys, curses
File "C:Program FilesAnaconda3libcurses__init__.py", line 13, in
from _curses import *

ImportError: No module named '_curses'

I followed the advise :

benb969 commented 16 days ago

I was able to install curses from here:
http://www.lfd.uci.edu/~gohlke/pythonlibs/#curses
And was then able to use tflearn to some extent on windows, but got different issues (will post later)

=============================

but i get the same error.

Could any one advise.

Thanks,

Jhon

Most helpful comment

Unicurses doesn't seem supported. I did try to install it (I have Python 3.5) but when installer launched, it couldn't find my version of Python. At this point, I followed this answer here: http://stackoverflow.com/a/41224335/1577947 and was able to import tflearn and not have the ImportError: No module named '_curses' appear.

All 5 comments

i have the same problem too

+1

This is because curses package is not supported in windows. Try installing Unicurses for windows. It should solve your problem, at least in my case.

Unicurses doesn't seem supported. I did try to install it (I have Python 3.5) but when installer launched, it couldn't find my version of Python. At this point, I followed this answer here: http://stackoverflow.com/a/41224335/1577947 and was able to import tflearn and not have the ImportError: No module named '_curses' appear.

It seems like curses isn't used prominently in the TFLearn library so I have suggested removing the library as a required dependency. See PR #549

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SebastianKlein picture SebastianKlein  路  3Comments

johnkorn picture johnkorn  路  4Comments

warisha picture warisha  路  5Comments

luoruisichuan picture luoruisichuan  路  5Comments

shixiazuike picture shixiazuike  路  4Comments