Open caoyiran1996 opened 4 years ago
from pandas.stats import moments
ModuleNotFoundError: No module named 'pandas.stats'
Another error, the pandas.stats is a module from former version of pandas so the "moments" could not be installed. I checked the module with the same name and import the Moments in my pycharm ,which doesent end well and gave me same error.
@caoyiran1996 , change all "moments." to "pd."
i get: ImportError: cannot import name 'lmap' from 'pandas.compat' (/home/klop/.local/lib/python3.7/site-packages/pandas/compat/init.py)
and i cant install pandas 0.22 which should fix it. anyway idea?
I reolved the issue by doing this :
Comment this:
#from pandas.stats import moments
Use this:
import statsmodels.stats as moments
Using TensorFlow backend. 2020-04-26 16:18:38.050381: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cudart64_101.dll'; dlerror: cudart64_101.dll not found 2020-04-26 16:18:38.050737: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine. ModuleNotFoundError: No module named 'numpy.core._multiarray_umath' ImportError: numpy.core.multiarray failed to import ImportError: numpy.core._multiarray_umath failed to import ImportError: numpy.core.umath failed to import 2020-04-26 16:18:38.671400: F tensorflow/python/lib/core/bfloat16.cc:675] Check failed: PyBfloat16_Type.tp_base != nullptr
1.Is this because I dont have a GPU? 2.My IDE is Pycharm, should use Anaconda to match the environment? (Cause the pycharm keeps telling me some requirements couldnt be installed, including "Anaconda client ==1.6.0 , bitarray == 0.8.1 ......... "