python - 无法在 chromebook 上安装 auto-py-to-exe
问题描述
每当我尝试在 pycharm 中的 Chromebook 上安装 auto-py-to-exe 时,我都会收到此错误消息
Collecting auto-py-to-exe
Using cached https://files.pythonhosted.org/packages/0f/6b/1dbe7cfa72709b84af83726fed709db5f9be5f6cfe0e6f4b8c881318b71d/auto_py_to_exe-2.10.0-py2.py3-none-any.whl
Collecting pyinstaller>=4.1 (from auto-py-to-exe)
Using cached https://files.pythonhosted.org/packages/a9/d9/9fdfb0ac2354d059e466d562689dbe53a23c4062019da2057f0eaed635e0/pyinstaller-4.5.1.tar.gz
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Requirement already satisfied: Eel==0.12.4 in /usr/local/lib/python3.7/dist-packages (from auto-py-to-exe) (0.12.4)
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from pyinstaller>=4.1->auto-py-to-exe) (40.8.0)
Requirement already satisfied: altgraph in /usr/local/lib/python3.7/dist-packages (from pyinstaller>=4.1->auto-py-to-exe) (0.17)
Requirement already satisfied: pyinstaller-hooks-contrib>=2020.6 in /usr/local/lib/python3.7/dist-packages (from pyinstaller>=4.1->auto-py-to-exe) (2021.3)
Requirement already satisfied: importlib-metadata in /usr/local/lib/python3.7/dist-packages (from pyinstaller>=4.1->auto-py-to-exe) (4.8.1)
Requirement already satisfied: bottle in /usr/local/lib/python3.7/dist-packages (from Eel==0.12.4->auto-py-to-exe) (0.12.19)
Requirement already satisfied: bottle-websocket in /usr/local/lib/python3.7/dist-packages (from Eel==0.12.4->auto-py-to-exe) (0.2.9)
Requirement already satisfied: whichcraft in /usr/local/lib/python3.7/dist-packages (from Eel==0.12.4->auto-py-to-exe) (0.6.1)
Requirement already satisfied: future in /usr/local/lib/python3.7/dist-packages (from Eel==0.12.4->auto-py-to-exe) (0.18.2)
Requirement already satisfied: typing-extensions>=3.6.4; python_version < "3.8" in /usr/local/lib/python3.7/dist-packages (from importlib-metadata->pyinstaller>=4.1->auto-py-to-exe) (3.10.0.2)
Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.7/dist-packages (from importlib-metadata->pyinstaller>=4.1->auto-py-to-exe) (3.5.0)
Requirement already satisfied: gevent-websocket in /usr/local/lib/python3.7/dist-packages (from bottle-websocket->Eel==0.12.4->auto-py-to-exe) (0.10.1)
Requirement already satisfied: gevent in /usr/local/lib/python3.7/dist-packages (from gevent-websocket->bottle-websocket->Eel==0.12.4->auto-py-to-exe) (21.8.0)
Requirement already satisfied: zope.event in /usr/local/lib/python3.7/dist-packages (from gevent->gevent-websocket->bottle-websocket->Eel==0.12.4->auto-py-to-exe) (4.5.0)
Requirement already satisfied: zope.interface in /usr/local/lib/python3.7/dist-packages (from gevent->gevent-websocket->bottle-websocket->Eel==0.12.4->auto-py-to-exe) (5.4.0)
Requirement already satisfied: greenlet<2.0,>=1.1.0; platform_python_implementation == "CPython" in /usr/local/lib/python3.7/dist-packages (from gevent->gevent-websocket->bottle-websocket->Eel==0.12.4->auto-py-to-exe) (1.1.1)
Building wheels for collected packages: pyinstaller
Running setup.py bdist_wheel for pyinstaller: started
Running setup.py bdist_wheel for pyinstaller: finished with status 'error'
Complete output from command /usr/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-qej5iic4/pyinstaller/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-ukjc0sh9 --python-tag cp37:
running bdist_wheel
running build
running build_bootloader
No precompiled bootloader found. Trying to compile it for you ...
Setting top to : /tmp/pip-install-qej5iic4/pyinstaller/bootloader
Setting out to : /tmp/pip-install-qej5iic4/pyinstaller/bootloader/build
Python Version : 3.7.3 (default, Jan 22 2021, 20:04:44) [GCC 8.3.0]
Checking for 'gcc' (C compiler) : /usr/bin/gcc
Checking size of pointer : 8
Platform : Linux-64bit-intel detected based on compiler
Checking for compiler flags -m64 : yes
Checking for linker flags -m64 : yes
Checking for library dl : yes
Checking for library pthread : yes
Checking for library m : yes
Checking for library z : no
The zlib development package is either missing or the shared library cannot be linked against. For security (and marginally better filesize), you should install the zlib-dev or zlib-devel packages with your system package manager and try again. If you cannot do this, for example distributions such as OpenWRT use sstrip on libraries making linking impossible, then either use the --static-zlib option or set the PYI_STATIC_ZLIB=1 environment variable. If you are installing directly with pip, then use the environment variable.
(complete log in /tmp/pip-install-qej5iic4/pyinstaller/bootloader/build/config.log)
ERROR: Failed compiling the bootloader. Please compile manually and rerun setup.py
----------------------------------------
Running setup.py clean for pyinstaller
Failed to build pyinstaller
Installing collected packages: pyinstaller, auto-py-to-exe
Running setup.py install for pyinstaller: started
Running setup.py install for pyinstaller: finished with status 'error'
Complete output from command /usr/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-qej5iic4/pyinstaller/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-q0asp9sq/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_bootloader
No precompiled bootloader found. Trying to compile it for you ...
Setting top to : /tmp/pip-install-qej5iic4/pyinstaller/bootloader
Setting out to : /tmp/pip-install-qej5iic4/pyinstaller/bootloader/build
Python Version : 3.7.3 (default, Jan 22 2021, 20:04:44) [GCC 8.3.0]
Checking for 'gcc' (C compiler) : /usr/bin/gcc
Checking size of pointer : 8
Platform : Linux-64bit-intel detected based on compiler
Checking for compiler flags -m64 : yes
Checking for linker flags -m64 : yes
Checking for library dl : yes
Checking for library pthread : yes
Checking for library m : yes
Checking for library z : no
The zlib development package is either missing or the shared library cannot be linked against. For security (and marginally better filesize), you should install the zlib-dev or zlib-devel packages with your system package manager and try again. If you cannot do this, for example distributions such as OpenWRT use sstrip on libraries making linking impossible, then either use the --static-zlib option or set the PYI_STATIC_ZLIB=1 environment variable. If you are installing directly with pip, then use the environment variable.
(complete log in /tmp/pip-install-qej5iic4/pyinstaller/bootloader/build/config.log)
ERROR: Failed compiling the bootloader. Please compile manually and rerun setup.py
----------------------------------------
Failed building wheel for pyinstaller
Command "/usr/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-qej5iic4/pyinstaller/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-q0asp9sq/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-qej5iic4/pyinstaller/
我该怎么办?
解决方案
推荐阅读
- css - ReactJS - 如何设置父级样式?
- docker - 如何在 VS Code devcontainer 中运行 docker-compose
- python - __str__ 返回非字符串(NoneType 类型)django
- php - PHP 邮件程序在本地使用 utf-8 但不在主机上
- apache-spark - 将 Spark 3.1.1 作为 hive 的 3.1.2 引擎运行时出错 ( java.lang.NoClassDefFoundError: org/apache/spark/unsafe/array/ByteArrayMethods )
- git - 有没有办法只提交修改过的文件,但我已经添加了行(未删除)
- python - 如何在 IE 中使用 selenium 和 python 处理 SSL 证书?
- flutter - 如何在颤动中创建悬停按钮
- flutter - 有没有更好的选择无需编码即可将 xd ui 转换为颤振
- android - 如何将资产中的字体用于自定义键盘