[英]TypeError: configurable() got an unexpected keyword argument 'denylist'
I installed the package, but I cannot import it.我安装了 package,但无法导入。 I get this error: TypeError: configurable() got an unexpected keyword argument 'denylist' I appreciate it if you could help me to fix this.
我收到此错误:TypeError:configurable() got an unexpected keyword argument 'denylist' 如果您能帮我解决这个问题,我将不胜感激。 Below you can see the complete error that I got.
您可以在下面看到我得到的完整错误。
import trax
I installed this package(Deep learning package), and when I import it, I get this error:我安装了这个包(深度学习包),当我导入它时,我得到了这个错误:
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-1-3afdcd9c7c68> in <module>
----> 1 import trax
~/opt/anaconda3/lib/python3.7/site-packages/trax/__init__.py in <module>
16 """Trax top level import."""
17
---> 18 from trax import data
19 from trax import fastmath
20 from trax import layers
~/opt/anaconda3/lib/python3.7/site-packages/trax/data/__init__.py in <module>
18
19 from trax.data import inputs
---> 20 from trax.data import tf_inputs
21
22
~/opt/anaconda3/lib/python3.7/site-packages/trax/data/tf_inputs.py in <module>
504
505 # Makes the function accessible in gin configs, even with all args denylisted.
--> 506 @gin.configurable(denylist=['dataset', 'training'])
507 def cifar10_no_augmentation_preprocess(dataset, training):
508 del training
TypeError: configurable() got an unexpected keyword argument 'denylist'
I really need to work with this package, and I don't know how to fix it.我真的需要使用这个 package,我不知道如何解决它。 My OS: macOS Big Sur Python version: Python 3.7.4
我的操作系统:macOS Big Sur Python 版本:Python 3.7.4
I found the solution: :pip install --upgrade -q gin git+https.//github.com/google/trax.git@v1.2.3我找到了解决方案::pip install --upgrade -q gin git+https.//github.com/google/trax.git@v1.2.3
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.