I am trying to install cuQuantum Python from source. The instructions are:
- Set
CUDA_PATH
to point to your CUDA installation - Set
CUQUANTUM_ROOT
to point to your cuQuantum installation - Set
CUTENSOR_ROOT
to point to your cuTENSOR installation - Make sure CUDA, cuQuantum and cuTENSOR are visible in your
LD_LIBRARY_PATH
- Run
pip install -v .
Step 5 fails because the name of the package to install is not specified:
pip install -v .
ERROR: Directory ‘.’ is not installable. Neither ‘setup.py’ nor ‘pyproject.toml’ found.
If I use the setup.py that is provided in the cuQuantum/python on Github, the install fails. The log is shown below.
If using the setup.py from github is correct, why is the install failing?
> pip install -v /home/local_user/NVIDIA_CUQUANTUM_Samples/cuQuantum/python
Processing /home/local_user/NVIDIA_CUQUANTUM_Samples/cuQuantum/python
Running command python setup.py egg_info
****************************************************************
CUDA version: 11.5
CUDA path: /usr/local/cuda-11.5
cuStateVec path: /opt/nvidia/cuquantum-linux-x86_64-0.1.0.30-archive
cuTensorNet path: /opt/nvidia/cuquantum-linux-x86_64-0.1.0.30-archive
****************************************************************
/opt/nvidia/python_virtual_env/lib64/python3.10/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
warnings.warn(
WARNING: The wheel package is not available.
ERROR: Could not find a version that satisfies the requirement cutensor>=1.4.* (from versions: none)
ERROR: No matching distribution found for cutensor>=1.4.*
Traceback (most recent call last):
File "/opt/nvidia/python_virtual_env/lib64/python3.10/site-packages/setuptools/installer.py", line 82, in fetch_build_egg
subprocess.check_call(cmd)
File "/usr/lib64/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/opt/nvidia/python_virtual_env/bin/python3', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpzv0tbmzb', '--quiet', 'cutensor>=1.4.*']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/local_user/NVIDIA_CUQUANTUM_Samples/cuQuantum/python/setup.py", line 145, in <module>
setup(
File "/opt/nvidia/python_virtual_env/lib64/python3.10/site-packages/setuptools/__init__.py", line 152, in setup
_install_setup_requires(attrs)
File "/opt/nvidia/python_virtual_env/lib64/python3.10/site-packages/setuptools/__init__.py", line 147, in _install_setup_requires
dist.fetch_build_eggs(dist.setup_requires)
File "/opt/nvidia/python_virtual_env/lib64/python3.10/site-packages/setuptools/dist.py", line 812, in fetch_build_eggs
resolved_dists = pkg_resources.working_set.resolve(
File "/opt/nvidia/python_virtual_env/lib64/python3.10/site-packages/pkg_resources/__init__.py", line 771, in resolve
dist = best[req.key] = env.best_match(
File "/opt/nvidia/python_virtual_env/lib64/python3.10/site-packages/pkg_resources/__init__.py", line 1056, in best_match
return self.obtain(req, installer)
File "/opt/nvidia/python_virtual_env/lib64/python3.10/site-packages/pkg_resources/__init__.py", line 1068, in obtain
return installer(requirement)
File "/opt/nvidia/python_virtual_env/lib64/python3.10/site-packages/setuptools/dist.py", line 883, in fetch_build_egg
return fetch_build_egg(self, req)
File "/opt/nvidia/python_virtual_env/lib64/python3.10/site-packages/setuptools/installer.py", line 84, in fetch_build_egg
raise DistutilsError(str(e)) from e
distutils.errors.DistutilsError: Command '['/opt/nvidia/python_virtual_env/bin/python3', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpzv0tbmzb', '--quiet', 'cutensor>=1.4.*']' returned non-zero exit status 1.
Preparing metadata (setup.py) ... error
WARNING: Discarding file:///home/local_user/NVIDIA_CUQUANTUM_Samples/cuQuantum/python. Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.