草庐IT

require_dependency

全部标签

【已解决】pip subprocess to install build dependencies did not run successfully.

不要输入版本号。例如pandas==1.0.5,安装这个的时候就会出现这个问题,但是当我去掉版本号,只用命令condainstallpandas来进行安装时就不会产生这个报错。同理scipy==1.5.0也是。用了将近一天的时间来配置环境,尝试了各种方法,结果竟是这样解决就行了,我是废物。

NUXT3项目安装依赖运行后报错 require() of ES Module xxxxx not supported.

部署nuxt3项目(VUE3),使用cnpmi和yarninstall安装完依赖,报错如下:Cannotstartnuxt:require()ofESModule/www/wwwroot/xxx/node_modules/escape-string-regexp/index.jsfrom/www/wwwroot/xxx/node_modules/@babel/highlight/node_modules/chalk/index.jsnotsupported.误打误撞补上这句就好了:yarnaddbabel-nodebabel-node版本是v1.22.19

vite报 Dynamic require of “path“ is not supported 错误

当引入path时报Dynamicrequireof“path”isnotsupported错误错误代码:解决:查看vite的版本如果是3.1.x不支持commonJS,所以要改为import{}from’’就可以了

安装gensim失败,各种方法未果,最后注意到 error: Microsoft Visual C++ 14.0 or greater is required,终于解决

使用pycharm在Python控制台通过pip安装gensim时出现以下错误:尝试过更新pip、通过cmd安装等方法都没有用。最后注意到note上一行的error:MicrosoftVisualC++14.0orgreaterisrequired于是搜索安装MicrosoftVisualC++14.0的方法最终是通过这篇文章的第三个方法安装个该软件,链接如下:MicrosoftVisualC++14.0isrequired解决方法-知乎(zhihu.com)https://zhuanlan.zhihu.com/p/126669852再通过pip安装gensim成功感谢前辈! 

CondaSSLError: OpenSSL appears to be unavailable on this machine. OpenSSL is required to download an

问题描述Windows平台上,在执行完condaupdate-nbase-cdefaultsconda命令后,执行condainstall命令时,报错信息如下:(paddlepaddle)C:\Users\ASUS>condainstallpaddlepaddle-gpu==2.4.1cudatoolkit=11.2-chttps://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/Paddle/-cconda-forgeCollectingpackagemetadata(current_repodata.json):failedCondaSSLErro

【解决前端报错】Bad Request: Required request parameter ‘id‘ for method parameter type Long is not present

后端查询列表接口返回的对象里包含Longid,前端获取到这个id,执行通过Longid删除操作。这时删除操作报错400,大意是没找着Long类型的id.swagger相关接口截图:Long类型的在swagger显示是integer64,integer是integer32.这是前端请求后,出现在我的后端console控制台的报错信息。前端部分代码如下图所示:也许问题出现在接口的参数传递上,接收的参数是urlencode编码格式还是json编码格式?这时我突然意识到,或许前端获取了一条数据后,在获取这条数据的某个字段值时没有把相应的字段值类型转化为json格式,而作为一个接口而言,只认识json格

【解决前端报错】Bad Request: Required request parameter ‘id‘ for method parameter type Long is not present

后端查询列表接口返回的对象里包含Longid,前端获取到这个id,执行通过Longid删除操作。这时删除操作报错400,大意是没找着Long类型的id.swagger相关接口截图:Long类型的在swagger显示是integer64,integer是integer32.这是前端请求后,出现在我的后端console控制台的报错信息。前端部分代码如下图所示:也许问题出现在接口的参数传递上,接收的参数是urlencode编码格式还是json编码格式?这时我突然意识到,或许前端获取了一条数据后,在获取这条数据的某个字段值时没有把相应的字段值类型转化为json格式,而作为一个接口而言,只认识json格

pycocotools:ERROR: Could not build wheels for pycocotools, which is required to install pyproject...

在pip安装YOLOv5包的时候出现错误"ERROR:Couldnotbuildwheelsforpycocotools,whichisrequiredtoinstallpyproject.toml-basedprojects",在网上找了很多资料都行不通,最后参考博文windows安装pycocotools:ERROR:Couldnotbuildwheelsforpycocotools,whichisrequiredtoinstallpy_放羊Wa的博客-CSDN博客ERROR:Couldnotbuildwheelsforpycocotools,whichisrequiredtoinstal

端口映射问题:Bad Request This combination of host and port requires TLS.

错误信息:BadRequestThiscombinationofhostandportrequiresTLS.遇到上面的错误信息:如果是通过域名访问,则该域名后配置的转发端口映射错误。如果是通过ip+端口或者域名+端口访问,则为你端口填写错误。我出现过若干次以上问题,所以将其记录,原因为在配置端口时,为服务配置了一个serverport一个httpport。但在访问的时候访问了serverport。就访问不到了。

Android13 Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE

最近把以前的11的代码移植到13上碰到的问题,记录一下:TargetingS+(version31andabove)requiresthatoneofFLAG_IMMUTABLEorFLAG_MUTABLEbespecifiedwhencreatingaPendingIntent.StronglyconsiderusingFLAG_IMMUTABLE,onlyuseFLAG_MUTABLEifsomefunctionalitydependsonthePendingIntentbeingmutable,e.g.ifitneedstobeusedwithinlinerepliesorbubbles