toppra icon indicating copy to clipboard operation
toppra copied to clipboard

pip install . error

Open xuuyann opened this issue 3 years ago • 2 comments

Defaulting to user installation because normal site-packages is not writeable Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Processing /home/hrg/toppra Installing build dependencies ... done Getting requirements to build wheel ... done ERROR: Exception: Traceback (most recent call last): File "/home/hrg/.local/lib/python3.7/site-packages/pip/_internal/cli/base_command.py", line 224, in _main status = self.run(options, args) File "/home/hrg/.local/lib/python3.7/site-packages/pip/_internal/cli/req_command.py", line 180, in wrapper return func(self, options, args) File "/home/hrg/.local/lib/python3.7/site-packages/pip/_internal/commands/install.py", line 321, in run reqs, check_supported_wheels=not options.target_dir File "/home/hrg/.local/lib/python3.7/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 122, in resolve requirements, max_rounds=try_to_avoid_resolution_too_deep, File "/home/hrg/.local/lib/python3.7/site-packages/pip/_vendor/resolvelib/resolvers.py", line 445, in resolve state = resolution.resolve(requirements, max_rounds=max_rounds) File "/home/hrg/.local/lib/python3.7/site-packages/pip/_vendor/resolvelib/resolvers.py", line 310, in resolve name, crit = self._merge_into_criterion(r, parent=None) File "/home/hrg/.local/lib/python3.7/site-packages/pip/_vendor/resolvelib/resolvers.py", line 169, in _merge_into_criterion name = self._p.identify(requirement) File "/home/hrg/.local/lib/python3.7/site-packages/pip/_internal/resolution/resolvelib/provider.py", line 60, in identify return dependency.name File "/home/hrg/.local/lib/python3.7/site-packages/pip/_internal/resolution/resolvelib/requirements.py", line 41, in name return self.candidate.name File "/home/hrg/.local/lib/python3.7/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 188, in name return self.project_name File "/home/hrg/.local/lib/python3.7/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 182, in project_name self._name = canonicalize_name(self.dist.project_name) File "/home/hrg/.local/lib/python3.7/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 239, in dist self._prepare() File "/home/hrg/.local/lib/python3.7/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 226, in _prepare dist = self._prepare_distribution() File "/home/hrg/.local/lib/python3.7/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 319, in _prepare_distribution self._ireq, parallel_builds=True, File "/home/hrg/.local/lib/python3.7/site-packages/pip/_internal/operations/prepare.py", line 480, in prepare_linked_requirement return self._prepare_linked_requirement(req, parallel_builds) File "/home/hrg/.local/lib/python3.7/site-packages/pip/_internal/operations/prepare.py", line 524, in _prepare_linked_requirement req, self.req_tracker, self.finder, self.build_isolation, File "/home/hrg/.local/lib/python3.7/site-packages/pip/_internal/operations/prepare.py", line 88, in _get_prepared_distribution abstract_dist.prepare_distribution_metadata(finder, build_isolation) File "/home/hrg/.local/lib/python3.7/site-packages/pip/_internal/distributions/sdist.py", line 39, in prepare_distribution_metadata self._setup_isolation(finder) File "/home/hrg/.local/lib/python3.7/site-packages/pip/_internal/distributions/sdist.py", line 97, in _setup_isolation reqs = backend.get_requires_for_build_wheel() File "/home/hrg/.local/lib/python3.7/site-packages/pip/_vendor/pep517/wrappers.py", line 178, in get_requires_for_build_wheel 'config_settings': config_settings File "/home/hrg/.local/lib/python3.7/site-packages/pip/_vendor/pep517/wrappers.py", line 284, in _call_hook raise BackendUnavailable(data.get('traceback', '')) pip._vendor.pep517.wrappers.BackendUnavailable: Traceback (most recent call last): File "/home/hrg/.local/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py", line 86, in _build_backend obj = import_module(mod_path) File "/usr/local/lib/python3.7/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1006, in _gcd_import File "", line 983, in _find_and_load File "", line 953, in _find_and_load_unlocked File "", line 219, in _call_with_frames_removed File "", line 1006, in _gcd_import File "", line 983, in _find_and_load File "", line 967, in _find_and_load_unlocked File "", line 677, in _load_unlocked File "", line 728, in exec_module File "", line 219, in _call_with_frames_removed File "/tmp/pip-build-env-0gsrbvrz/overlay/lib/python3.7/site-packages/setuptools/init.py", line 18, in from setuptools.dist import Distribution File "/tmp/pip-build-env-0gsrbvrz/overlay/lib/python3.7/site-packages/setuptools/dist.py", line 32, in from setuptools import windows_support File "/tmp/pip-build-env-0gsrbvrz/overlay/lib/python3.7/site-packages/setuptools/windows_support.py", line 2, in import ctypes File "/usr/local/lib/python3.7/ctypes/init.py", line 7, in from _ctypes import Union, Structure, Array ModuleNotFoundError: No module named '_ctypes'

When i execute the command “pip install .”,error occurs. how to deal with this error?Thx!

xuuyann avatar Jan 05 '21 13:01 xuuyann

Interesting, do you still have this problem? A quick google yields this: https://stackoverflow.com/questions/27022373/python3-importerror-no-module-named-ctypes-when-using-value-from-module-mul

hungpham2511 avatar Mar 19 '21 04:03 hungpham2511

Stale issue message

github-actions[bot] avatar Mar 20 '22 00:03 github-actions[bot]