admin管理员组文章数量:1642444
错误信息如下:
[root@ecs-6af3 ~]# pip3 install pyinstaller==4.0
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.
Looking in indexes: https://mirrors.aliyun/pypi/simple/
Collecting pyinstaller==4.0
Downloading https://mirrors.aliyun/pypi/packages/82/96/21ba3619647bac2b34b4996b2dbbea8e74a703767ce24192899d9153c058/pyinstaller-4.0.tar.gz (3.5MB)
100% |████████████████████████████████| 3.5MB 23.7MB/s
Installing build dependencies ... done
Requirement already satisfied: setuptools in /usr/lib/python3.7/site-packages (from pyinstaller==4.0) (40.4.3)
Collecting altgraph (from pyinstaller==4.0)
Downloading https://mirrors.aliyun/pypi/packages/84/3f/1a5c9bef54cac9bf41edd6f4aaf61cd52ed578e10ccc607e0278012cb4a5/altgraph-0.17.2-py2.py3-none-any.whl
Collecting pyinstaller-hooks-contrib>=2020.6 (from pyinstaller==4.0)
Downloading https://mirrors.aliyun/pypi/packages/fe/73/1b586d9fa51b074ab198638dae6db6ba5fa63d8225bd380c612bda01c5ef/pyinstaller_hooks_contrib-2021.3-py2.py3-none-any.whl (200kB)
100% |████████████████████████████████| 204kB 44.9MB/s
Installing collected packages: altgraph, pyinstaller-hooks-contrib, pyinstaller
Running setup.py install for pyinstaller ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-nbtg27co/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-xk5mz8fi/install-record.txt --single-version-externally-managed --compile:
/tmp/pip-build-env-u1lo9p1r/lib/python3.7/site-packages/setuptools/__init__.py:151: SetuptoolsDeprecationWarning: setup_requires is deprecated. Supply build dependencies using PEP 517 pyproject.toml build-requires.
SetuptoolsDeprecationWarning,
running install
/tmp/pip-build-env-u1lo9p1r/lib/python3.7/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
setuptools.SetuptoolsDeprecationWarning,
running build
running build_bootloader
No precompiled bootloader found. Trying to compile it for you ...
Setting top to : /tmp/pip-install-nbtg27co/pyinstaller/bootloader
Setting out to : /tmp/pip-install-nbtg27co/pyinstaller/bootloader/build
Python Version : 3.7.4 (default, Mar 24 2020, 19:20:18) [GCC 8.3.1 20190507 (Red Hat 8.3.1-4)]
Checking for 'gcc' (C compiler) : /usr/bin/gcc
Checking size of pointer : 8
Platform : Linux-64bit detected based on compiler
Checking for compiler flags -m64 : no
Checking for linker flags -m64 : no
Checking for library dl : yes
Checking for library m : yes
Checking for library z : not found
The configuration failed
(complete log in /tmp/pip-install-nbtg27co/pyinstaller/bootloader/build/config.log)
ERROR: Failed compiling the bootloader. Please compile manually and rerun setup.py
----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-nbtg27co/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-xk5mz8fi/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-nbtg27co/pyinstaller/
解决方法:
yum install zlib-devel
验证
[root@ecs-6af3 ~]# pip3 install pyinstaller==4.0
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.
Looking in indexes: https://mirrors.aliyun/pypi/simple/
Collecting pyinstaller==4.0
Using cached https://mirrors.aliyun/pypi/packages/82/96/21ba3619647bac2b34b4996b2dbbea8e74a703767ce24192899d9153c058/pyinstaller-4.0.tar.gz
Installing build dependencies ... done
Requirement already satisfied: setuptools in /usr/lib/python3.7/site-packages (from pyinstaller==4.0) (40.4.3)
Requirement already satisfied: altgraph in /usr/local/lib/python3.7/site-packages (from pyinstaller==4.0) (0.17.2)
Requirement already satisfied: pyinstaller-hooks-contrib>=2020.6 in /usr/local/lib/python3.7/site-packages (from pyinstaller==4.0) (2021.3)
Installing collected packages: pyinstaller
Running setup.py install for pyinstaller ... done
Successfully installed pyinstaller-4.0
解决无法安装pandas
pip3 install python-dev
版权声明:本文标题:解决麒麟系统arm环境无法安装pyinstaller的错误:Checking for library z : not found 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/dianzi/1729339657a1197381.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论