attardi / deepnl

Deep Learning for Natural Language Processing
GNU General Public License v3.0
457 stars 116 forks source link

ImportError: No module named 'cPickle' #31

Closed mhbashari closed 8 years ago

mhbashari commented 8 years ago

Running this line of code (python3.4 and ubuntu 14.04):

from deepnl.tagger import Tagger

an error occured

Traceback (most recent call last): File "/home/hassan/PycharmProjects/nlp/__deepnlp.py", line 1, in <module> from deepnl.tagger import Tagger File "deepnl/extractors.pxd", line 13, in init deepnl.tagger (deepnl/tagger.cpp:7442) File "deepnl/extractors.pyx", line 19, in init deepnl.extractors (deepnl/extractors.cpp:25552) ImportError: No module named 'cPickle'

and when try to install with pip3 got this error:

Could not find any downloads that satisfy the requirement cpickle

attardi commented 8 years ago

If you can't install cPickle, replace

import cPickle as pickle

with

import pickle
Ibrahemamer commented 6 years ago

Wondering if you solved this problem I am getting the same problem even though I changed it to pickle only.

hising96 commented 6 years ago

try installing future module pip install future

do get me back on this one if unable to solve

meghaSingh1 commented 5 years ago

I am getting same problem even after installing future.

avinash20111992 commented 5 years ago

didn't work for me both future install and import cPickle as Pickle. can anyone please help.

anudeekshith commented 4 years ago

n i am also install futre but still its not working