首页 > 编程语言 >pyinstaller打包程序后提示No module named ‘xxxx‘

pyinstaller打包程序后提示No module named ‘xxxx‘

时间:2023-06-20 09:34:14浏览次数:47  
标签:named pyinstaller No xxx module 打包

解决方法1

1、检查 先在venv环境中安装xxx 报错的这个包

以我的举例 查看settings>project interpreter  (存在对应的包)

 

解决方法2

2、在xxx.spec  文件中 添加 导入模块 pytest

 

再次重新打包  pyinstaller xxx.spec

运行exe  运行成功.....

 

标签:named,pyinstaller,No,xxx,module,打包
From: https://www.cnblogs.com/zcjbky/p/17492771.html

相关文章

  • 【雕爷学编程】Arduino动手做(117)---P10V706LED屏模组
    37款传感器与执行器的提法,在网络上广泛流传,其实Arduino能够兼容的传感器模块肯定是不止这37种的。鉴于本人手头积累了一些传感器和执行器模块,依照实践出真知(一定要动手做)的理念,以学习和交流为目的,这里准备逐一动手尝试系列实验,不管成功(程序走通)与否,都会记录下来—小小的进步或是搞......
  • Cannot invoke "Object.hashCode()" because "key" is null
    奇葩问题,springboot+mybatis-plus 帮朋友解决bg,使用queryWrapper查询语句报错,Cannotinvoke"Object.hashCode()"because"key"isnull使用的mybatis-plus-boot-start,3.3.2版本jdk17据说是jdk17加上3.3.x和3.3.4.x版本的mybatis-plus会出现这个问题果然是的,更改mybatis-pl......
  • My id 0 not in the peer list
    今天重启zookeeper爆了个错Myid0notinthepeerlist#######################cluster##########################server.131=192.168.10.131:2888:3888server.132=192.168.10.132:2888:3888server.133=192.168.10.133:2888:3888配置参数解读server.A=B:C:D。A是一个......
  • Neutral Network Notes
    TableofContents卷积Let'sgetstarted卷积1.卷积公式\[\int_{-\infty}^{+\infty}f(\tau)g(x-\tau)d\tau\]2.卷积公式的理解   符号意义\(f(t)\)\(t\)时刻的进食量\(\int_{0}^{t}f(t)dt\)截止\(t\)时刻的总进食量\(g(t)\)某一时刻进食......
  • BindingException异常:Type interface com.niuyun.dao.UserDao is not known to the Ma
    Mybatis出现:org.apache.ibatis.binding.BindingException:Typeinterfacecom.niuyun.dao.UserDaoisnotknowntotheMapperRegistry.的错误,如何解决?错误如下:类型接口dao不知道mapper注册中心点的问题org.apache.ibatis.binding.BindingException:Typeinterfacecom.niuy......
  • 错误:“java.lang.ClassNotFoundException: com.mysql.jdbc.Driver“ 如何解决?
    ——运行项目时遇到java.lang.ClassNotFoundException:com.mysql.jdbc.Driver问题,解决方案:错误如下:java.lang.ClassNotFoundException:com.mysql.jdbc.Driver atorg.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1358) atorg.......
  • InnoDB 缓冲池
    缓冲池是主存储器中的一个区域,在访问table和索引数据时InnoDB会对其进行缓存。缓冲池允许直接从内存中访问频繁使用的数据,从而加快处理速度。在专用服务器上,通常将高达80%的物理内存分配给缓冲池。为了高效处理大量读取操作,缓冲池被划分为可以容纳多行数据的页面。为了有效管......
  • SAP Commerce Cloud SolrIndexNotFoundException 异常 - 做 full indexing 的详细位置
    Console看到消息:NoActiveindexfound,FULLindexeroperationmustbeperformedbeforeanyotheroperationCausedby:de.hybris.platform.solrfacetsearch.solr.exceptions.SolrIndexNotFoundException:de.hybris.platform.servicelayer.exceptions.UnknownIdentifie......
  • [Ynoi2019 模拟赛] Yuno loves sqrt technology I
    题目Link分块,首先预处理所有整块之间的答案,这部分用类似莫队二离的手法可以改成\(O(n)\)次插入和\(O(n\sqrt{n})\)查询,然后根号平衡一手做到\(O(n\sqrt{n})\);空间自然也是能线性的。当然更直白的说法是,直接预处理\(f(i,j)\)表示前\(i\)块中\(>j\)的元素个数。然后考......
  • WABCO DIAGNOSTIC KIT (WDI) WABCO Trailer and Truck Diagnostic Interface
    WabcoDiagnosticKitisauniversaldiagnostictooldesignedformaintenanceoftrailers,trucksandbuses.WabcoDiagnostictoolsupportsmostpopularandwanteddiagnosticprotocolsforwidercompatibilityrange.WabcoDiagnosticKitcomeswithafulls......