Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/293.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 进口恐怖主义:Can';无法确定numexpr的版本_Python_Scikit Learn_Numexpr - Fatal编程技术网

Python 进口恐怖主义:Can';无法确定numexpr的版本

Python 进口恐怖主义:Can';无法确定numexpr的版本,python,scikit-learn,numexpr,Python,Scikit Learn,Numexpr,我在运行后遇到此错误: (100*df.isna().sum()/df.shape[0]).round(1) 我用巨蟒 这是我得到的全部错误: --------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-20-e4dd

我在运行后遇到此错误:

(100*df.isna().sum()/df.shape[0]).round(1)
我用巨蟒

这是我得到的全部错误:

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-20-e4ddd4ac043f> in <module>
----> 1 (100*df.isna().sum()/df.shape[0]).round(1)

~\Anaconda3\lib\site-packages\pandas\core\ops\__init__.py in wrapper(left, right)
   1046 
   1047         with np.errstate(all="ignore"):
-> 1048             result = na_op(lvalues, rvalues)
   1049         return construct_result(
   1050             left, result, index=left.index, name=res_name, dtype=None

~\Anaconda3\lib\site-packages\pandas\core\ops\__init__.py in na_op(x, y)
    963         TypeError : invalid operation
    964         """
--> 965         import pandas.core.computation.expressions as expressions
    966 
    967         try:

~\Anaconda3\lib\site-packages\pandas\core\computation\expressions.py in <module>
     17 from pandas.core.dtypes.generic import ABCDataFrame
     18 
---> 19 from pandas.core.computation.check import _NUMEXPR_INSTALLED
     20 
     21 if _NUMEXPR_INSTALLED:

~\Anaconda3\lib\site-packages\pandas\core\computation\check.py in <module>
      1 from pandas.compat._optional import import_optional_dependency
      2 
----> 3 ne = import_optional_dependency("numexpr", raise_on_missing=False, on_version="warn")
      4 _NUMEXPR_INSTALLED = ne is not None
      5 if _NUMEXPR_INSTALLED:

~\Anaconda3\lib\site-packages\pandas\compat\_optional.py in import_optional_dependency(name, extra, raise_on_missing, on_version)
     97     minimum_version = VERSIONS.get(name)
     98     if minimum_version:
---> 99         version = _get_version(module)
    100         if distutils.version.LooseVersion(version) < minimum_version:
    101             assert on_version in {"warn", "raise", "ignore"}

~\Anaconda3\lib\site-packages\pandas\compat\_optional.py in _get_version(module)
     46 
     47     if version is None:
---> 48         raise ImportError("Can't determine version for {}".format(module.__name__))
     49     return version
     50 

ImportError: Can't determine version for numexpr
---------------------------------------------------------------------------
ImportError回溯(最近一次呼叫最后一次)
在里面
---->1(100*df.isna().sum()/df.shape[0]).round(1)
包装器中的~\Anaconda3\lib\site packages\pandas\core\ops\\uuuuu init\uuuuuuuuuuuuuuuuuuuy.py(左、右)
1046
1047,带有np.errstate(all=“ignore”):
->1048结果=na_op(左值、右值)
1049返回构造结果(
1050 left,result,index=left.index,name=res\u name,dtype=None
~\Anaconda3\lib\site packages\pandas\core\ops\\uuuuuu init\uuuuuuuuu.py在Nauu op(x,y)中
963类型错误:操作无效
964         """
-->965将.core.computation.expressions导入为表达式
966
967尝试:
中的~\Anaconda3\lib\site packages\pandas\core\computation\expressions.py
17从pandas.core.dtypes.generic导入ABCDATA框架
18
--->19从pandas.core.computation.check导入\u NUMEXPR\u安装
20
21如果安装了NUMEXPR,则:
~\Anaconda3\lib\site packages\pandas\core\computation\check.py-in
1来自pandas.compat.\u可选导入\u可选\u依赖项
2.
---->3 ne=导入\可选\依赖关系(“numexpr”,在\缺失时引发\ False,在\版本=“警告”)
4\u NUMEXPR\u INSTALLED=ne不是无
5如果安装了NUMEXPR,则:
导入可选依赖项中的~\Anaconda3\lib\site packages\pandas\compat\\\\可选.py(名称、额外、缺少时升高、版本时升高)
97最小版本=版本。获取(名称)
98如果最低版本:
--->99版本=\u获取\u版本(模块)
100如果distutils.version.version(version)<最小版本:
101在{“警告”、“提高”、“忽略”}中对_版本进行断言
获取版本(模块)中的~\Anaconda3\lib\site packages\pandas\compat\\可选.py
46
47如果版本为无:
--->48 raise ImportError(“无法确定{}”的版本)。格式(模块名)
49返回版本
50
ImportError:无法确定numexpr的版本
它是在我更新了我的scikit learn之后开始的。 我试过了,但我仍然有这个问题。我能做些什么来解决它?

请发布一个完整的回溯以及显示错误的回溯。