error when i try to activate apex
i have done this that the result
pip install -v --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./apex
WARNING: Disabling all use of wheels due to the use of --build-option / --global-option / --install-option.
Using pip 22.1.2 from /home/antoine/miniconda3/envs/jukebox/lib/python3.7/site-packages/pip (python 3.7)
Processing ./apex
Running command python setup.py egg_info
torch.version = 1.1.0
running egg_info
creating /tmp/pip-pip-egg-info-4nrbf_nz/apex.egg-info
writing /tmp/pip-pip-egg-info-4nrbf_nz/apex.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-pip-egg-info-4nrbf_nz/apex.egg-info/dependency_links.txt
writing top-level names to /tmp/pip-pip-egg-info-4nrbf_nz/apex.egg-info/top_level.txt
writing manifest file '/tmp/pip-pip-egg-info-4nrbf_nz/apex.egg-info/SOURCES.txt'
reading manifest file '/tmp/pip-pip-egg-info-4nrbf_nz/apex.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file '/tmp/pip-pip-egg-info-4nrbf_nz/apex.egg-info/SOURCES.txt'
Preparing metadata (setup.py) ... done
Skipping wheel build for apex, due to binaries being disabled for it.
Installing collected packages: apex
Running command Running setup.py install for apex
torch.version = 1.1.0
Traceback (most recent call last):
File "
× Running setup.py install for apex 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/antoine/miniconda3/envs/jukebox/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 = "
exec(compile(setup_py_code, filename, "exec"))
'"'"''"'"''"'"' % ('"'"'/home/antoine/jukebox/jukebox/apex/setup.py'"'"',), "
× Encountered error while trying to install package. ╰─> apex
note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.