environment:
python=3.7
pytorch==1.0.1 torchvision==0.2.2 cudatoolkit=9.0
pillow==6.0.0
CUDA Version 9.0.176
error: command '/usr/local/cuda/bin/nvcc' failed with exit status 1
Running setup.py install for apex ... error
ERROR: Command errored out with exit status 1: /users/guozibin/.conda/envs/semseg/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-y4l8yvdr/setup.py'"'"'; file='"'"'/tmp/pip-req-build-y4l8yvdr/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' --cpp_ext --cuda_ext install --record /tmp/pip-record-_g4w4je2/install-record.txt --single-version-externally-managed --compile --install-headers /users/guozibin/.conda/envs/semseg/include/python3.7m/apex Check the logs for full command output.
Here are the details:
pip install -v --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./
/users/guozibin/.conda/envs/semseg/lib/python3.7/site-packages/pip/_internal/commands/install.py:232: UserWarning: Disabling all use of wheels due to the use of --build-option / --global-option / --install-option.
cmdoptions.check_install_build_global(options)
Using pip 21.1.1 from /users/guozibin/.conda/envs/semseg/lib/python3.7/site-packages/pip (python 3.7)
Non-user install because site-packages writeable
Created temporary directory: /tmp/pip-ephem-wheel-cache-q0f_860l
Created temporary directory: /tmp/pip-req-tracker-om87971x
Initialized build tracking at /tmp/pip-req-tracker-om87971x
Created build tracker: /tmp/pip-req-tracker-om87971x
Entered build tracker: /tmp/pip-req-tracker-om87971x
Created temporary directory: /tmp/pip-install-ur1nnh71
Processing /users/guozibin/dukaiyang/environment/apex-master
Created temporary directory: /tmp/pip-req-build-y4l8yvdr
DEPRECATION: A future pip version will change local packages to be built in-place without first copying to a temporary directory. We recommend you use --use-feature=in-tree-build to test your packages with this new behavior before it becomes the default.
pip 21.3 will remove support for this functionality. You can find discussion regarding this at https://github.com/pypa/pip/issues/7555.
Added file:///users/guozibin/dukaiyang/environment/apex-master to build tracker '/tmp/pip-req-tracker-om87971x'
Running setup.py (path:/tmp/pip-req-build-y4l8yvdr/setup.py) egg_info for package from file:///users/guozibin/dukaiyang/environment/apex-master
Created temporary directory: /tmp/pip-pip-egg-info-8iwf3eg2
Running command python setup.py egg_info
torch.__version__ = 1.0.1.post2
running egg_info
creating /tmp/pip-pip-egg-info-8iwf3eg2/apex.egg-info
writing /tmp/pip-pip-egg-info-8iwf3eg2/apex.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-pip-egg-info-8iwf3eg2/apex.egg-info/dependency_links.txt
writing top-level names to /tmp/pip-pip-egg-info-8iwf3eg2/apex.egg-info/top_level.txt
writing manifest file '/tmp/pip-pip-egg-info-8iwf3eg2/apex.egg-info/SOURCES.txt'
reading manifest file '/tmp/pip-pip-egg-info-8iwf3eg2/apex.egg-info/SOURCES.txt'
writing manifest file '/tmp/pip-pip-egg-info-8iwf3eg2/apex.egg-info/SOURCES.txt'
/tmp/pip-req-build-y4l8yvdr/setup.py:67: UserWarning: Option --pyprof not specified. Not installing PyProf dependencies!
warnings.warn("Option --pyprof not specified. Not installing PyProf dependencies!")
Source in /tmp/pip-req-build-y4l8yvdr has version 0.1, which satisfies requirement apex==0.1 from file:///users/guozibin/dukaiyang/environment/apex-master
Removed apex==0.1 from file:///users/guozibin/dukaiyang/environment/apex-master from build tracker '/tmp/pip-req-tracker-om87971x'
Created temporary directory: /tmp/pip-unpack-2a8d2m7g
Skipping wheel build for apex, due to binaries being disabled for it.
Installing collected packages: apex
Created temporary directory: /tmp/pip-record-_g4w4je2
Running command /users/guozibin/.conda/envs/semseg/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-y4l8yvdr/setup.py'"'"'; file='"'"'/tmp/pip-req-build-y4l8yvdr/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' --cpp_ext --cuda_ext install --record /tmp/pip-record-_g4w4je2/install-record.txt --single-version-externally-managed --compile --install-headers /users/guozibin/.conda/envs/semseg/include/python3.7m/apex
ERROR: Command errored out with exit status 1: /users/guozibin/.conda/envs/semseg/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-y4l8yvdr/setup.py'"'"'; file='"'"'/tmp/pip-req-build-y4l8yvdr/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' --cpp_ext --cuda_ext install --record /tmp/pip-record-_g4w4je2/install-record.txt --single-version-externally-managed --compile --install-headers /users/guozibin/.conda/envs/semseg/include/python3.7m/apex Check the logs for full command output.
Exception information:
Traceback (most recent call last):
File "/users/guozibin/.conda/envs/semseg/lib/python3.7/site-packages/pip/_internal/req/req_install.py", line 820, in install
req_description=str(self.req),
File "/users/guozibin/.conda/envs/semseg/lib/python3.7/site-packages/pip/_internal/operations/install/legacy.py", line 81, in install
raise LegacyInstallFailure
pip._internal.operations.install.legacy.LegacyInstallFailure
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/users/guozibin/.conda/envs/semseg/lib/python3.7/site-packages/pip/_internal/cli/base_command.py", line 180, in _main
status = self.run(options, args)
File "/users/guozibin/.conda/envs/semseg/lib/python3.7/site-packages/pip/_internal/cli/req_command.py", line 204, in wrapper
return func(self, options, args)
File "/users/guozibin/.conda/envs/semseg/lib/python3.7/site-packages/pip/_internal/commands/install.py", line 402, in run
pycompile=options.compile,
File "/users/guozibin/.conda/envs/semseg/lib/python3.7/site-packages/pip/_internal/req/init.py", line 85, in install_given_reqs
pycompile=pycompile,
File "/users/guozibin/.conda/envs/semseg/lib/python3.7/site-packages/pip/_internal/req/req_install.py", line 824, in install
six.reraise(*exc.parent)
File "/users/guozibin/.conda/envs/semseg/lib/python3.7/site-packages/pip/_vendor/six.py", line 703, in reraise
raise value
File "/users/guozibin/.conda/envs/semseg/lib/python3.7/site-packages/pip/_internal/operations/install/legacy.py", line 71, in install
cwd=unpacked_source_directory,
File "/users/guozibin/.conda/envs/semseg/lib/python3.7/site-packages/pip/_internal/utils/subprocess.py", line 278, in runner
spinner=spinner,
File "/users/guozibin/.conda/envs/semseg/lib/python3.7/site-packages/pip/_internal/utils/subprocess.py", line 244, in call_subprocess
raise InstallationSubprocessError(proc.returncode, command_desc)
pip._internal.exceptions.InstallationSubprocessError: Command errored out with exit status 1: /users/guozibin/.conda/envs/semseg/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-y4l8yvdr/setup.py'"'"'; file='"'"'/tmp/pip-req-build-y4l8yvdr/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' --cpp_ext --cuda_ext install --record /tmp/pip-record-_g4w4je2/install-record.txt --single-version-externally-managed --compile --install-headers /users/guozibin/.conda/envs/semseg/include/python3.7m/apex Check the logs for full command output.
1 location(s) to search for versions of pip:
environment: python=3.7 pytorch==1.0.1 torchvision==0.2.2 cudatoolkit=9.0 pillow==6.0.0 CUDA Version 9.0.176
error: command '/usr/local/cuda/bin/nvcc' failed with exit status 1 Running setup.py install for apex ... error ERROR: Command errored out with exit status 1: /users/guozibin/.conda/envs/semseg/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-y4l8yvdr/setup.py'"'"'; file='"'"'/tmp/pip-req-build-y4l8yvdr/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' --cpp_ext --cuda_ext install --record /tmp/pip-record-_g4w4je2/install-record.txt --single-version-externally-managed --compile --install-headers /users/guozibin/.conda/envs/semseg/include/python3.7m/apex Check the logs for full command output.
Here are the details:
pip install -v --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./ /users/guozibin/.conda/envs/semseg/lib/python3.7/site-packages/pip/_internal/commands/install.py:232: UserWarning: Disabling all use of wheels due to the use of --build-option / --global-option / --install-option. cmdoptions.check_install_build_global(options) Using pip 21.1.1 from /users/guozibin/.conda/envs/semseg/lib/python3.7/site-packages/pip (python 3.7) Non-user install because site-packages writeable Created temporary directory: /tmp/pip-ephem-wheel-cache-q0f_860l Created temporary directory: /tmp/pip-req-tracker-om87971x Initialized build tracking at /tmp/pip-req-tracker-om87971x Created build tracker: /tmp/pip-req-tracker-om87971x Entered build tracker: /tmp/pip-req-tracker-om87971x Created temporary directory: /tmp/pip-install-ur1nnh71 Processing /users/guozibin/dukaiyang/environment/apex-master Created temporary directory: /tmp/pip-req-build-y4l8yvdr DEPRECATION: A future pip version will change local packages to be built in-place without first copying to a temporary directory. We recommend you use --use-feature=in-tree-build to test your packages with this new behavior before it becomes the default. pip 21.3 will remove support for this functionality. You can find discussion regarding this at https://github.com/pypa/pip/issues/7555. Added file:///users/guozibin/dukaiyang/environment/apex-master to build tracker '/tmp/pip-req-tracker-om87971x' Running setup.py (path:/tmp/pip-req-build-y4l8yvdr/setup.py) egg_info for package from file:///users/guozibin/dukaiyang/environment/apex-master Created temporary directory: /tmp/pip-pip-egg-info-8iwf3eg2 Running command python setup.py egg_info
Source in /tmp/pip-req-build-y4l8yvdr has version 0.1, which satisfies requirement apex==0.1 from file:///users/guozibin/dukaiyang/environment/apex-master Removed apex==0.1 from file:///users/guozibin/dukaiyang/environment/apex-master from build tracker '/tmp/pip-req-tracker-om87971x' Created temporary directory: /tmp/pip-unpack-2a8d2m7g Skipping wheel build for apex, due to binaries being disabled for it. Installing collected packages: apex Created temporary directory: /tmp/pip-record-_g4w4je2 Running command /users/guozibin/.conda/envs/semseg/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-y4l8yvdr/setup.py'"'"'; file='"'"'/tmp/pip-req-build-y4l8yvdr/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' --cpp_ext --cuda_ext install --record /tmp/pip-record-_g4w4je2/install-record.txt --single-version-externally-managed --compile --install-headers /users/guozibin/.conda/envs/semseg/include/python3.7m/apex
ERROR: Command errored out with exit status 1: /users/guozibin/.conda/envs/semseg/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-y4l8yvdr/setup.py'"'"'; file='"'"'/tmp/pip-req-build-y4l8yvdr/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' --cpp_ext --cuda_ext install --record /tmp/pip-record-_g4w4je2/install-record.txt --single-version-externally-managed --compile --install-headers /users/guozibin/.conda/envs/semseg/include/python3.7m/apex Check the logs for full command output. Exception information: Traceback (most recent call last): File "/users/guozibin/.conda/envs/semseg/lib/python3.7/site-packages/pip/_internal/req/req_install.py", line 820, in install req_description=str(self.req), File "/users/guozibin/.conda/envs/semseg/lib/python3.7/site-packages/pip/_internal/operations/install/legacy.py", line 81, in install raise LegacyInstallFailure pip._internal.operations.install.legacy.LegacyInstallFailure
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/users/guozibin/.conda/envs/semseg/lib/python3.7/site-packages/pip/_internal/cli/base_command.py", line 180, in _main status = self.run(options, args) File "/users/guozibin/.conda/envs/semseg/lib/python3.7/site-packages/pip/_internal/cli/req_command.py", line 204, in wrapper return func(self, options, args) File "/users/guozibin/.conda/envs/semseg/lib/python3.7/site-packages/pip/_internal/commands/install.py", line 402, in run pycompile=options.compile, File "/users/guozibin/.conda/envs/semseg/lib/python3.7/site-packages/pip/_internal/req/init.py", line 85, in install_given_reqs pycompile=pycompile, File "/users/guozibin/.conda/envs/semseg/lib/python3.7/site-packages/pip/_internal/req/req_install.py", line 824, in install six.reraise(*exc.parent) File "/users/guozibin/.conda/envs/semseg/lib/python3.7/site-packages/pip/_vendor/six.py", line 703, in reraise raise value File "/users/guozibin/.conda/envs/semseg/lib/python3.7/site-packages/pip/_internal/operations/install/legacy.py", line 71, in install cwd=unpacked_source_directory, File "/users/guozibin/.conda/envs/semseg/lib/python3.7/site-packages/pip/_internal/utils/subprocess.py", line 278, in runner spinner=spinner, File "/users/guozibin/.conda/envs/semseg/lib/python3.7/site-packages/pip/_internal/utils/subprocess.py", line 244, in call_subprocess raise InstallationSubprocessError(proc.returncode, command_desc) pip._internal.exceptions.InstallationSubprocessError: Command errored out with exit status 1: /users/guozibin/.conda/envs/semseg/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-y4l8yvdr/setup.py'"'"'; file='"'"'/tmp/pip-req-build-y4l8yvdr/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' --cpp_ext --cuda_ext install --record /tmp/pip-record-_g4w4je2/install-record.txt --single-version-externally-managed --compile --install-headers /users/guozibin/.conda/envs/semseg/include/python3.7m/apex Check the logs for full command output. 1 location(s) to search for versions of pip: