openai / jukebox

Code for the paper "Jukebox: A Generative Model for Music"
https://openai.com/blog/jukebox/
Other
7.83k stars 1.41k forks source link

error when i try to activate apex #262

Open Postconceptlab opened 2 years ago

Postconceptlab commented 2 years ago

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 "", line 36, in File "", line 34, in File "/home/antoine/jukebox/jukebox/apex/setup.py", line 62, in raise RuntimeError("--cuda_ext was requested, but nvcc was not found. Are you sure your environment has nvcc available? If you're installing within a container from https://hub.docker.com/r/pytorch/pytorch, only images whose names contain 'devel' will provide nvcc.") RuntimeError: --cuda_ext was requested, but nvcc was not found. Are you sure your environment has nvcc available? If you're installing within a container from https://hub.docker.com/r/pytorch/pytorch, only images whose names contain 'devel' will provide nvcc. error: subprocess-exited-with-error

× 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 = "" setup_py_code = "from setuptools import setup; setup()"

exec(compile(setup_py_code, filename, "exec")) '"'"''"'"''"'"' % ('"'"'/home/antoine/jukebox/jukebox/apex/setup.py'"'"',), "", "exec"))' --cpp_ext --cuda_ext install --record /tmp/pip-record-8n9d880b/install-record.txt --single-version-externally-managed --compile --install-headers /home/antoine/miniconda3/envs/jukebox/include/python3.7m/apex cwd: /home/antoine/jukebox/jukebox/apex/ Running setup.py install for apex ... error error: legacy-install-failure

× 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.