zoukankan      html  css  js  c++  java
  • ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

    pip2 install django-import-export

    DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support

    Looking in indexes: https://mirrors.aliyun.com/pypi/simple

    Collecting django-import-export

      Downloading https://mirrors.aliyun.com/pypi/packages/62/7a/ddd9aef718243504e7715bda9bb5a100cfc353be37dc819d9914a7073cba/django_import_export-1.2.0-py2.py3-none-any.whl (75 kB)

         |████████████████████████████████| 75 kB 5.2 MB/s 

    Requirement already satisfied: django>=1.8 in /usr/lib/python2.7/site-packages (from django-import-export) (1.9)

    Collecting tablib

      Downloading https://mirrors.aliyun.com/pypi/packages/79/ec/69c399f5978012e1fd1fe0778d9855bbf43780a18345b64f4ec477b67ba5/tablib-0.14.0.tar.gz (76 kB)

         |████████████████████████████████| 76 kB 15.0 MB/s 

        ERROR: Command errored out with exit status 1:

         command: /usr/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-3xZ8aM/tablib/setup.py'"'"'; __file__='"'"'/tmp/pip-install-3xZ8aM/tablib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"' '"'"', '"'"' '"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-3xZ8aM/tablib/pip-egg-info

             cwd: /tmp/pip-install-3xZ8aM/tablib/

        Complete output (5 lines):

        /usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'python_requires'

          warnings.warn(msg)

        /usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'long_description_content_type'

          warnings.warn(msg)

        error in tablib setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers

        ----------------------------------------

    ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

     

    解决办法:

    pip2 install --upgrade pip
    pip2 install --upgrade setuptools
    pip2 install django-import-export
  • 相关阅读:
    Ambiguous mapping. Cannot map 'labelInfoController' method
    在写ssh项目时浏览器页面出现http status 404 – not found
    JS页面出现Uncaught SyntaxError: Unexpected token < 错误
    Data truncation: Truncated incorrect DOUBLE value:
    个人最终总结
    结对编程--黄金点游戏
    Windows操作系统----锁住命令行窗口
    Windows操作系统下给文件夹右键命令菜单添加启动命令行的选项
    命令行下运行 java someClass.class出现 “错误:找不到或无法加载主类someClass ” 的解决方案
    Qt Quick程序的发布
  • 原文地址:https://www.cnblogs.com/lutt/p/12976667.html
Copyright © 2011-2022 走看看