root@DiskStation:/opt/bin# /opt/bin/python3 -m pip install Pillow
Collecting Pillow
Using cached Pillow-7.1.1.tar.gz (38.9 MB)
ERROR: Exception:
Traceback (most recent call last):
File "/opt/local/lib/python3.7/site-packages/pip/_internal/cli/base_command.py", line 186, in _main
status = self.run(options, args)
File "/opt/local/lib/python3.7/site-packages/pip/_internal/commands/install.py", line 331, in run
resolver.resolve(requirement_set)
File "/opt/local/lib/python3.7/site-packages/pip/_internal/legacy_resolve.py", line 177, in resolve
discovered_reqs.extend(self._resolve_one(requirement_set, req))
File "/opt/local/lib/python3.7/site-packages/pip/_internal/legacy_resolve.py", line 333, in _resolve_one
abstract_dist = self._get_abstract_dist_for(req_to_install)
File "/opt/local/lib/python3.7/site-packages/pip/_internal/legacy_resolve.py", line 282, in _get_abstract_dist_for
abstract_dist = self.preparer.prepare_linked_requirement(req)
File "/opt/local/lib/python3.7/site-packages/pip/_internal/operations/prepare.py", line 516, in prepare_linked_requirement
req, self.req_tracker, self.finder, self.build_isolation,
File "/opt/local/lib/python3.7/site-packages/pip/_internal/operations/prepare.py", line 95, in _get_prepared_distribution
abstract_dist.prepare_distribution_metadata(finder, build_isolation)
File "/opt/local/lib/python3.7/site-packages/pip/_internal/distributions/sdist.py", line 40, in prepare_distribution_metadata
self.req.prepare_metadata()
File "/opt/local/lib/python3.7/site-packages/pip/_internal/req/req_install.py", line 564, in prepare_metadata
self.metadata_directory = self._generate_metadata()
File "/opt/local/lib/python3.7/site-packages/pip/_internal/req/req_install.py", line 544, in _generate_metadata
details=self.name or "from {}".format(self.link)
File "/opt/local/lib/python3.7/site-packages/pip/_internal/operations/build/metadata_legacy.py", line 118, in generate_metadata
command_desc='python setup.py egg_info',
File "/opt/local/lib/python3.7/site-packages/pip/_internal/utils/subprocess.py", line 202, in call_subprocess
line = console_to_str(proc.stdout.readline())
File "/opt/local/lib/python3.7/site-packages/pip/_internal/utils/compat.py", line 159, in console_to_str
return str_to_display(data, desc='Subprocess output')
File "/opt/local/lib/python3.7/site-packages/pip/_internal/utils/compat.py", line 115, in str_to_display
encoding = locale.getpreferredencoding()
File "/opt/lib/python3.7/locale.py", line 661, in getpreferredencoding
setlocale(LC_CTYPE, oldloc)
File "/opt/lib/python3.7/locale.py", line 604, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting