pyinstall 打包报错
关于使用pyinstaller 打包报错
我的python安装位置为
安装位置==/usr/local/python3==关于我的报错环境属于linux
我的pyinstaller 是使用pip 安装的
pip install pyinstaller在使用pycharm 打包的时候,报错
打包就告诉我缺少什么 关于python的 iso包 我当时有全磁盘搜索该文件,没有找到上面的图片有提示 python需要重新编译 编译之前需要安装一些包
命令为 pip install python3-devel
pip install python-devel安装包成功之后需要重新编译python
命令为
./configure --prefix=/usr/local/python3/ --enable-shared
enable-shared
为开启一些动态依赖库 供python使用
即是说,在大多数 Unix 系统上(除了 Mac OS X 之外),共享库的路径不是绝对路径。 因此,如果我们在非标准位置安装 Python,为了不和相同版本的系统 Python 产生干扰,我们需要配置非标准位置安装的 Python共享库的路径,或者通过设置运行时的环境变量,如 LD_LIBRARY_PATH。 为了避免这个问题,我们最好避免使用 --enable-shared。
- 编译完进行安装
make && make install
安装完成之后,去python的安装努力去查询 .iso的文件是否存在
我的重新编译安装之后已经存在
为了能找到so文件
编辑配置文件
echo “/usr/local/python3/lib/” >> /etc/ld.so.conf
ldconfig
这样在重新使用pyinstaller 打包就正常了
- 如果打包还是报异常, 说明编译还是有点问题
pip install python3-develpip install python-devel./configure --prefix=/usr/local/python3/ --enable-shared./configure --prefix=/usr/local/python3/ --enable-framework./configure --prefix=/usr/local/python3 --enable-optimizations
最后进行安装
make && make install
打包成功
pyinstall 打包报错相关推荐
- Pyinstall打包报错
1. 在使用pyinstaller的时候,我们通常使用 pyinstaller -F -w xxxx.py的命令来将py代码打包成独立可执行的exe文件,但是今天遇到一个问题,在打包后,运行报错: & ...
- Maven 新版本 3.8.1 打包报错 maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories
Maven 新版本 3.8.1 打包报错 maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories [ ...
- linux安装python库报错pywin32_完美解决pyinstaller打包报错找不到依赖pypiwin32或pywin32-ctypes的错误...
报错信息 最近闲来无事,用python的tkinter库开发了一款带日程提醒的万年历桌面程序.在程序开发结束开始打包时,却发现一直报错 PyInstaller cannot check for ass ...
- maven打包报错You have to use a classifier to attach supplemental artifacts to the project instead of rep
maven打包报错You have to use a classifier to attach supplemental artifacts to the project instead of rep ...
- maven 打包报错 surefire-reports for the individual test results.
Eclipse Maven打包报错 [ERROR] [ERROR] Please refer to D:\File\workspace\izh-common-util\target\surefire- ...
- python的moviepy库 打包 报错: ‘moviepy.audio.fx.all‘ has no attribute ‘audio_fade 的解决办法
本篇文章主要讲解python的moviepy库 打包 报错: 'moviepy.audio.fx.all' has no attribute 'audio_fade 的解决办法 日期:2022年3月9 ...
- Vue开启Gzip打包异常:webpack打包报错Cannot read property ‘emit‘ of undefined
Vue开启Gzip打包异常:webpack打包报错Cannot read property 'emit' of undefined 相关代码 const CompressionPlugin = req ...
- maven打包报错找不到符号,由于找不到类中方法的解决思路
maven打包报错找不到符号,若pom文件引用正常,报错的类有修改能正常启动执行程序,很有可能因为该类属于公共工具类,在外层目录,通过pom引用的,修改后工具类后,打包时没有将其重新打包,导致该出引用 ...
- yarn打包报错:error during build: Error: Assigning to rvalue (Note that you need plugins to import files
欢迎关注csdn前端领域博主: 前端小王hs email: 337674757@qq.com 前端交流群: 598778642 error during build: Error: Assigning ...
最新文章
- java 贝叶斯抠图_贝叶斯抠图
- 大多数Web浏览器中都可以使用PUT,DELETE,HEAD等方法吗?
- TCP之三次握手四次挥手 1
- Known Notation 39届亚洲赛牡丹江站K题
- java中的内省 (Introspector)
- 新安江遗传算法c语言,基于遗传算法的新安江模型参数优化率定(四)
- Oracle中的序列 sequence 用法
- Java线程池示例:任务窃取线程池WorkStealingPool
- POJ - 1741 Tree(点分治模板题)
- 免otp动态密码登录堡垒机
- 「面试」美团肝了我30+问题
- TF2.0—tf.keras.layers.Lambda
- php smarty 后台,smarty后台文件常用方法及说明
- 台式计算机无线网卡怎么找,怎么找出台式电脑中的无线网卡驱动
- Chrome笔试平台 摄像头无法开启 | 摄像头图像黑屏 问题解决
- ZZNU 2125:A + B 普拉斯(傻逼题+大数加法)
- html盒子页面居中,网页布局盒子(box)相关属性和盒子居中
- 化学实验室改造方案怎么做?
- Revit技巧 | 如何做出一个爆炸分析图?
- 使用BULK INSERT高效导入大量数据到SQL Server数据库