草庐IT

multi-modules

全部标签

解决:使用前端路由时的报错Cannot destructure property ‘options’ of ‘(0 , vue__WEBPACK_IMPORTED_MODULE_1__.inject)

使用前端路由时,代码无误,但是页面不显示任何东西,控制台报错:Cannotdestructureproperty‘options’of‘(0,vue__WEBPACK_IMPORTED_MODULE_1__.inject)(…)’asitisundefined.解决:step1:删掉下图所示目录node_modules(需要管理员身份)step2运行命令npmi,重新生成上述目录step3运行:npmrundev/serve(根据自己的配置文件来)最终就可以得到期望的效果啦

GPU/CPU友好的模乘算法:Multi-Precision Fast Modular Multiplication

1.引言前序博客:基础算法优化——FastModularMultiplication大整数的模乘:是每种SNARK计算的核心是最昂贵的基石通常可决定整个协议的复杂度对模乘运算的哪怕一点点改进,都可能带来大幅加速。Ingonyama团队2023年论文Multi-PrecisionFastModularMultiplication,开源代码实现见:https://github.com/ingonyama-zk/modular_multiplication(Python)基础算法优化——FastModularMultiplication(本文称为Barrett-Domb模乘算法)是一种基于Barre

使用TensorboardX时报错ModuleNotFoundError: No module named ‘tensorboardX‘及解决

报错:解决:(1)首先打开ctrl+R打开终端,输入cmd,回车,输入python,会显示你安装的python是什么版本的,首先测试一下有没有安装tensorboard,输入importtensorboard,出现ModuleNotFoundError:Nomodulenamed‘tensorboard’这种情况是没有安装好的(2)输入exit()或quit()退出python命令行,输入pipinstalltb-nightly命令行,回车,会自动下载pygame安装包(3)在终端输入python进入之后,输入importtensorboard检测是否安装成功,如下图所示:没有报错,说明安装成

ModuleNotFoundError: No module named ‘cuda‘、‘tensorrt‘

1、ModuleNotFoundError:Nomodulenamed‘cuda’python-mpipinstall--upgradepippipinstallcuda-python2、ModuleNotFoundError:Nomodulenamed‘tensorrt’2.1依赖库先安装两个TensorRT的依赖库python-mpipinstall--upgradepippipinstallnvidia-pyindexpipinstallonnx-graphsurgeon2.2下载TensorRT及CUDA版本环境对应点我进入TensorRT官方下载地址,win下载后得到zip文件Ten

Python报错ModuleNotFoundError: No module named ‘psutil‘

python运行时,因为代码里引入了某些组件库,但是本地没有,便会报错ModuleNotFoundError:Nomodulenamed'XXX',如下图:此图是没有导入psutil库。解决:在python安装目录下的Scripts目录下进入cmd黑窗口,运行命令pipinstallpsutil安装。如果是内网连通公网仓库不方便,则通过如下命令指定内网的镜像源:pipinstall--index-urlhttp://mirrors.pic.com.cn/pypi/web/simple/--trusted-hostmirrors.pic.com.cn--userpsutil或者:pipinsta

使用ts-node命令运行ts文件时报错(Warning: To load an ES module, set “type“: “module“ in the package.json...)

使用ts-node运行TS文件时报错。错误信息1:E:\PersonalProject\ts-utils\test>ts-nodeDateChainTest.ts(node:22636)Warning:ToloadanESmodule,set"type":"module"inthepackage.jsonorusethe.mjsextension.(Use`node--trace-warnings...`toshowwherethewarningwascreated)E:\PersonalProject\ts-utils\test\DateChainTest.ts:1import{DateCh

AttributeError: module ‘cv2.aruco‘ has no attribute ‘GridBoard_create‘报错解决

AttributeError:module'cv2.aruco'hasnoattribute'GridBoard_create'报错解决问题描述原因解决问题描述使用Opencv的Python版本,运行:ARUCO_PARAMETERS=aruco.DetectorParameters_create()ARUCO_DICT=aruco.Dictionary_get(aruco.DICT_ARUCO_ORIGINAL)corners,ids,rejectedImgPoints=aruco.detectMarkers(frame,ARUCO_DICT,parameters=ARUCO_PARAMET

pycharm 运行出现UserWarning: The NumPy module was reloaded (imported a second time).

解决途中坎坷:大家可以直接看下面的解决方案。当然我觉得大家还是先看一下我们具体所遇到的问题是否相同,避免错误解决。        看了很多博主的解决方案,还是一头污水,有的博主说是因为numpy库下载入了两次。刚开始跟着博主说的删除numpy库就行,结果我在AnacondaPromtpt中进入所用虚拟环境用condauninstallnumpy 指令准备删除numpy,但是我没注意到它显示的信息直接点了Y,结果导致我删除numpy库时附带删除了很多其它的库,最后我在pycharm中设置环境的时候就是下面这里,我发现已下载Package只有几个了。我还以为是我的环境配置出现了问题,又废了好多时间

sqlite - Visual Studio 2017 更新问题 : Unable to load DLL ‘sqlite3’ : The specified module could not be found.(HRESULT 异常:0x8007007E)

在将vs2015.netstandard升级到vs2017时,我在测试项目中遇到以下错误。UnabletoloadDLL‘sqlite3’:Thespecifiedmodulecouldnotbefound.(ExceptionfromHRESULT:0x8007007E)它适用于vs2015,sqlite提供程序1.0.101.0新环境:VisualStudio2017,TargetFramework="net461"使用.netcore1.1包,sqlite提供程序1.0.105.0我已经尝试了所有可以从互联网上获得的解决方案,如下所示,但都是徒劳的。我试过了,向.csproj添加

sqlite - Visual Studio 2017 更新问题 : Unable to load DLL ‘sqlite3’ : The specified module could not be found.(HRESULT 异常:0x8007007E)

在将vs2015.netstandard升级到vs2017时,我在测试项目中遇到以下错误。UnabletoloadDLL‘sqlite3’:Thespecifiedmodulecouldnotbefound.(ExceptionfromHRESULT:0x8007007E)它适用于vs2015,sqlite提供程序1.0.101.0新环境:VisualStudio2017,TargetFramework="net461"使用.netcore1.1包,sqlite提供程序1.0.105.0我已经尝试了所有可以从互联网上获得的解决方案,如下所示,但都是徒劳的。我试过了,向.csproj添加