Skip to content

Installation Error #11

Description

@Ysc-shark

thanks for great work!

I followed the readme instructions to clone a GitHub project on my server, created a virtual environment, installed the correct versions of torch and pytorch-scatter, and installed other pip packages.

However, I encountered the following error during pip install -v .

RuntimeError: Error compiling objects for extension
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
full command: /root/miniconda3/envs/nr3d/bin/python -u -c '
exec(compile('"'"''"'"''"'"'
This is -- a caller that pip uses to run setup.py

  • It imports setuptools before invoking setup.py, to enable projects that directly
    import from distutils.core to work with newer packaging standards.
  • It provides a clear error message when setuptools is not installed.
  • It sets sys.argv[0] to the underlying setup.py, when invoking setup.py so
    setuptools doesn'"'"'t think the script is -c. This avoids the following warning:
    manifest_maker: standard file '"'"'-c'"'"' not found".
  • It generates a shim setup.py, for handling setup.cfg-only projects.
    import os, sys, tokenize

try:
import setuptools
except ImportError as error:
print(
"ERROR: Can not execute setup.py since setuptools is not available in "
"the build environment.",
file=sys.stderr,
)
sys.exit(1)

file = %r
sys.argv[0] = file

if os.path.exists(file):
filename = file
with tokenize.open(file) as f:
setup_py_code = f.read()
else:
filename = ""
setup_py_code = "from setuptools import setup; setup()"

exec(compile(setup_py_code, filename, "exec"))
'"'"''"'"''"'"' % ('"'"'/root/autodl-tmp/neuralsim/nr3d_lib/setup.py'"'"',), "", "exec"))' bdist_wheel -d /tmp/pip-wheel-w12r9tri
cwd: /root/autodl-tmp/neuralsim/nr3d_lib/
Building wheel for nr3d_lib (setup.py) ... error
ERROR: Failed building wheel for nr3d_lib
Running setup.py clean for nr3d_lib
Running command python setup.py clean
=> Targeting compute capability 89
running clean
removing 'build/temp.linux-x86_64-cpython-38' (and everything under it)
removing 'build/lib.linux-x86_64-cpython-38' (and everything under it)
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-3.8' does not exist -- can't clean it
removing 'build'
Failed to build nr3d_lib
ERROR: Could not build wheels for nr3d_lib, which is required to install pyproject.toml-based projects

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions