Hello!
This is a follow up issue to the one I’ve opened at pyinstaller/pyinstaller#4966
Posting this after @Legorooj asked me to do so.
Using:
Debian 10.4
Python 3.7.4
pip 20.1.1 from /usr/local/lib/python3.7/dist-packages/pip (python 3.7)
When I try to install pyinstaller using pip3, I get these errors:
jure@debian:~$ sudo pip3 install https://github.com/pyinstaller/pyinstaller/archive/develop.zip
Collecting https://github.com/pyinstaller/pyinstaller/archive/develop.zip
Using cached https://github.com/pyinstaller/pyinstaller/archive/develop.zip
Installing build dependencies ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 /usr/local/lib/python3.7/dist-packages/pip install --ignore-installed --no-user --prefix /tmp /pip-build-env-y6d0abuv/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simp le -- 'setuptools>=40.8.0' wheel
cwd: None
Complete output (44 lines):
Traceback (most recent call last):
File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.7/dist-packages/pip/__main__.py", line 26, in <module>
sys.exit(_main())
File "/usr/local/lib/python3.7/dist-packages/pip/_internal/cli/main.py", line 73, in main
command = create_command(cmd_name, isolated=("--isolated" in cmd_args))
File "/usr/local/lib/python3.7/dist-packages/pip/_internal/commands/__init__.py", line 104, in create_command
module = importlib.import_module(module_path)
File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/usr/local/lib/python3.7/dist-packages/pip/_internal/commands/install.py", line 24, in <module>
from pip._internal.cli.req_command import RequirementCommand, with_cleanup
File "/usr/local/lib/python3.7/dist-packages/pip/_internal/cli/req_command.py", line 16, in <module>
from pip._internal.index.package_finder import PackageFinder
File "/usr/local/lib/python3.7/dist-packages/pip/_internal/index/package_finder.py", line 21, in <module>
from pip._internal.index.collector import parse_links
File "/usr/local/lib/python3.7/dist-packages/pip/_internal/index/collector.py", line 14, in <module>
from pip._vendor import html5lib, requests
File "/usr/local/lib/python3.7/dist-packages/pip/_vendor/requests/__init__.py", line 114, in <module>
from . import utils
File "/usr/local/lib/python3.7/dist-packages/pip/_vendor/requests/utils.py", line 25, in <module>
from . import certs
File "/usr/local/lib/python3.7/dist-packages/pip/_vendor/requests/certs.py", line 15, in <module>
from pip._vendor.certifi import where
File "/usr/local/lib/python3.7/dist-packages/pip/_vendor/certifi/__init__.py", line 1, in <module>
from .core import contents, where
File "/usr/local/lib/python3.7/dist-packages/pip/_vendor/certifi/core.py", line 12, in <module>
from importlib.resources import read_text
File "/usr/lib/python3.7/importlib/resources.py", line 11, in <module>
from typing import Iterable, Iterator, Optional, Set, Union # noqa: F401
File "/usr/local/lib/python3.7/dist-packages/typing.py", line 1356, in <module>
class Callable(extra=collections_abc.Callable, metaclass=CallableMeta):
File "/usr/local/lib/python3.7/dist-packages/typing.py", line 1004, in __new__
self._abc_registry = extra._abc_registry
AttributeError: type object 'Callable' has no attribute '_abc_registry'
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 /usr/local/lib/python3.7/dist-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-y6d0abuv/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.8.0' wheel Check the logs for full command output.
This doesn’t work either:
sudo pip3 install https://github.com/pyinstaller/pyinstaller/tarball/develop
Already have done:
sudo apt update && sudo apt upgrade
Tried both:
sudo pip3 install --upgrade setuptools
sudo pip3 install --upgrade 'setuptools<45.0.0'
$ pip install
ERROR: You must give at least one requirement to install (see «pip help install»)
Nооk@NООK-ПК C:UsersNооk
$ pip install pyinstaller
Collecting pyinstaller
Using cached https://files.pythonhosted.org/packages/e2/c9/0b44…
Installing build dependencies … done
Getting requirements to build wheel … done
Preparing wheel metadata … error
ERROR: Command errored out with exit status 1:
command: ‘c:usersnооkappdatalocalprogramspythonpython37-32python.exe’ ‘c:usersnооkappdatalocalprogramspythonpython37-32libsite-packagespip_vendorpep517_in_process.py’ prepare_metadata_for_build_wheel ‘C:UsersNооkAppDataLocalTemptmpybif6em_’
cwd: C:UsersNооkAppDataLocalTemppip-install-jnlb8qy7pyinstaller
Complete output (36 lines):
running dist_info
creating C:UsersNооkAppDataLocalTemppip-install-jnlb8qy7pyinstallerpip-wheel-metadataPyInstaller.egg-info
writing C:UsersNооkAppDataLocalTemppip-install-jnlb8qy7pyinstallerpip-wheel-metadataPyInstaller.egg-infoPKG-INFO
writing dependency_links to C:UsersNооkAppDataLocalTemppip-install-jnlb8qy7pyinstallerpip-wheel-metadataPyInstaller.egg-infodependency_links.txt
writing entry points to C:UsersNооkAppDataLocalTemppip-install-jnlb8qy7pyinstallerpip-wheel-metadataPyInstaller.egg-infoentry_points.txt
writing requirements to C:UsersNооkAppDataLocalTemppip-install-jnlb8qy7pyinstallerpip-wheel-metadataPyInstaller.egg-inforequires.txt
writing top-level names to C:UsersNооkAppDataLocalTemppip-install-jnlb8qy7pyinstallerpip-wheel-metadataPyInstaller.egg-infotop_level.txt
writing manifest file ‘C:UsersNооkAppDataLocalTemppip-install-jnlb8qy7pyinstallerpip-wheel-metadataPyInstaller.egg-infoSOURCES.txt’
reading manifest file ‘C:UsersNооkAppDataLocalTemppip-install-jnlb8qy7pyinstallerpip-wheel-metadataPyInstaller.egg-infoSOURCES.txt’
reading manifest template ‘MANIFEST.in’
Error in sitecustomize; set PYTHONVERBOSE for traceback:
SyntaxError: (unicode error) ‘utf-8’ codec can’t decode byte 0xee in position 0: invalid continuation byte (sitecustomize.py, line 7)
no previously-included directories found matching ‘bootloaderbuild’
no previously-included directories found matching ‘bootloader.waf-*’
no previously-included directories found matching ‘bootloader.waf3-*’
no previously-included directories found matching ‘bootloaderwaf-*’
no previously-included directories found matching ‘bootloaderwaf3-*’
no previously-included directories found matching ‘bootloader_sdks’
no previously-included directories found matching ‘bootloader.vagrant’
warning: no previously-included files found matching ‘bootloader.lock-waf*’
no previously-included directories found matching ‘docsource’
no previously-included directories found matching ‘doc_build’
warning: no previously-included files matching ‘*.tmp’ found under directory ‘doc’
warning: no files found matching ‘news_template.rst’
no previously-included directories found matching ‘news’
no previously-included directories found matching ‘old’
no previously-included directories found matching ‘scripts’
no previously-included directories found matching ‘testsscripts’
no previously-included directories found matching ‘.github’
warning: no previously-included files found matching ‘.*’
warning: no previously-included files found matching ‘*.yml’
warning: no previously-included files found matching ‘*~’
warning: no previously-included files found matching ‘.directory’
writing manifest file ‘C:UsersNооkAppDataLocalTemppip-install-jnlb8qy7pyinstallerpip-wheel-metadataPyInstaller.egg-infoSOURCES.txt’
creating ‘C:UsersNооkAppDataLocalTemppip-install-jnlb8qy7pyinstallerpip-wheel-metadataPyInstaller.dist-info’
error: invalid command ‘bdist_wheel’
—————————————-
ERROR: Command errored out with exit status 1: ‘c:usersnооkappdatalocalprogramspythonpython37-32python.exe’ ‘c:usersnооkappdatalocalprogramspythonpython37-32libsite-packagespip_vendorpep517_in_process.py’ prepare_metadata_for_build_wheel ‘C:UsersNооkAppDataLocalTemptmpybif6em_’ Check the logs for full command output.
-
Вопрос заданболее трёх лет назад
-
3095 просмотров
Пригласить эксперта
Здравствуй друг! Зарегистрировался ради того что бы помочь тебе и всем кто ищет помощи. Ниже я провел порядок команд которые надо прописать для инсталляции pyinstaller. Хочу предупредить что «$» писать не надо. Если помог, не поленись зарегистрироваться на сайте и поставить лайк. Мне будет приятно вдвойне.
$ python -m pip install —upgrade pip (Обновляем pip)
$ pip install wheel (инсталлируем wheel без него ни как)
$ pip install pyinstaller (Ну и сам pyinstaller)
Сообщение для модератора/администратора
Здравствуйте, оставляю эту запись здесь на всякий случай если будут какие либо претензии по поводу моего текста. Если все же я что то нарушил из ваших правил, прошу отредактировать пост, либо удалить. И не забудьте уведомить меня что именно было нарушено.
С уважением Defendr X!
Напиши pip install wheel, а потом уже pip install pyinstaller
-
Показать ещё
Загружается…
10 февр. 2023, в 02:20
3000 руб./за проект
10 февр. 2023, в 01:33
1500 руб./за проект
10 февр. 2023, в 00:54
2000 руб./в час
Минуточку внимания
Доброго времени суток всем.
Пробую установить PyInstaller по инструкции через pip, но выдаёт ошибку.
В самом низу, есть намек на кодировку, но всё в нужной кодировке для python’a
Exception: Traceback (most recent call last): File "C:Python27libsite-packagespip-7.1.2-py2.7.eggpipbasecommand.py", ine 211, in main status = self.run(options, args) File "C:Python27libsite-packagespip-7.1.2-py2.7.eggpipcommandsinstall. y", line 294, in run requirement_set.prepare_files(finder) File "C:Python27libsite-packagespip-7.1.2-py2.7.eggpipreqreq_set.py", ine 334, in prepare_files functools.partial(self._prepare_file, finder)) File "C:Python27libsite-packagespip-7.1.2-py2.7.eggpipreqreq_set.py", ine 321, in _walk_req_to_install more_reqs = handler(req_to_install) File "C:Python27libsite-packagespip-7.1.2-py2.7.eggpipreqreq_set.py", ine 461, in _prepare_file req_to_install.populate_link(finder, self.upgrade) File "C:Python27libsite-packagespip-7.1.2-py2.7.eggpipreqreq_install.p ", line 250, in populate_link self.link = finder.find_requirement(self, upgrade) File "C:Python27libsite-packagespip-7.1.2-py2.7.eggpipindex.py", line 4 6, in find_requirement all_versions = self._find_all_versions(req.name) File "C:Python27libsite-packagespip-7.1.2-py2.7.eggpipindex.py", line 4 4, in _find_all_versions index_locations = self._get_index_urls_locations(project_name) File "C:Python27libsite-packagespip-7.1.2-py2.7.eggpipindex.py", line 3 8, in _get_index_urls_locations page = self._get_page(main_index_url) File "C:Python27libsite-packagespip-7.1.2-py2.7.eggpipindex.py", line 8 8, in _get_page return HTMLPage.get_page(link, session=self.session) File "C:Python27libsite-packagespip-7.1.2-py2.7.eggpipindex.py", line 9 8, in get_page "Cache-Control": "max-age=600", File "C:Python27libsite-packagespip-7.1.2-py2.7.eggpip_vendorrequests essions.py", line 477, in get return self.request('GET', url, **kwargs) File "C:Python27libsite-packagespip-7.1.2-py2.7.eggpipdownload.py", lin 373, in request return super(PipSession, self).request(method, url, *args, **kwargs) File "C:Python27libsite-packagespip-7.1.2-py2.7.eggpip_vendorrequests essions.py", line 465, in request resp = self.send(prep, **send_kwargs) File "C:Python27libsite-packagespip-7.1.2-py2.7.eggpip_vendorrequests essions.py", line 605, in send r.content File "C:Python27libsite-packagespip-7.1.2-py2.7.eggpip_vendorrequests odels.py", line 750, in content self._content = bytes().join(self.iter_content(CONTENT_CHUNK_SIZE)) or byte () File "C:Python27libsite-packagespip-7.1.2-py2.7.eggpip_vendorrequests odels.py", line 673, in generate for chunk in self.raw.stream(chunk_size, decode_content=True): File "C:Python27libsite-packagespip-7.1.2-py2.7.eggpip_vendorrequests ackagesurllib3response.py", line 307, in stream data = self.read(amt=amt, decode_content=decode_content) File "C:Python27libsite-packagespip-7.1.2-py2.7.eggpip_vendorrequests ackagesurllib3response.py", line 243, in read data = self._fp.read(amt) File "C:Python27libsite-packagespip-7.1.2-py2.7.eggpip_vendorcachecont olfilewrapper.py", line 54, in read self.__callback(self.__buf.getvalue()) File "C:Python27libsite-packagespip-7.1.2-py2.7.eggpip_vendorcachecont olcontroller.py", line 244, in cache_response self.serializer.dumps(request, response, body=body), File "C:Python27libsite-packagespip-7.1.2-py2.7.eggpipdownload.py", lin 276, in set return super(SafeFileCache, self).set(*args, **kwargs) File "C:Python27libsite-packagespip-7.1.2-py2.7.eggpip_vendorcachecont olcachesfile_cache.py", line 99, in set with self.lock_class(name) as lock: File "C:Python27libsite-packagespip-7.1.2-py2.7.eggpip_vendorlockfile kdirlockfile.py", line 18, in __init__ LockBase.__init__(self, path, threaded, timeout) File "C:Python27libsite-packagespip-7.1.2-py2.7.eggpip_vendorlockfile _init__.py", line 189, in __init__ hash(self.path))) File "C:Python27libntpath.py", line 85, in join result_path = result_path + p_path UnicodeDecodeError: 'ascii' codec can't decode byte 0xcf in position 6: ordinal not in range(128)