小陆同学

python 中文名:蟒蛇,设计者:Guido van Rossum

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

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('"'"'\r\n'"'"', '"'"'\n'"'"');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

posted on   小陆同学  阅读(24849)  评论(0编辑  收藏  举报

编辑推荐:
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
阅读排行:
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· C#/.NET/.NET Core优秀项目和框架2025年2月简报
· DeepSeek在M芯片Mac上本地化部署
点击右上角即可分享
微信分享提示