gpt4 book ai didi

Python 2.7.6 Pydoop 在 Ubuntu 上安装失败

转载 作者:可可西里 更新时间:2023-11-01 14:58:24 28 4
gpt4 key购买 nike

我在安装 pydoop 包时遇到这个错误:

root@ubuntu:~# pip install pydoop
Downloading/unpacking pydoop
Downloading pydoop-1.0.0.tar.gz (931kB): 931kB downloaded
Running setup.py (path:/tmp/pip_build_root/pydoop/setup.py) egg_info for package pydoop
using setuptools version 15.0
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip_build_root/pydoop/setup.py", line 59, in <module>
import pydoop.hdfs.core.impl as hdfsimpl
File "pydoop/hdfs/__init__.py", line 99, in <module>
init()
File "pydoop/hdfs/__init__.py", line 93, in init
pydoop.hadoop_classpath(), _ORIG_CLASSPATH, pydoop.hadoop_conf()
File "pydoop/__init__.py", line 106, in hadoop_classpath
return _PATH_FINDER.hadoop_classpath(hadoop_home)
File "pydoop/hadoop_utils.py", line 540, in hadoop_classpath
hadoop_home = self.hadoop_home()
File "pydoop/hadoop_utils.py", line 399, in hadoop_home
PathFinder.__error("hadoop home", "HADOOP_HOME")
File "pydoop/hadoop_utils.py", line 385, in __error
raise ValueError("%s not found, try setting %s" % (what, env_var))
ValueError: hadoop home not found, try setting HADOOP_HOME
Complete output from command python setup.py egg_info:
using setuptools version 15.0

回溯(最近调用最后):

  File "<string>", line 17, in <module>

File "/tmp/pip_build_root/pydoop/setup.py", line 59, in <module>

import pydoop.hdfs.core.impl as hdfsimpl

File "pydoop/hdfs/__init__.py", line 99, in <module>

init()

File "pydoop/hdfs/__init__.py", line 93, in init

pydoop.hadoop_classpath(), _ORIG_CLASSPATH, pydoop.hadoop_conf()

File "pydoop/__init__.py", line 106, in hadoop_classpath

return _PATH_FINDER.hadoop_classpath(hadoop_home)

File "pydoop/hadoop_utils.py", line 540, in hadoop_classpath

hadoop_home = self.hadoop_home()

File "pydoop/hadoop_utils.py", line 399, in hadoop_home

PathFinder.__error("hadoop home", "HADOOP_HOME")

File "pydoop/hadoop_utils.py", line 385, in __error

raise ValueError("%s not found, try setting %s" % (what, env_var))

ValueError: hadoop home not found, try setting HADOOP_HOME

正在清理...命令 python setup.py egg_info 在/tmp/pip_build_root/pydoop 中失败,错误代码为 1在/home/abhimanyu/.pip/pip.log 中存储故障调试日志

最佳答案

试试这个:

sudo sh -c "ls ; export HADOOP_HOME=/yourpathtohadoopinstallation/; export JAVA_HOME=/yourpathtojavainstallation/; pip install pydoop"

这对我有用

关于Python 2.7.6 Pydoop 在 Ubuntu 上安装失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29645985/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com