Enums 安装dbf-没有名为enum的模块
我正在尝试安装dbf模块-请参阅下面的链接 在命令提示符下安装模块时,收到以下无效语法错误:Enums 安装dbf-没有名为enum的模块,enums,module,installation,dbf,arcpy,Enums,Module,Installation,Dbf,Arcpy,我正在尝试安装dbf模块-请参阅下面的链接 在命令提示符下安装模块时,收到以下无效语法错误: C:\Users\dbf-0.96.005>python setup.py install C:\Python27\lib\distutils\dist.py:267: UserWarning: Unknown distribution option: 'install_requires' warnings.warn(msg) running install running b
C:\Users\dbf-0.96.005>python setup.py install
C:\Python27\lib\distutils\dist.py:267: UserWarning: Unknown distribution option: 'install_requires'
warnings.warn(msg)
running install
running build
running build_py
running install_lib
byte-compiling C:\Python27\Lib\site-packages\dbf\ver_33.py to ver_33.pyc
File "C:\Python27\Lib\site-packages\dbf\ver_33.py", line 2577 raise DbfError<"unable to write updates to disk, original data restored: %r"X<exc,>> from None
^
SyntaxError: invalid syntax
running install_egg_info
Removing C:\Python27\Lib\site-packages\dbf-0.96.005-py2.7.egg-info
Writing C:\Python27\Lib\site-packages\dbf-0.96.005-py2.7.egg-info
C:\Users\dbf-0.96.005>
C:\Users\dbf-0.96.005>python setup.py安装
C:\Python27\lib\distutils\dist.py:267:UserWarning:未知的分发选项:“安装\u需要”
警告。警告(msg)
正在运行的安装
运行构建
运行build\u py
正在运行安装库
字节编译C:\Python27\Lib\site packages\dbf\ver\u 33.py到ver\u 33.pyc
文件“C:\Python27\Lib\site packages\dbf\ver\u 33.py”,第2577行将dbferor从None提升到None
^
SyntaxError:无效语法
正在运行安装\u鸡蛋\u信息
正在删除C:\Python27\Lib\site packages\dbf-0.96.005-py2.7.egg-info
编写C:\Python27\Lib\site packages\dbf-0.96.005-py2.7.egg-info
C:\Users\dbf-0.96.005>
然后,如果我尝试在解释器中导入dbf,我会得到:
Traceback (most recent call last):
File "W:/Engineering/ENGINEER/LAMP (062012)/Database/VisualDatabase/test", line 1, in <module>
import dbf
File "C:\Python27\ArcGIS10.3\lib\site-packages\dbf\__init__.py", line 11, in <module>
from dbf import ver_2 as _dbf
File "C:\Python27\ArcGIS10.3\lib\site-packages\dbf\ver_2.py", line 49, in <module>
from enum import Enum, IntEnum
ImportError: No module named enum
>>>
回溯(最近一次呼叫最后一次):
文件“W:/Engineering/ENGINEER/LAMP(062012)/Database/VisualDatabase/test”,第1行,中
导入dbf
文件“C:\Python27\ArcGIS10.3\lib\site packages\dbf\\uuuuu init\uuuuuu.py”,第11行,在
从dbf导入版本2作为_dbf
文件“C:\Python27\ArcGIS10.3\lib\site packages\dbf\ver_2.py”,第49行,在
从enum导入enum,IntEnum
ImportError:没有名为enum的模块
>>>
我需要安装枚举吗?是否有我需要的Enum版本 对不起,我必须阻止我创建的最后一个包 做一个
首先。对不起,我必须阻止我创建的最后一个包 做一个 首先
pip install enum34