【发布时间】:2019-05-05 02:30:03
【问题描述】:
我一直在尝试在 ubuntu 中安装 apache superset(18.04 和 16.04 -- 在 virtualbox 中)
我正在关注他们的文档 - 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 而不是虚拟环境,请尝试使用
python3和pip3作为命令。
标签: python ubuntu virtualbox apache-superset