【问题标题】:unable to install apache superset ubuntu 18.04 or even ubuntu 16.04无法安装 apache superset ubuntu 18.04 甚至 ubuntu 16.04
【发布时间】:2019-05-05 02:30:03
【问题描述】:

我一直在尝试在 ubuntu 中安装 apache superset(18.04 和 16.04 -- 在 vi​​rtualbox 中)

我正在关注他们的文档 - https://superset.incubator.apache.org/installation.html#python-virtualenv,但遇到了困难。

这是我遵循的步骤 第 1 步

`sudo apt-get install build-essential libssl-dev libffi-dev python3.5-dev python-pip libsasl2-dev` libldap2-dev

第 2 步:

pip install virtualenv

第三步:

virtualenv venv
. ./venv/bin/activate

第四步:

pip install --upgrade setuptools pip

第 5 步: pip 安装超集

这是我卡住的步骤 对于 ubuntu 18.04

错误信息是这样的

Complete output from command python setup.py egg_info:
    Sorry, Python < 3.6 is not supported

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-_atmAP/superset/

我得到几乎完全相同的错误,唯一不同的是 /tmp/pip-install-_atmAP/superset/ 中的错误代码 1

在上面的错误代码中,它是一些其他字母而不是 _atmAP

那么,你们能告诉我我哪里出了问题吗?以及如何安装?

我已经安装了 python 3.6.7,但我认为当我这样做pip install superset时,python 2.7 被用于此目的

看看这个,也许你会有所了解

 pip install --upgrade setuptools pip
Requirement already up-to-date: setuptools in ./venv/lib/python2.7/site-packages (40.6.2)
Requirement already up-to-date: pip in ./venv/lib/python2.7/site-packages (18.1)
(venv) faraz@faraz-VirtualBox:~$ pip install superset
Collecting superset
  Using cached https://files.pythonhosted.org/packages/da/48/583551048b9e045eed47dbd93c3210fa1e02193e4fad226033a19754525c/superset-0.28.1.tar.gz
    Complete output from command python setup.py egg_info:
    Sorry, Python < 3.6 is not supported

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-jNXS9r/superset/
(venv) faraz@faraz-VirtualBox:~$ sudo apt-get install python3.6-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python3.6-dev is already the newest version (3.6.7-1~18.04).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
(venv) faraz@faraz-VirtualBox:~$ pip install superset
Collecting superset
  Using cached https://files.pythonhosted.org/packages/da/48/583551048b9e045eed47dbd93c3210fa1e02193e4fad226033a19754525c/superset-0.28.1.tar.gz
    Complete output from command python setup.py egg_info:
    Sorry, Python < 3.6 is not supported

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-M2CmSQ/superset/

你怎么看? 如何解决这个问题??

【问题讨论】:

  • 阅读错误信息:“抱歉,不支持 Python
  • 是的。但我使用的是 python 3.6.7。它已经安装好了。甚至用 python --version 检查它,我可以看到 python 3.6.7
  • @KlausD。 , 我想你是对的。我认为当我执行 pip install superset 时,以某种方式使用 python 2.7 而不是 3.6.7。我在原始帖子中粘贴了更多详细信息。请看一下。它可能会让您对正在发生的事情有更多了解。
  • 如果您使用的是系统 python 而不是虚拟环境,请尝试使用 python3pip3 作为命令。

标签: python ubuntu virtualbox apache-superset


【解决方案1】:

你能用python3.6创建一个虚拟环境吗:-

virtualenv -p python3.6 ENV

激活你的环境

source ENV/bin/activate

然后尝试使用以下命令安装超集:-

ENV/bin/pip3.6 install superset

【讨论】:

    【解决方案2】:

    以下在 Ubuntu16.04 中对我很有效:

    sudo pip install --upgrade setuptools pip
    sudo add-apt-repository ppa:jonathonf/python-3.6
    sudo apt update
    sudo apt install python3.6 python3.6-dev
    wget https://bootstrap.pypa.io/get-pip.py
    sudo python3.6 get-pip.py
    sudo pip3 install superset
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-06-03
      • 1970-01-01
      • 2019-04-12
      • 2019-07-30
      • 1970-01-01
      • 1970-01-01
      • 2023-04-10
      • 2018-06-09
      相关资源
      最近更新 更多