Python TypeError:setup()为关键字参数';获取了多个值;包装';

Python TypeError:setup()为关键字参数';获取了多个值;包装';,python,setup.py,Python,Setup.py,当我根据运行以下命令时,在第31行出现此错误,如下所述。如何获取包的多个值 python setup.py config_fc --fcompiler=gnu95 \ --f77flags='-fdefault-real-8' \ --f90flags='-fdefault-real-8' build Configuration(package\u name).to\u dict()结果已经包括packages=[package\u name]条目 通过将

当我根据运行以下命令时,在第31行出现此错误,如下所述。如何获取
包的多个值

python setup.py config_fc --fcompiler=gnu95 \
         --f77flags='-fdefault-real-8' \
         --f90flags='-fdefault-real-8' build

Configuration(package\u name).to\u dict()
结果已经包括
packages=[package\u name]
条目

通过将其包含在
setup()
config\u dict
映射中,
setup()
将两次提供该关键字。您可以将其从
setup()
调用(第31行)中删除:

我看到这个包裹的作者;我强烈怀疑,从那以后,努比的行为发生了变化


您可能应该向项目提交一份文件。

那么
config_dict['packages']
包含哪些内容?它可能是,
glmnet
应该只添加到该值中。
{'packages':['glmnet'],'name':'glmnet','package_dir':{'glmnet':''}}
在这种情况下,您可以完全省略第31行的
packages
条目。
配置
对象为您提供了该条目。
from numpy.distutils.misc_util import Configuration
from numpy.distutils.system_info import get_info
import os, sys

import sys

fflags= '-fdefault-real-8 -ffixed-form'

# TODO: Fix it so that these flags are default.

config = Configuration(
    'glmnet',
    parent_package=None,
    top_path=None
)


f_sources = ['glmnet/glmnet.pyf','glmnet/glmnet.f']

config.add_extension(name='_glmnet',sources=f_sources)
config_dict = config.todict()
if __name__ == '__main__':
    from numpy.distutils.core import setup
    setup(version='1.1-5',
          description='Python wrappers for the GLMNET package',
          author='David Warde-Farley',
          author_email='dwf@cs.toronto.edu',
          url='github.com/dwf/glmnet-python',
          license='GPL2',
          requires=['NumPy (>= 1.3)'],
          packages=['glmnet'],            ### LINE 31
          **config_dict)
setup(version='1.1-5',
      description='Python wrappers for the GLMNET package',
      author='David Warde-Farley',
      author_email='dwf@cs.toronto.edu',
      url='github.com/dwf/glmnet-python',
      license='GPL2',
      requires=['NumPy (>= 1.3)'],
      **config_dict)