You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Your compile log file if you meet the problem.
[ ModuleNotFoundError: No module named 'setuptools.command.build'
error: subprocess-exited-with-error
× python setup.py egg_info 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: /home/psy/anaconda3/envs/distill/bin/python -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()"
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.]
The text was updated successfully, but these errors were encountered:
forever10086
changed the title
compile mmrazor getswrong results with pip install -v -e .
compile mmrazor gets a wrong results with pip install -v -e .
Dec 22, 2023
Checklist
Describe the question you meet
[I can't construct mmrazor with the local compile way ,
the way is pip install -v -e .]
Post related information
pip list | grep "mmcv\|mmrazor\|^torch"
[ ModuleNotFoundError: No module named 'setuptools.command.build'
error: subprocess-exited-with-error
× python setup.py egg_info 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: /home/psy/anaconda3/envs/distill/bin/python -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 underlyingsetup.py
, when invokingsetup.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"))
'"'"''"'"''"'"' % ('"'"'/home/psy/code/mmrazor/setup.py'"'"',), "", "exec"))' egg_info --egg-base /tmp/pip-pip-egg-info-ekzdgni6
cwd: /home/psy/code/mmrazor/
Preparing metadata (setup.py) ... error
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.]
The text was updated successfully, but these errors were encountered: