vn.py量化社区
By Traders, For Traders.
Member
avatar
加入于:
帖子: 22
声望: 0

安装环境:win10虚拟机vmware下ubuntu18.04,虚拟机内存4G

错误提示如下:

Generating locales (this might take a while)...
  zh_CN.GB18030...??????????"/usr/lib/locale/locale-archive": ????
 done
Generation complete.
Processing /home/lu/anaconda3/envs/vnpy/lib/python3.7/site-packages
    ERROR: Command errored out with exit status 1:
     command: /home/lu/anaconda3/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-_klkvgzo/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-_klkvgzo/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-it7qwkfm
         cwd: /tmp/pip-req-build-_klkvgzo/
    Complete output (9 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-req-build-_klkvgzo/setuptools/__init__.py", line 3, in <module>
        from fnmatch import fnmatchcase
      File "/home/lu/anaconda3/lib/python3.7/fnmatch.py", line 14, in <module>
        import re
      File "/home/lu/anaconda3/lib/python3.7/re.py", line 143, in <module>
        class RegexFlag(enum.IntFlag):
    AttributeError: module 'enum' has no attribute 'IntFlag'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

在网上搜索“AttributeError: module 'enum' has no attribute 'IntFlag'”解决方法,是enmu34库不兼容导致,卸载enmu34后提示缺少pytz==2019.3、simplejson==3.17.0,安装这两个包以后重新bash install.sh又提示最上面的错误。始终不知问题原因所在,恳请高手给予指点!多谢

Administrator
avatar
加入于:
帖子: 4130
声望: 230

请删除anaconda后,用全新的miniconda来安装试试

© 2015-2019 上海韦纳软件科技有限公司
备案服务号:沪ICP备18006526号-3