Python 键错误';pytest';安装POPPY 0.3时

Python 键错误';pytest';安装POPPY 0.3时,python,installation,astropy,Python,Installation,Astropy,在使用pip安装Poppy0.3时,我得到了一些关于Astropy弃用警告和pysynphot的警告,这些我都不太明白。在失败前的最后几行,回溯显示错误在astropy setup\u helpers文件中。下一行显示KeyError“pytest”。有没有人经历过这种情况,或者对我的情况有什么见解 这是命令提示符: Microsoft Windows [Version 6.1.7600] Copyright (c) 2009 Microsoft Corporation. All rights

在使用pip安装Poppy0.3时,我得到了一些关于Astropy弃用警告和pysynphot的警告,这些我都不太明白。在失败前的最后几行,回溯显示错误在astropy setup\u helpers文件中。下一行显示KeyError“pytest”。有没有人经历过这种情况,或者对我的情况有什么见解

这是命令提示符:

Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\psteffanic>pip install poppy --upgrade
Downloading/unpacking poppy 
  Running setup.py (path:c:\users\psteff~1\appdata\local\temp\pip_build_psteffan
ic\poppy\setup.py) egg_info for package poppy
    WARNING: AstropyDeprecationWarning: ConfigurationItem has been deprecated in
 astropy 0.4. Use ConfigItem objects as members of ConfigNamespace subclasses in
stead.  See ConfigNamespace for an example. [astropy.config.configuration]
    C:\Python27\lib\site-packages\pysynphot\locations.py:14: UserWarning: PYSYN_
