如何在mac ox中从nnetts导入TimeSeriesNet()?

2024-06-02 04:28:12 发布

您现在位置:Python中文网/ 问答频道 /正文

我已经在mac中安装了nnet ts,使用

pip install nnet-ts

所有依赖项库都已安装。但在导入模块时

from nnet_ts import *

生成以下错误

ModuleNotFoundError                       Traceback (most recent 
call last)
<ipython-input-7-ad5e84de7763> in <module>
----> 1 from nnet_ts import *
      2 count=0
      3 ahead=12
      4 pred=[]

~/anaconda3/lib/python3.6/site-packages/nnet_ts/__init__.py in <module>
      5 from keras.layers.core import Dense, Activation, Dropout
      6 from sklearn.preprocessing import StandardScaler
----> 7 from TimeSeriesNnet import TimeSeriesNnet

ModuleNotFoundError: No module named 'TimeSeriesNnet'

我试着从这个线索Using the TimeSeriesNnet() method from the nnet_ts module throws NameError

但不适用于MAC。如何在macox中解决这个问题?你知道吗


Tags: 模块installpiptheinfromimportmac