xlearn icon indicating copy to clipboard operation
xlearn copied to clipboard

install error --> Install xLearn from pip

Open yangdali opened this issue 4 years ago • 0 comments

centos7

python 3.6.8

========================== pip3 install xlearn

Collecting xlearn Using cached https://files.pythonhosted.org/packages/ab/1b/9ad0093cac05d6f95d3d768bc855804b18723c72120ce45cd930bd303587/xlearn-0.40a1.tar.gz Installing collected packages: xlearn Running setup.py install for xlearn ... error ERROR: Command errored out with exit status 1: command: /usr/local/python3/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-8fydj7hb/xlearn/setup.py'"'"'; file='"'"'/tmp/pip-install-8fydj7hb/xlearn/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-fg0y6te9/install-record.txt --single-version-externally-managed --compile cwd: /tmp/pip-install-8fydj7hb/xlearn/ Complete output (51 lines): /usr/local/python3/lib/python3.6/site-packages/setuptools/dist.py:470: UserWarning: Normalizing '0.40.a1' to '0.40a1' normalized_version, running install running build running build_py Traceback (most recent call last): File "/tmp/pip-install-8fydj7hb/xlearn/setup.py", line 37, in silent_call subprocess.check_output(cmd, stderr=shut_up) File "/usr/local/python3/lib/python3.6/subprocess.py", line 356, in check_output **kwargs).stdout File "/usr/local/python3/lib/python3.6/subprocess.py", line 438, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '['make', '-j4']' returned non-zero exit status 2.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-install-8fydj7hb/xlearn/setup.py", line 126, in <module>
    url='https://github.com/aksnzhy/xlearn')
  File "/usr/local/python3/lib/python3.6/site-packages/setuptools/__init__.py", line 143, in setup
    return distutils.core.setup(**attrs)
  File "/usr/local/python3/lib/python3.6/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/local/python3/lib/python3.6/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "/usr/local/python3/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/tmp/pip-install-8fydj7hb/xlearn/setup.py", line 93, in run
    install.run(self)
  File "/usr/local/python3/lib/python3.6/site-packages/setuptools/command/install.py", line 61, in run
    return orig.install.run(self)
  File "/usr/local/python3/lib/python3.6/distutils/command/install.py", line 545, in run
    self.run_command('build')
  File "/usr/local/python3/lib/python3.6/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/local/python3/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/usr/local/python3/lib/python3.6/distutils/command/build.py", line 135, in run
    self.run_command(cmd_name)
  File "/usr/local/python3/lib/python3.6/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/local/python3/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/tmp/pip-install-8fydj7hb/xlearn/setup.py", line 104, in run
    compile_cpp()
  File "/tmp/pip-install-8fydj7hb/xlearn/setup.py", line 77, in compile_cpp
    error_msg='An error has occurred while building xlearn library file')
  File "/tmp/pip-install-8fydj7hb/xlearn/setup.py", line 41, in silent_call
    raise Exception(error_msg);
Exception: An error has occurred while building xlearn library file
----------------------------------------

ERROR: Command errored out with exit status 1: /usr/local/python3/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-8fydj7hb/xlearn/setup.py'"'"'; file='"'"'/tmp/pip-install-8fydj7hb/xlearn/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-fg0y6te9/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.

yangdali avatar Oct 14 '19 06:10 yangdali