Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/301.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/django/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 在heroku上安装django-tables2返回错误:无效命令';鸡蛋信息&x27;_Python_Django_Python 2.7_Heroku_Django Tables2 - Fatal编程技术网

Python 在heroku上安装django-tables2返回错误:无效命令';鸡蛋信息&x27;

Python 在heroku上安装django-tables2返回错误:无效命令';鸡蛋信息&x27;,python,django,python-2.7,heroku,django-tables2,Python,Django,Python 2.7,Heroku,Django Tables2,我正在尝试在我的Heroku dyno上安装django-tables2==1.21.1。下面是我尝试安装时的错误日志: ~ $ pip install django-tables2 Collecting django-tables2 Using cached django-tables2-1.21.1.tar.gz Complete output from command python setup.py egg_info: /app/.heroku/python/lib/p

我正在尝试在我的Heroku dyno上安装django-tables2==1.21.1。下面是我尝试安装时的错误日志:

~ $ pip install django-tables2
Collecting django-tables2
  Using cached django-tables2-1.21.1.tar.gz
    Complete output from command python setup.py egg_info:
    /app/.heroku/python/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'extras_require'
      warnings.warn(msg)
    /app/.heroku/python/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'include_package_data'
      warnings.warn(msg)
    /app/.heroku/python/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'install_requires'
      warnings.warn(msg)
    usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
       or: -c --help [cmd1 cmd2 ...]
       or: -c --help-commands
       or: -c cmd --help

    error: invalid command 'egg_info'

    ----------------------------------------
安装在我的本地虚拟环境上运行得很好,我在这两个环境上都运行Python2.7.14和django 1.11.11。所有其他软件包安装时没有任何问题

关于这个问题有什么想法吗? 谢谢

更新:


更新到python==3.6.4和Django==2.0.3解决了这个问题。

我尝试了这些解决方案,但没有一个效果非常糟糕!我在heroku方面没有经验,但是如果我能在django-tables2方面提供任何帮助,请让我知道在GitHub上使用问题。
PyYAML=3.10(来自awscli==1.15.5
,byt,我已经有了python 3.6.4。并且还不能升级到django 2。