CDBS is undefined; functionality will be SEVERELY crippled.
      warnings.warn("PYSYN_CDBS is undefined; functionality will be SEVERELY "
    C:\Python27\lib\site-packages\pysynphot\locations.py:74: UserWarning: Extinc
tion files should be moved to $PYSYN_CDBS/extinction for compatibility with futu
re versions of pysynphot.
      warnings.warn('Extinction files should be moved to '
    C:\Python27\lib\site-packages\pysynphot\locations.py:110: UserWarning: Extin
ction files not found in grid\extinction
      warnings.warn('Extinction files not found in %s' % (extdir,))
    C:\Python27\lib\site-packages\pysynphot\locations.py:88: UserWarning: PYSYN_
CDBS is undefined; cannot find mtab\*_tmg.fits file
      warnings.warn("PYSYN_CDBS is undefined; cannot find %s file" % template)
    C:\Python27\lib\site-packages\pysynphot\locations.py:88: UserWarning: PYSYN_
CDBS is undefined; cannot find mtab\*_tmc.fits file
      warnings.warn("PYSYN_CDBS is undefined; cannot find %s file" % template)
    C:\Python27\lib\site-packages\pysynphot\locations.py:88: UserWarning: PYSYN_
CDBS is undefined; cannot find mtab\*_tmt.fits file
      warnings.warn("PYSYN_CDBS is undefined; cannot find %s file" % template)
   WARNING: AstropyDeprecationWarning: astropy.setup_helpers.update_package_fil
es is deprecated.  Update your setup.py to use astropy.setup_helpers.get_package
_info instead. [astropy.setup_helpers]

Installing collected packages: poppy
  Running setup.py install for poppy
    generating default poppy.cfg file in poppy\poppy.cfg
    WARNING: AstropyDeprecationWarning: ConfigurationItem has been deprecated in
 astropy 0.4. Use ConfigItem objects as members of ConfigNamespace subclasses in
stead.  See ConfigNamespace for an example. [astropy.config.configuration]
    C:\Python27\lib\site-packages\pysynphot\locations.py:14: UserWarning: PYSYN_
CDBS is undefined; functionality will be SEVERELY crippled.
      warnings.warn("PYSYN_CDBS is undefined; functionality will be SEVERELY "
    C:\Python27\lib\site-packages\pysynphot\locations.py:74: UserWarning: Extinc
tion files should be moved to $PYSYN_CDBS/extinction for compatibility with futu
re versions of pysynphot.
      warnings.warn('Extinction files should be moved to '
    C:\Python27\lib\site-packages\pysynphot\locations.py:110: UserWarning: Extin
ction files not found in grid\extinction
      warnings.warn('Extinction files not found in %s' % (extdir,))
    C:\Python27\lib\site-packages\pysynphot\locations.py:88: UserWarning: PYSYN_
CDBS is undefined; cannot find mtab\*_tmg.fits file
       warnings.warn("PYSYN_CDBS is undefined; cannot find %s file" % template)
     C:\Python27\lib\site-packages\pysynphot\locations.py:88: UserWarning: PYSYN_
CDBS is undefined; cannot find mtab\*_tmc.fits file
      warnings.warn("PYSYN_CDBS is undefined; cannot find %s file" % template)
    C:\Python27\lib\site-packages\pysynphot\locations.py:88: UserWarning: PYSYN_
CDBS     is undefined; cannot find mtab\*_tmt.fits file
      warnings.warn("PYSYN_CDBS is undefined; cannot find %s file" % template)
    WARNING: AstropyDeprecationWarning: astropy.setup_helpers.update_package_fil
es is deprecated.  Update your setup.py to use astropy.setup_helpers.get_package
_info instead. [astropy.setup_helpers]
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "c:\users\psteff~1\appdata\local\temp\pip_build_psteffanic\poppy\setu
p.py", line 144, in <module>
        use_2to3=False
      File "C:\Python27\lib\distutils\core.py", line 151, in setup
        dist.run_commands()
      File "C:\Python27\lib\distutils\dist.py", line 953, in run_commands
        self.run_command(cmd)
      File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
        cmd_obj.run()
      File "C:\Python27\lib\site-packages\distribute-0.6.32-py2.7.egg\setuptools
\command\install.py", line 53, in run
        return _install.run(self)
       File "C:\Python27\lib\distutils\command\install.py", line 563, in run
        self.run_command('build')
      File "C:\Python27\lib\distutils\cmd.py", line 326, in run_command
        self.distribution.run_command(command)
      File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
        cmd_obj.run()
      File "C:\Python27\lib\distutils\command\build.py", line 127, in run
        self.run_command(cmd_name)
      File "C:\Python27\lib\distutils\cmd.py", line 326, in run_command
        self.distribution.run_command(command)
      File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
        cmd_obj.run()
       File "C:\Python27\lib\site-packages\astropy-0.4-py2.7-win32.egg\astropy\se
tup_helpers.py", line 623, in run
        for k, (fnsrc, v) in six.iteritems(self.distribution.command_options['py
test']):
    KeyError: 'pytest'
   Record file c:\users\psteff~1\appdata\local\temp\pip-lze5cj-record\install-rec
 ord.txt not found
Successfully installed poppy 
Cleaning up...

C:\Users\psteffanic>
Microsoft Windows[版本6.1.7600]
版权所有(c)2009微软公司。版权所有。
C:\Users\psteffanic>pip安装poppy--升级
下载/解包poppy
正在运行setup.py(路径:c:\users\psteff~1\appdata\local\temp\pip\u build\psteff)
ic\poppy\setup.py)包装poppy的鸡蛋信息
警告:AstropyDeprecationWarning:ConfigurationItem在中已被弃用
astropy 0.4。将ConfigItem对象用作中ConfigNamespace子类的成员
代替。有关示例,请参见ConfigNamespace。[astropy.config.configuration]
C:\Python27\lib\site packages\pysynphot\locations.py:14:UserWarning:PYSYN_
CDB未定义;功能将严重受损。
warnings.warn(“PYSYN_CDB未定义;功能将严重受损”
C:\Python27\lib\site packages\pysynphot\locations.py:74:UserWarning:exteric
为了与futu兼容,应将tion文件移动到$PYSYN_CDBS/demovation
pysynphot的重新版本。
warnings.warn('应将文件移动到'
C:\Python27\lib\site packages\pysynphot\locations.py:110:UserWarning:exte
在网格中找不到Action文件\n
warnings.warn(“%s%”(extdir,)中找不到文件)
C:\Python27\lib\site packages\pysynphot\locations.py:88:UserWarning:PYSYN_
CDB未定义;找不到mtab\*\u tmg.fits文件
warnings.warn(“PYSYN_CDB未定义;找不到%s文件”%template)
C:\Python27\lib\site packages\pysynphot\locations.py:88:UserWarning:PYSYN_
CDB未定义;找不到mtab\*\u tmc.fits文件
warnings.warn(“PYSYN_CDB未定义;找不到%s文件”%template)
C:\Python27\lib\site packages\pysynphot\locations.py:88:UserWarning:PYSYN_
CDB未定义;找不到mtab\*\u tmt.fits文件
warnings.warn(“PYSYN_CDB未定义;找不到%s文件”%template)
警告:AstropyDeprection警告:astropy.setup\u helpers.update\u package\u fil
es已弃用。请更新setup.py以使用astropy.setup\u helpers.get\u包
_改为信息。[astropy.setup\u helpers]
安装收集的软件包:poppy
正在为poppy运行setup.py安装
在poppy\poppy.cfg中生成默认poppy.cfg文件
警告:AstropyDeprecationWarning:ConfigurationItem在中已被弃用
astropy 0.4。在中使用ConfigItem对象作为ConfigNamespace子类的成员
有关示例,请参见ConfigNamespace。[astropy.config.configuration]
C:\Python27\lib\site packages\pysynphot\locations.py:14:UserWarning:PYSYN_
CDB未定义;功能将严重受损。
warnings.warn(“PYSYN_CDB未定义;功能将严重受损”
C:\Python27\lib\site packages\pysynphot\locations.py:74:UserWarning:exteric
为了与futu兼容,应将tion文件移动到$PYSYN_CDBS/demovation
pysynphot的重新版本。
warnings.warn('应将文件移动到'
C:\Python27\lib\site packages\pysynphot\locations.py:110:UserWarning:exte
在网格中找不到Action文件\n
warnings.warn(“%s%”(extdir,)中找不到文件)
C:\Python27\lib\site packages\pysynphot\locations.py:88:UserWarning:PYSYN_
CDB未定义;找不到mtab\*\u tmg.fits文件
warnings.warn(“PYSYN_CDB未定义;找不到%s文件”%template)
C:\Python27\lib\site packages\pysynphot\locations.py:88:UserWarning:PYSYN_
CDB未定义;找不到mtab\*\u tmc.fits文件
warnings.warn(“PYSYN_CDB未定义;找不到%s文件”%template)
C:\Python27\lib\site packages\pysynphot\locations.py:88:UserWarning:PYSYN_
CDB未定义;找不到mtab\*\u tmt.fits文件
warnings.warn(“PYSYN_CDB未定义;找不到%s文件”%template)
警告:AstropyDeprection警告:astropy.setup\u helpers.update\u package\u fil
es已弃用。请更新setup.py以使用astropy.setup\u helpers.get\u包
_改为信息。[astropy.setup\u helpers]
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
文件“c:\users\psteff~1\appdata\local\temp\pip\u build\u psteffanic\poppy\setu
p、 py”,第144行,第2行
使用_2to3=False
文件“C:\Python27\lib\distutils\core.py”,第151行,在安装程序中
dist.run_命令()
文件“C:\Python27\lib\distutils\dist.py”,第953行,在run\u命令中
self.run_命令(cmd)
文件“C:\Python27\lib\distutils\dist.py”,第972行,在run\u命令中
cmd_obj.run()
文件“C:\Python27\lib\site packages\distribute-0.6.32-py2.7.egg\setuptools
\命令\install.py”,第53行,在运行中
return\u安装运行(self)
文件“C:\Python27\lib\distutils\command\install.py”,第563行,正在运行
self.run_命令('build'))
文件“C:\Python27\lib\distutils\cmd.py”,第326行,在run\u命令中
self.distribution.run_命令(command)
文件“C:\Python27\lib\distutils\dist.py”,第972行,在run\u命令中
cmd_obj.run()
文件“C:\Python27\lib\distutils\command\build.py”,第127行,正在运行
self.run_命令(cmd_名称)
文件“C:\Python27\lib\distutils\cmd.py”,第326行,在run\u命令中
self.distribution.run_命令(command)
文件“C:\Python27\lib\distutils\dist.py”,第972行,在run\u命令中
cmd_obj.run()
文件“C:\Python27\lib\site packages\astropy-0.4-py2.7-win32.egg\astropy\se
tup_helpers.py“,第623行,运行中
对于k,(fnsrc,v)在六个.iteritems(self.distribution.command_选项['py]中
测试']]:
KeyError:“pytest”
记录文件c:\users\psteff~1\appdata\local\temp\pip-lze5cj-Record\install