C:Windowssystem32>pip install pyinstaller
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Collecting pyinstaller
Using cached https://files.pythonhosted.org/packages/03/32/0e0de593f129bf1d1e77eed562496d154ef4460fd5cecfd78612ef39a0cc/PyInstaller-3.4.tar.gz
Installing build dependencies ... done
Getting requirements to build wheel ... error
Complete output from command c:python27python.exe c:python27libsite-packagespip_vendorpep517_in_process.py get_requires_for_build_wheel c:usersgoldpappdatalocaltemptmpz9mkmy:
Traceback (most recent call last):
File "c:python27libsite-packagespip_vendorpep517_in_process.py", line 207, in <module>
main()
File "c:python27libsite-packagespip_vendorpep517_in_process.py", line 197, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "c:python27libsite-packagespip_vendorpep517_in_process.py", line 54, in get_requires_for_build_wheel
return hook(config_settings)
File "c:usersuserappdatalocaltemppip-build-env-oljevtoverlayLibsite-packagessetuptoolsbuild_meta.py", line 115, in get_requires_for_build_wheel
return _get_build_requires(config_settings, requirements=['wheel'])
File "c:usersuserappdatalocaltemppip-build-env-oljevtoverlayLibsite-packagessetuptoolsbuild_meta.py", line 101, in _get_build_requires
_run_setup()
File "c:usersuserappdatalocaltemppip-build-env-oljevtoverlayLibsite-packagessetuptoolsbuild_meta.py", line 85, in _run_setup
exec(compile(code, __file__, 'exec'), locals())
File "setup.py", line 20, in <module>
from PyInstaller import __version__ as version, HOMEPATH, PLATFORM
ImportError: No module named PyInstaller
Command "c:python27python.exe c:python27libsite-packagespip_vendorpep517_in_process.py get_requires_for_build_wheel c:usersuserappdatalocaltemptmpz9mkmy" failed with error code 1 in c:usersuserappdatalocaltemppip-install-yd3kmlpyinstaller
This is the specific error message I receive.
I am not sure why this is? This is from using pip install pyinstaller and all 3 commands advised below.
Содержание
- PyInstaller 3.4 installation failed on windows 10 — 64bit #4032
- Comments
- Почему выдает ошибку при скачивании pyinstaller??
- При попытке установить pip install pyinstaller выдаёт ошибку.
- Unable to build no-binary :all: with use-pep517 #7831
- Comments
PyInstaller 3.4 installation failed on windows 10 — 64bit #4032
I checked below descriptions:
Greetings!
»’
PS C:Userslinux10> pip install pyinstaller
Collecting pyinstaller
Using cached https://files.pythonhosted.org/packages/03/32/0e0de593f129bf1d1e77eed562496d154ef4460fd5cecfd78612ef39a0c
c/PyInstaller-3.4.tar.gz
Installing build dependencies . done
Getting requirements to build wheel . error
Complete output from command c:python37python.exe c:python37libsite-packagespip_vendorpep517_in_process.py ge
t_requires_for_build_wheel C:Userslinux10AppDataLocalTemptmpizpy5_3e:
Traceback (most recent call last):
File «c:python37libsite-packagespip_vendorpep517_in_process.py», line 207, in
main()
File «c:python37libsite-packagespip_vendorpep517_in_process.py», line 197, in main
json_out[‘return_val’] = hook(**hook_input[‘kwargs’])
File «c:python37libsite-packagespip_vendorpep517_in_process.py», line 54, in get_requires_for_build_wheel
return hook(config_settings)
File «C:Userslinux10AppDataLocalTemppip-build-env-jqn7v_86overlayLibsite-packagessetuptoolsbuild_meta.py»
, line 115, in get_requires_for_build_wheel
return _get_build_requires(config_settings, requirements=[‘wheel’])
File «C:Userslinux10AppDataLocalTemppip-build-env-jqn7v_86overlayLibsite-packagessetuptoolsbuild_meta.py»
, line 101, in _get_build_requires
_run_setup()
File «C:Userslinux10AppDataLocalTemppip-build-env-jqn7v_86overlayLibsite-packagessetuptoolsbuild_meta.py»
, line 85, in _run_setup
exec(compile(code, file, ‘exec’), locals())
File «setup.py», line 20, in
from PyInstaller import version as version, HOMEPATH, PLATFORM
ModuleNotFoundError: No module named ‘PyInstaller’
Command «c:python37python.exe c:python37libsite-packagespip_vendorpep517_in_process.py get_requires_for_build_w
heel C:Userslinux10AppDataLocalTemptmpizpy5_3e» failed with error code 1 in C:Userslinux10AppDataLocalTemppi
p-install-k3ovc536pyinstaller
PS C:Userslinux10>
»’
The text was updated successfully, but these errors were encountered:
Источник
Почему выдает ошибку при скачивании pyinstaller??
Пытаюсь установить pyinstaller — не выходит, выдает ошибку, почему?
Вот текст ошибки в консоли:
P.S: У меня windows
C:UsersСергей>pip install pyinstaller
Collecting pyinstaller
Using cached https://files.pythonhosted.org/packages/03/32/0e0d.
7eed562496d154ef4460fd5cecfd78612ef39a0cc/PyInstaller-3.4.tar.gz
Installing build dependencies . done
Getting requirements to build wheel . done
Preparing wheel metadata . error
ERROR: Complete output from command ‘c:usersсергейappdatalocalprograms
pythonpython37-32python.exe’ ‘c:usersсергейappdatalocalprogramspythonp
thon37-32libsite-packagespip_vendorpep517_in_process.py’ prepare_metadata
for_build_wheel ‘C:UsersD899
1AppDataLocalTemptmpaik5ymov’:
ERROR: running dist_info
creating C:UsersD899
1AppDataLocalTemppip-install-u_s4d51xpyinstalle
pip-wheel-metadataPyInstaller.egg-info
writing C:UsersD899
1AppDataLocalTemppip-install-u_s4d51xpyinstaller
pip-wheel-metadataPyInstaller.egg-infoPKG-INFO
writing dependency_links to C:UsersD899
writing entry points to C:UsersD899
1AppDataLocalTemppip-install-u_s4
51xpyinstallerpip-wheel-metadataPyInstaller.egg-infoentry_points.txt
writing requirements to C:UsersD899
1AppDataLocalTemppip-install-u_s4
51xpyinstallerpip-wheel-metadataPyInstaller.egg-inforequires.txt
writing top-level names to C:UsersD899
1AppDataLocalTemppip-install-u
s4d51xpyinstallerpip-wheel-metadataPyInstaller.egg-infotop_level.txt
writing manifest file ‘C:UsersD899
1AppDataLocalTemppip-install-u_s4d
1xpyinstallerpip-wheel-metadataPyInstaller.egg-infoSOURCES.txt’
reading manifest file ‘C:UsersD899
1AppDataLocalTemppip-install-u_s4d
1xpyinstallerpip-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 0xf1 in positi
n 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 director
‘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:UsersD899
1AppDataLocalTemppip-install-u_s4d
1xpyinstallerpip-wheel-metadataPyInstaller.egg-infoSOURCES.txt’
creating ‘C:UsersD899
1AppDataLocalTemppip-install-u_s4d51xpyinstall
rpip-wheel-metadataPyInstaller.dist-info’
error: invalid command ‘bdist_wheel’
—————————————-
ERROR: Command «‘c:usersсергейappdatalocalprogramspythonpython37-32pyth
n.exe’ ‘c:usersсергейappdatalocalprogramspythonpython37-32libsite-pack
gespip_vendorpep517_in_process.py’ prepare_metadata_for_build_wheel ‘C:Use
sD899
1AppDataLocalTemptmpaik5ymov’» failed with error code 1 in C:Users
899
Источник
При попытке установить pip install pyinstaller выдаёт ошибку.
1AppDataLocalTemptmpp052ylnv’
cwd: C:UsersAACE
1AppDataLocalTemppip-install-03lg8um_pyinstaller
Complete output (36 lines):
running dist_info
creating C:UsersAACE
1AppDataLocalTemppip-install-03lg8um_pyinstallerpip-wheel-metadataPyInstaller.egg-info
writing C:UsersAACE
1AppDataLocalTemppip-install-03lg8um_pyinstallerpip-wheel-metadataPyInstaller.egg-infoPKG-INFO
writing dependency_links to C:UsersAACE
1AppDataLocalTemppip-install-03lg8um_pyinstallerpip-wheel-metadataPyInstaller.egg-infodependency_links.txt
writing entry points to C:UsersAACE
1AppDataLocalTemppip-install-03lg8um_pyinstallerpip-wheel-metadataPyInstaller.egg-infoentry_points.txt
writing requirements to C:UsersAACE
1AppDataLocalTemppip-install-03lg8um_pyinstallerpip-wheel-metadataPyInstaller.egg-inforequires.txt
writing top-level names to C:UsersAACE
1AppDataLocalTemppip-install-03lg8um_pyinstallerpip-wheel-metadataPyInstaller.egg-infotop_level.txt
writing manifest file ‘C:UsersAACE
1AppDataLocalTemppip-install-03lg8um_pyinstallerpip-wheel-metadataPyInstaller.egg-infoSOURCES.txt’
reading manifest file ‘C:UsersAACE
1AppDataLocalTemppip-install-03lg8um_pyinstallerpip-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 0xe4 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:UsersAACE
Источник
Unable to build no-binary :all: with use-pep517 #7831
Environment
- pip version: 20.0.2
- Python version: 3.8.1
- OS: macOS 10.15.3
Description
As distlib doesn’t publish a wheel, and because it has an implicit dependency on setuptools, I’m attempting to use —use-pep517 to force pip to ensure that setuptools/wheel are present for building, but when I do, pip fails to install wheel:
Expected behavior
pip should be able to assemble a build environment, either by disabling the no-binary option for those requirements or (preferably) by providing a bootstrap environment for these build dependencies.
Note: This may be an issue that can be addressed with wheel.
The text was updated successfully, but these errors were encountered:
I attempted to address this within wheel at pypa/wheel#344, but it seems that even declaring the build dependencies, pip attempts to install wheel from sdist and fails when setuptools isn’t already present.
I think pip probably should do something here to allow wheel to build when installed from source.
Is this not related to in-tree backend support (which pip doesn’t yet include, IIRC)? I thought the idea of that PEP update was precisely to allow projects to be defined in a way that meant they worked even if the user requested that everything was built from source.
If it’s not then I think we need to get a much better understanding of what pip is expected to do in the face of —no-binary :all: before deciding on a solution, rather than firefighting individual use cases when they arise.
I believe this issue is unrelated to in-tree backend support, though I do think that support is present in pip 20). The issue may be described thus:
Attempting to build any package with —use-pep517 and —no-binary :all: , pip downloads setuptools and wheel and attempts to build those (not from wheels). When attempting to build wheel , it fails because setuptools is not present.
It might just be the case that when using pep517 to build a package, it should also use pep517 to build the package’s dependencies also. except that wheel would need wheel , leading to an infinite loop.
we need to get a much better understanding of what pip is expected to do
Agreed. Maybe the answer is that no-binary :all: is unsupported.
It might just be the case that when using pep517 to build a package, it should also use pep517 to build the package’s dependencies also. except that wheel would need wheel, leading to an infinite loop.
Eww. Yes, that is a variant of the bootstrapping issue that in-tree backend support was addressing, but sufficiently different to be a new problem in its own right.
Maybe the answer is that no-binary :all: is unsupported.
That would be my strong preference. I honestly don’t see why pip has to be the tool to handle the «build everything from raw source» problem. But there were fairly strong voices arguing that we had to support that case, so I think they should be the ones defining the solution here.
In my use-case, I wasn’t concerned with the «build everything from raw source» use case, but was rather attempting to build a single package from source and I used —no-binary :all: as a shorthand for «please build from source». In my case, I could have used —no-binary distlib , which would have been more selective.
In the referenced vendoring issue, I learned that it’s not just system packagers that want to build from source but also packages that wish to verify licenses.
Attempting to build any package with —use-pep517 and —no-binary :all: , pip downloads setuptools and wheel and attempts to build those (not from wheels). When attempting to build wheel , it fails because setuptools is not present.
How about letting setuptools and wheel be hard runtime dependencies? Just like we don’t build pip when we want to use pip to build other wheels, then by the same logic, other build tools should not be built during the build process of other packages.
I think the whole idea of build isolation is to ultimately remove setuptools and wheel from needing to present in the runtime environment, because we can pull it if needed in the isolated build environment instead.
Thank you @uranusjr, I totally missed that point.
if you want to install chatterbot
pip install chatterbot —no-binary :all:
you should use «pip install chatterbot —no-binary :all:»
before that run under three codes and install it.
conda remove —force PyYAML
pip install pint
pip install mathparse
I ran into this issue again today, this time with pip download . I was attempting to download the sources for xattr :
Because I’m trying to be a good citizen and operate without setuptools being installed, that operation failed with:
ImportError: cannot import name ‘setup’ from ‘setuptools’ (unknown location)
When setuptools tries to build from source, which tries to build wheel from source, and setuptools isn’t present.
«, line 34, in File «/private/var/folders/sx/n5gkrgfx6zd91ymxr2sr9wvw00n8zm/T/pip-install-eca5mryf/wheel_44b7c370255345dd8b9fc33a8f13d4d7/setup.py», line 2, in from setuptools import setup ImportError: cannot import name ‘setup’ from ‘setuptools’ (unknown location) [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × pip subprocess to install backend dependencies did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip.»>
I tried instead to employ pep517, but that failed similarly:
«, line 34, in File «/private/var/folders/sx/n5gkrgfx6zd91ymxr2sr9wvw00n8zm/T/pip-install-_c2chljg/wheel_1e5d23c0a353431cac90e861087cc190/setup.py», line 2, in from setuptools import setup ImportError: cannot import name ‘setup’ from ‘setuptools’ (unknown location) [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × pip subprocess to install backend dependencies did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip.»>
The only way I know to make it work is to pre-install setuptools (works with or without —use-pep517 ). I was surprised that —use-pep517 succeeded.
Источник
$ 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
-
Показать ещё
Загружается…
09 февр. 2023, в 23:14
1500 руб./за проект
09 февр. 2023, в 23:00
1500 руб./за проект
09 февр. 2023, в 22:06
500 руб./за проект
Минуточку внимания
0 / 0 / 0 Регистрация: 31.10.2019 Сообщений: 7 |
|
1 |
|
Прошу подсказать с решение проблемы31.10.2019, 10:36. Показов 19035. Ответов 11
при команде pip install pyinstaller вылазит следующее Кликните здесь для просмотра всего текста
Collecting pyinstaller warning: no files found matching ‘news_template.rst’
Подскажите пожалуйста , что это такое и как с этим бороться
__________________
0 |
954 / 340 / 113 Регистрация: 04.08.2018 Сообщений: 2,534 |
|
31.10.2019, 10:37 |
2 |
‘C:Users46AD~1 Странное именование пользователя, возможно из-за этого?
0 |
0 / 0 / 0 Регистрация: 31.10.2019 Сообщений: 7 |
|
31.10.2019, 10:44 [ТС] |
3 |
так как же это исправить ? Добавлено через 5 минут
0 |
954 / 340 / 113 Регистрация: 04.08.2018 Сообщений: 2,534 |
|
31.10.2019, 10:46 |
4 |
CyberDjangoJack, переименовать пользователя. Добавлено через 1 минуту У вас есть операционная система. В ней есть пользователи. Вам надо переименовать пользователя если он именуется вот так: 46AD~1, если нет, то видимо пользователь написан на русском языке, переименуйте на английский.
0 |
0 / 0 / 0 Регистрация: 31.10.2019 Сообщений: 7 |
|
31.10.2019, 10:46 [ТС] |
5 |
Где и каким образом ?!!?!??!
0 |
0 / 0 / 0 Регистрация: 31.10.2019 Сообщений: 7 |
|
31.10.2019, 10:51 [ТС] |
7 |
БОЛЬЩОЕ СПАСИБО ВЫ МНЕ ОЧЕНЬ ПОМОГЛИ !!!!!!!!!!!!!!!!!!!!!!!!!!
0 |
954 / 340 / 113 Регистрация: 04.08.2018 Сообщений: 2,534 |
|
31.10.2019, 10:56 |
9 |
untyped, да тут сразу было понятно, что человек не хочет пользоваться гугло, я уже испугался, что гугл отключили. Вот, помог. Добавлено через 24 секунды
0 |
0 / 0 / 2 Регистрация: 21.12.2010 Сообщений: 32 |
|
23.08.2020, 00:35 |
10 |
В итоге мне помогло вот это: Откати версию PIP до 18.1 Пробуй установить pyinstaller еще раз Видимо что-то в свежем PIP конфликтует.
0 |
Alli_Lupin |
23.08.2020, 13:10
|
Не по теме: profdesigner, что-то вам со всеми проблемами откат пипа помогает
0 |
0 / 0 / 2 Регистрация: 21.12.2010 Сообщений: 32 |
|
23.08.2020, 14:26 |
12 |
По итогу pyinstall не работал с Python 3.8. Костыль с откатом Pip позволил установить pyinstall на 3.8, но при этом он не работал. Поэтому без вариантов откатываться на версию Python ниже, пока разработчики pyinstall не начнут поддерживать версию питона выше. Добавлено через 18 минут
0 |
IT_Exp Эксперт 87844 / 49110 / 22898 Регистрация: 17.06.2006 Сообщений: 92,604 |
23.08.2020, 14:26 |
Помогаю со студенческими работами здесь Прошу подсказать Прошу подсказать Прошу подсказать Прошу подсказать по апгрейду Искать еще темы с ответами Или воспользуйтесь поиском по форуму: 12 |
Issue
Error while installing manimce, I have been trying to install manimce library on windows subsystem for linux and after running
pip install manimce
Collecting manimce
Downloading manimce-0.1.1.post2-py3-none-any.whl (249 kB)
|████████████████████████████████| 249 kB 257 kB/s
Collecting Pillow
Using cached Pillow-8.4.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.1 MB)
Collecting scipy
Using cached scipy-1.7.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (39.3 MB)
Collecting colour
Using cached colour-0.1.5-py2.py3-none-any.whl (23 kB)
Collecting pangocairocffi<0.5.0,>=0.4.0
Downloading pangocairocffi-0.4.0.tar.gz (17 kB)
Preparing metadata (setup.py) ... done
Collecting numpy
Using cached numpy-1.21.5-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (15.7 MB)
Collecting pydub
Using cached pydub-0.25.1-py2.py3-none-any.whl (32 kB)
Collecting pygments
Using cached Pygments-2.10.0-py3-none-any.whl (1.0 MB)
Collecting cairocffi<2.0.0,>=1.1.0
Downloading cairocffi-1.3.0.tar.gz (88 kB)
|████████████████████████████████| 88 kB 160 kB/s
Preparing metadata (setup.py) ... done
Collecting tqdm
Using cached tqdm-4.62.3-py2.py3-none-any.whl (76 kB)
Collecting pangocffi<0.9.0,>=0.8.0
Downloading pangocffi-0.8.0.tar.gz (33 kB)
Preparing metadata (setup.py) ... done
Collecting pycairo<2.0,>=1.19
Using cached pycairo-1.20.1.tar.gz (344 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting progressbar
Downloading progressbar-2.5.tar.gz (10 kB)
Preparing metadata (setup.py) ... done
Collecting rich<7.0,>=6.0
Using cached rich-6.2.0-py3-none-any.whl (150 kB)
Collecting cffi>=1.1.0
Using cached cffi-1.15.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (446 kB)
Collecting commonmark<0.10.0,>=0.9.0
Using cached commonmark-0.9.1-py2.py3-none-any.whl (51 kB)
Collecting typing-extensions<4.0.0,>=3.7.4
Using cached typing_extensions-3.10.0.2-py3-none-any.whl (26 kB)
Collecting colorama<0.5.0,>=0.4.0
Using cached colorama-0.4.4-py2.py3-none-any.whl (16 kB)
Collecting pycparser
Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
Building wheels for collected packages: cairocffi, pangocairocffi, pangocffi, pycairo, progressbar
Building wheel for cairocffi (setup.py) ... done
Created wheel for cairocffi: filename=cairocffi-1.3.0-py3-none-any.whl size=89650 sha256=afc73218cc9fa1d844d7165f598e2be0428598166b4c3ed9de5bbdc94a0a6977
Stored in directory: /home/yusifer_zendric/.cache/pip/wheels/f3/97/83/8022b9237866102e18d1b7ac0a269769e6fccba0f63dceb9b7
Building wheel for pangocairocffi (setup.py) ... done
Created wheel for pangocairocffi: filename=pangocairocffi-0.4.0-py3-none-any.whl size=19283 sha256=54399796259c6e24f9ab56c5747ab273dcf97fb6fed3e7b54935f9ac49351d50
Stored in directory: /home/yusifer_zendric/.cache/pip/wheels/60/58/92/507a12a5044f7fcda6f4dfd8e0a607cc1fe957bc0dea885906
Building wheel for pangocffi (setup.py) ... done
Created wheel for pangocffi: filename=pangocffi-0.8.0-py3-none-any.whl size=37899 sha256=bea348af93696816b046dd901aa60d29a464460c5faac67628eb7e1ea7d1807d
Stored in directory: /home/yusifer_zendric/.cache/pip/wheels/c4/df/6d/e9d0f79b1545f6e902cc22773b1429de7a5efc240b891ee009
Building wheel for pycairo (pyproject.toml) ... error
ERROR: Command errored out with exit status 1:
command: /home/yusifer_zendric/manim_ce/venv/bin/python /home/yusifer_zendric/manim_ce/venv/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmpuguwzu3u
cwd: /tmp/pip-install-l4hqdegr/pycairo_f4d80b8f3e4840a3802342825adcdff5
Complete output (12 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.8
creating build/lib.linux-x86_64-3.8/cairo
copying cairo/__init__.py -> build/lib.linux-x86_64-3.8/cairo
copying cairo/__init__.pyi -> build/lib.linux-x86_64-3.8/cairo
copying cairo/py.typed -> build/lib.linux-x86_64-3.8/cairo
running build_ext
'pkg-config' not found.
Command ['pkg-config', '--print-errors', '--exists', 'cairo >= 1.15.10']
----------------------------------------
ERROR: Failed building wheel for pycairo
Building wheel for progressbar (setup.py) ... done
Created wheel for progressbar: filename=progressbar-2.5-py3-none-any.whl size=12074 sha256=7290ef8de5dd955bf756b90130f400dd19c2cc9ea050a5a1dce2803440f581e2
Stored in directory: /home/yusifer_zendric/.cache/pip/wheels/2c/67/ed/d84123843c937d7e7f5ba88a270d11036473144143355e2747
Successfully built cairocffi pangocairocffi pangocffi progressbar
Failed to build pycairo
ERROR: Could not build wheels for pycairo, which is required to install pyproject.toml-based projects
(venv) [email protected]:~/manim_ce$
(venv) [email protected]:~/manim_ce$ pip install manim_ce
ERROR: Could not find a version that satisfies the requirement manim_ce (from versions: none)
ERROR: No matching distribution found for manim_ce
(venv) [email protected]:~/manim_ce$ manim example_scenes/basic.py -pql
Command 'manim' not found, did you mean:
command 'maim' from deb maim (5.5.3-1build1)
Try: sudo apt install <deb name>
(venv) [email protected]:~/manim_ce$ sudo apt-get install manim
[sudo] password for yusifer_zendric:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package manim
(venv) [email protected]:~/manim_ce$ pip3 install manimlib
Collecting manimlib
Downloading manimlib-0.2.0.tar.gz (4.8 MB)
|████████████████████████████████| 4.8 MB 498 kB/s
Preparing metadata (setup.py) ... done
Collecting Pillow
Using cached Pillow-8.4.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.1 MB)
Collecting argparse
Downloading argparse-1.4.0-py2.py3-none-any.whl (23 kB)
Collecting colour
Using cached colour-0.1.5-py2.py3-none-any.whl (23 kB)
Collecting numpy
Using cached numpy-1.21.5-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (15.7 MB)
Collecting opencv-python
Downloading opencv_python-4.5.4.60-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (60.3 MB)
|████████████████████████████████| 60.3 MB 520 kB/s
Collecting progressbar
Using cached progressbar-2.5-py3-none-any.whl
Collecting pycairo
Using cached pycairo-1.20.1.tar.gz (344 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting pydub
Using cached pydub-0.25.1-py2.py3-none-any.whl (32 kB)
Collecting pygments
Using cached Pygments-2.10.0-py3-none-any.whl (1.0 MB)
Collecting scipy
Using cached scipy-1.7.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (39.3 MB)
Collecting tqdm
Using cached tqdm-4.62.3-py2.py3-none-any.whl (76 kB)
Building wheels for collected packages: manimlib, pycairo
Building wheel for manimlib (setup.py) ... done
Created wheel for manimlib: filename=manimlib-0.2.0-py3-none-any.whl size=212737 sha256=27efe2c226d80cfe5663928e980d3e5f5a164d8e9d0aacea5014d37ffdedb76a
Stored in directory: /home/yusifer_zendric/.cache/pip/wheels/87/36/c1/2db5ed5de9908034108f3c39538cd3367445d9cec01e7c8c23
Building wheel for pycairo (pyproject.toml) ... error
ERROR: Command errored out with exit status 1:
command: /home/yusifer_zendric/manim_ce/venv/bin/python /home/yusifer_zendric/manim_ce/venv/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmp5o2970su
cwd: /tmp/pip-install-sxxp3lw2/pycairo_d372a62d0c6b4c4484391402d21485e1
Complete output (12 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.8
creating build/lib.linux-x86_64-3.8/cairo
copying cairo/__init__.py -> build/lib.linux-x86_64-3.8/cairo
copying cairo/__init__.pyi -> build/lib.linux-x86_64-3.8/cairo
copying cairo/py.typed -> build/lib.linux-x86_64-3.8/cairo
running build_ext
'pkg-config' not found.
Command ['pkg-config', '--print-errors', '--exists', 'cairo >= 1.15.10']
----------------------------------------
ERROR: Failed building wheel for pycairo
Successfully built manimlib
Failed to build pycairo
ERROR: Could not build wheels for pycairo, which is required to install pyproject.toml-based projects
all the libraries are installed accept the pycairo library. It’s just showing this to install pyproject.toml error. Infact I have already done pip install pyproject.toml and it is installed then also it’s showing the same error.
Solution
apt-get install sox ffmpeg libcairo2 libcairo2-dev
apt-get install texlive-full
pip3 install manimlib # or pip install manimlib
Then:
pip3 install manimce # or pip install manimce
And everything works.
Answered By — Yevgeniy Kosmak
Original address: https://blog.csdn.net/qq_37598092/Article/details/123652853
When using the PIP to install the Cartopy library, an error occurred: getting Requirements to Build Wheel Did NOT Run SuccessFully.
Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [3 lines of output]
setup.py:117: UserWarning: Unable to determine GEOS version. Ensure you have 3.7.2 or later installed, or installation may fail.
warnings.warn(
Proj 8.0.0 must be installed.
enter:
Report:
1 D:apppythonpython310Scripts>pip install Cartopy 2 WARNING: Ignoring invalid distribution -ip (d:apppythonpython310libsite-packages) 3 WARNING: Ignoring invalid distribution -ip (d:apppythonpython310libsite-packages) 4 Collecting Cartopy 5 Using cached Cartopy-0.20.2.tar.gz (10.8 MB) 6 Installing build dependencies ... done 7 Getting requirements to build wheel ... error 8 error: subprocess-exited-with-error 9 10 × Getting requirements to build wheel did not run successfully. 11 │ exit code: 1 12 ╰─> [3 lines of output] 13 setup.py:117: UserWarning: Unable to determine GEOS version. Ensure you have 3.7.2 or later installed, or installation may fail. 14 warnings.warn( 15 Proj 8.0.0 must be installed. 16 [end of output] 17 18 note: This error originates from a subprocess, and is likely not a problem with pip. 19 error: subprocess-exited-with-error 20 21 × Getting requirements to build wheel did not run successfully. 22 │ exit code: 1 23 ╰─> See above for output. 24 25 note: This error originates from a subprocess, and is likely not a problem with pip. 26 WARNING: Ignoring invalid distribution -ip (d:apppythonpython310libsite-packages) 27 WARNING: Ignoring invalid distribution -ip (d:apppythonpython310libsite-packages)
So, try to download and install the WHL file at https://www.lfd.uci.edu/~gohlke/pythonlibs/#numba:
enter:
1 pip install Cartopy-0.20.2-pp38-pypy38_pp73-win_amd64.whl
Successful installation tips:
1 D:apppythonpython310Scripts>pip install Cartopy-0.20.2-cp310-cp310-win_amd64.whl 2 WARNING: Ignoring invalid distribution -ip (d:apppythonpython310libsite-packages) 3 WARNING: Ignoring invalid distribution -ip (d:apppythonpython310libsite-packages) 4 Processing d:apppythonpython310scriptscartopy-0.20.2-cp310-cp310-win_amd64.whl 5 Collecting shapely>=1.6.4 6 Downloading Shapely-1.8.1.post1-cp310-cp310-win_amd64.whl (1.3 MB) 7 ---------------------------------------- 1.3/1.3 MB 2.2 MB/s eta 0:00:00 8 Requirement already satisfied: pyshp>=2.1 in d:apppythonpython310libsite-packages (from Cartopy==0.20.2) (2.2.0) 9 Requirement already satisfied: numpy>=1.18 in d:apppythonpython310libsite-packages (from Cartopy==0.20.2) (1.22.0) 10 Requirement already satisfied: matplotlib>=3.1 in d:apppythonpython310libsite-packages (from Cartopy==0.20.2) (3.5.1) 11 Requirement already satisfied: pyproj>=3.0.0 in d:apppythonpython310libsite-packages (from Cartopy==0.20.2) (3.3.0) 12 Requirement already satisfied: kiwisolver>=1.0.1 in d:apppythonpython310libsite-packages (from matplotlib>=3.1->Cartopy==0.20.2) (1.3.2) 13 Requirement already satisfied: cycler>=0.10 in d:apppythonpython310libsite-packages (from matplotlib>=3.1->Cartopy==0.20.2) (0.11.0) 14 Requirement already satisfied: packaging>=20.0 in d:apppythonpython310libsite-packages (from matplotlib>=3.1->Cartopy==0.20.2) (21.3) 15 Requirement already satisfied: pillow>=6.2.0 in d:apppythonpython310libsite-packages (from matplotlib>=3.1->Cartopy==0.20.2) (9.0.0) 16 Requirement already satisfied: python-dateutil>=2.7 in d:apppythonpython310libsite-packages (from matplotlib>=3.1->Cartopy==0.20.2) (2.8.2) 17 Requirement already satisfied: fonttools>=4.22.0 in d:apppythonpython310libsite-packages (from matplotlib>=3.1->Cartopy==0.20.2) (4.28.5) 18 Requirement already satisfied: pyparsing>=2.2.1 in d:apppythonpython310libsite-packages (from matplotlib>=3.1->Cartopy==0.20.2) (3.0.6) 19 Requirement already satisfied: certifi in d:apppythonpython310libsite-packages (from pyproj>=3.0.0->Cartopy==0.20.2) (2021.10.8) 20 Requirement already satisfied: six>=1.5 in d:apppythonpython310libsite-packages (from python-dateutil>=2.7->matplotlib>=3.1->Cartopy==0.20.2) (1.16.0) 21 WARNING: Ignoring invalid distribution -ip (d:apppythonpython310libsite-packages) 22 Installing collected packages: shapely, Cartopy 23 WARNING: Ignoring invalid distribution -ip (d:apppythonpython310libsite-packages) 24 WARNING: Ignoring invalid distribution -ip (d:apppythonpython310libsite-packages) 25 Successfully installed Cartopy-0.20.2 shapely-1.8.1.post1 26 WARNING: Ignoring invalid distribution -ip (d:apppythonpython310libsite-packages) 27 WARNING: Ignoring invalid distribution -ip (d:apppythonpython310libsite-packages)
However, when importing the Cartopy module in Pycharm, an error:
1 ImportError: DLL Load Failed: The specified module is not found.
After the information is found online, the reason should be that the CARTOPY module is not correct.
solution
Cartopy package Dependent library has: Pyproj, Pillow, Pyshp, Shapely
After unloading these libraries, use WHL to reinstall.
1, uninstall the original dependency library
1 pip uninstall Pillow 2 pip uninstall pyshp 3 pip uninstall Shapely 4 pip uninstall pyproj
2, in https://www.lfd.uci.edu/~gohlke/pythonlibs/#numba Find and download these libraries and your computer’s corresponding version
Download here:
Pillow-9.0.1-cp310-cp310-win_amd64.whl
pyproj-3.3.0-cp310-cp310-win_amd64.whl
pyshp-2.2.0-py3-none-any.whl
Shapely-1.8.1.post1-cp310-cp310-win_amd64.whl
3, installation library
1 pip install --user Shapely-1.8.1.post1-cp310-cp310-win_amd64.whl 2 3 pip install --user pyproj-3.3.0-cp310-cp310-win_amd64.whl 4 5 pip install --user pyshp-2.2.0-py3-none-any.whl 6 7 pip install --user Pillow-9.0.1-cp310-cp310-win_amd64.whl
After the installation is complete, it is no longer reported when importing the Cartopy module in Pycharm.
problem solved.
————————————————
Copyright Notice: This article is the original article of CSDN Blogger «LoretTawang», follows the CC 4.0 BY-SA copyright agreement, please attach the original link and this statement.
Original link: https://blog.csdn.net/qq_37598092/Article/details/123652853