Dear dusty-nv:
I have solved the issue with the super user commands as follows, since it had a serious issue to install and upgrade “setuptools” with the common user authorization.
- Solution:
$ sudo su
[sudo] password for nvidia: password
root@nvidia-desktop:/home/nvidia# cd Downloads
root@nvidia-desktop:/home/nvidia/Downloads# sudo apt-get install python3-setuptools
root@nvidia-desktop:/home/nvidia/Downloads# sudo pip3 install --upgrade setuptools
- Issue:
The previous issue is listed as follows.
While I try to install torch-1.1.0 and torchvision v0.3.0, there is the error as follows.
ModuleNotFoundError: No module named ‘setuptools.build_meta’
After uninstalling related environment and enabled the clean environment, I tried the following methods listed in the Google Search.
pip3 install --upgrade setuptools
python3 -m pip --upgrade pip setuptools wheel
…
But it still has the same error. While conduce the command of pip3 install numpy has also the problem. Please see the error in detail.
nvidia@nvidia-desktop:~/Downloads$ pip3 install numpy torch-1.1.0-cp36-cp36m-linux_aarch64.whl
Defaulting to user installation because normal site-packages is not writeable
Collecting numpy
Using cached numpy-1.18.1.zip (5.4 MB)
Installing build dependencies … done
Getting requirements to build wheel … done
ERROR: Exception:
Traceback (most recent call last):
File “/usr/local/lib/python3.6/dist-packages/pip/_internal/cli/base_command.py”, line 186, in _main
status = self.run(options, args)
File “/usr/local/lib/python3.6/dist-packages/pip/_internal/commands/install.py”, line 331, in run
resolver.resolve(requirement_set)
File “/usr/local/lib/python3.6/dist-packages/pip/_internal/legacy_resolve.py”, line 177, in resolve
discovered_reqs.extend(self._resolve_one(requirement_set, req))
File “/usr/local/lib/python3.6/dist-packages/pip/_internal/legacy_resolve.py”, line 333, in _resolve_one
abstract_dist = self._get_abstract_dist_for(req_to_install)
File “/usr/local/lib/python3.6/dist-packages/pip/_internal/legacy_resolve.py”, line 282, in _get_abstract_dist_for
abstract_dist = self.preparer.prepare_linked_requirement(req)
File “/usr/local/lib/python3.6/dist-packages/pip/_internal/operations/prepare.py”, line 516, in prepare_linked_requirement
req, self.req_tracker, self.finder, self.build_isolation,
File “/usr/local/lib/python3.6/dist-packages/pip/_internal/operations/prepare.py”, line 95, in _get_prepared_distribution
abstract_dist.prepare_distribution_metadata(finder, build_isolation)
File “/usr/local/lib/python3.6/dist-packages/pip/_internal/distributions/sdist.py”, line 38, in prepare_distribution_metadata
self._setup_isolation(finder)
File “/usr/local/lib/python3.6/dist-packages/pip/_internal/distributions/sdist.py”, line 96, in _setup_isolation
reqs = backend.get_requires_for_build_wheel()
File “/usr/local/lib/python3.6/dist-packages/pip/_vendor/pep517/wrappers.py”, line 152, in get_requires_for_build_wheel
‘config_settings’: config_settings
File “/usr/local/lib/python3.6/dist-packages/pip/_vendor/pep517/wrappers.py”, line 255, in _call_hook
raise BackendUnavailable(data.get(‘traceback’, ‘’))
pip._vendor.pep517.wrappers.BackendUnavailable: Traceback (most recent call last):
File “/usr/local/lib/python3.6/dist-packages/pip/_vendor/pep517/_in_process.py”, line 63, in _build_backend
obj = import_module(mod_path)
File “/usr/lib/python3.6/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 994, in _gcd_import
File “”, line 971, in _find_and_load
File “”, line 953, in _find_and_load_unlocked
ModuleNotFoundError: No module named ‘setuptools.build_meta’
Cheers,
Mike