ModuleNotFoundError: No module named 'sktime.transformers'
ModuleNotFoundError: No module named 'sktime.transformers'
我试过导入
from sktime.transformers.series_as_features.rocket import Rocket
当我运行这个的时候,我遇到这个错误---
File "C:\Users\Success\AppData\Local\Temp/ipykernel_8440/2082396040.py", line 1, in <module>
runfile('C:/Users/Success/Desktop/untitled8.py', wdir='C:/Users/Success/Desktop')
File "C:\Users\Success\anaconda3\lib\site-packages\debugpy\_vendored\pydevd\_pydev_bundle\pydev_umd.py", line 167, in runfile
execfile(filename, namespace)
File "C:\Users\Success\anaconda3\lib\site-packages\debugpy\_vendored\pydevd\_pydev_imps\_pydev_execfile.py", line 25, in execfile
exec(compile(contents + "\n", file, 'exec'), glob, loc)
File "C:/Users/Success/Desktop/untitled8.py", line 11, in <module>
from sktime.transformers.series_as_features.rocket import Rocket
ModuleNotFoundError: No module named 'sktime.transformers
我运行陷入了类似的问题。他们已经移动了模块在库中的实际位置。尝试此路径应该可以解决您遇到的问题:
from sktime.transformations.panel.rocket import Rocket
未安装包。
可以通过多种方式安装 sktime
(See here official documentation)
选项 1:使用 PyPI
为此,请访问您正在使用的环境的提示,然后 运行
pip install sktime
要安装具有最大依赖性的 sktime,包括软依赖性,请使用 all_extras 修饰符安装:
pip install sktime[all_extras]
选项 2:使用 conda
为此,请访问您正在使用的环境的提示,然后 运行
conda install -c conda-forge sktime
要安装具有最大依赖性的 sktime,包括软依赖性,请使用 all-extras 配方安装:
conda install -c conda-forge sktime-all-extras
在我写这篇文章的时候,最后一个 (Source):
does not include dependencies catch-22, pmdarima, and tbats. As these
packages are not available on conda-forge, they must be installed via
pip if desired. Contributions to remedy this situation are
appreciated.
就我而言,在安装选项 1 时出现错误
ERROR: Cannot uninstall 'llvmlite'. It is a distutils installed
project and thus we cannot accurately determine which files belong to
it which would lead to only a partial uninstall.
为此,运行ning 在环境提示中执行以下操作解决了问题:
pip install --ignore-installed llvmlite
如果前一个不起作用,其他替代方案,例如
pip install llvmlite --ignore-installed
或
pip install llvmlite
可能有用。
我试过导入
from sktime.transformers.series_as_features.rocket import Rocket
当我运行这个的时候,我遇到这个错误---
File "C:\Users\Success\AppData\Local\Temp/ipykernel_8440/2082396040.py", line 1, in <module>
runfile('C:/Users/Success/Desktop/untitled8.py', wdir='C:/Users/Success/Desktop')
File "C:\Users\Success\anaconda3\lib\site-packages\debugpy\_vendored\pydevd\_pydev_bundle\pydev_umd.py", line 167, in runfile
execfile(filename, namespace)
File "C:\Users\Success\anaconda3\lib\site-packages\debugpy\_vendored\pydevd\_pydev_imps\_pydev_execfile.py", line 25, in execfile
exec(compile(contents + "\n", file, 'exec'), glob, loc)
File "C:/Users/Success/Desktop/untitled8.py", line 11, in <module>
from sktime.transformers.series_as_features.rocket import Rocket
ModuleNotFoundError: No module named 'sktime.transformers
我运行陷入了类似的问题。他们已经移动了模块在库中的实际位置。尝试此路径应该可以解决您遇到的问题:
from sktime.transformations.panel.rocket import Rocket
未安装包。
可以通过多种方式安装 sktime
(See here official documentation)
选项 1:使用 PyPI
为此,请访问您正在使用的环境的提示,然后 运行
pip install sktime
要安装具有最大依赖性的 sktime,包括软依赖性,请使用 all_extras 修饰符安装:
pip install sktime[all_extras]
选项 2:使用 conda
为此,请访问您正在使用的环境的提示,然后 运行
conda install -c conda-forge sktime
要安装具有最大依赖性的 sktime,包括软依赖性,请使用 all-extras 配方安装:
conda install -c conda-forge sktime-all-extras
在我写这篇文章的时候,最后一个 (Source):
does not include dependencies catch-22, pmdarima, and tbats. As these packages are not available on conda-forge, they must be installed via pip if desired. Contributions to remedy this situation are appreciated.
就我而言,在安装选项 1 时出现错误
ERROR: Cannot uninstall 'llvmlite'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
为此,运行ning 在环境提示中执行以下操作解决了问题:
pip install --ignore-installed llvmlite
如果前一个不起作用,其他替代方案,例如
pip install llvmlite --ignore-installed
或
pip install llvmlite
可能有用。