草庐IT

setup_requires

全部标签

解决Failed to convert value of type ‘java.lang.String‘ to required type ‘java.lang.Integer

项目:网上商城练习问题:使用postman测试接口报错:类型转换异常上代码:@GetMapping(value="/search/{page}/{size}")publicResultfindPage(@PathVariable(value="page")intpage,@PathVariable(value="size")intsize){改为:@GetMapping(value="/search")publicResultfindPage(intpage,intsize){直接去掉{}和@PathVariable注释,容易找不到对应的参数类型,希望对大家有用,问题已解决。

python安装cv2出现如下错误:Could not find a version that satisfies the requirement cv2

python安装cv2出现如下错误:Couldnotfindaversionthatsatisfiestherequirementcv2开始是报错ModuleNotFoundError:Nomodulenamed‘cv2’点击安装cv2,安装未成功,查找相关资料,说是没有cv2的包,实际上需要安装的是一个叫opencv-python的包安装opencv-python包,打开cmd输入:pipinstallopencv-python,等待安装完成回到pycharm中,找到文件-设置-项目-python解释器,左上角有个+,点击进去找到opencv-python,点击“installPackage

ES集群重新设置密码(第二次执行.elasticsearch-setup-passwords interactive报错)

错误信息当为es集群设置完一次密码之后,再次执行相同的命令./elasticsearch-setup-passwordsinteractive报错:Failedtoauthenticateuser'elastic'againsthttp://172.16.xxx.xxx:9200/_security/_authenticate?prettyPossiblecausesinclude:*Thepasswordforthe'elastic'userhasalreadybeenchangedonthiscluster*Yourelasticsearchnodeisrunningagainstadif

pip 安装报错 required to install pyproject.toml-based projects

主要提示这两个信息:MicrosoftVisualC++14.0orgreaterisrequired.Getitwith"MicrosoftC++BuildTools":https://visualstudio.microsoft.com/visual-cpp-build-tools/ERROR:Couldnotbuildwheelsforpsutil,whichisrequiredtoinstallpyproject.toml-basedprojects复制代码解决:进入vs官网,下载安装成功安装后,还要安装以下内容:重新执行pip,成功下载!注意一定勾选上“使用C++的桌面开发”,只安装

vue3+vite加载本地js/json文件不能使用require

vue3+vite项目不能通过require引入文件,因为require是webpack自己封装的方法,在vite中没有封装该方法所以在调用require时会报错。初始化引入本地文件可直接通过import进行引入importbooksDatafrom'@/data/zhouyi/yijing_yuanzhu/json/data.json';如果需要动态引入,则需要通过axios进行引入安装axios:npminstallaxios注意:如果默认安装最新的axios,运行项目可能会报错(Cannotreadproperty'FormData'ofundefined)然后页面空白,原因是axios

vue3-setup语法糖 - 父子组件之间的传值

近期学习vue3的父子组件之间的传值,发现跟vue2的并没有太大的区别,然后发现网络上很少基于setup语法糖的教程,我这边总结一下,希望对大家有所帮助。一、父组件向子组件传值父组件向子组件传值的时候,子组件是通过props来接收的,然后以变量的形式将props传递到setup语法糖果中使用(defineEmits的到来!)。如下图所示:1、父组件传递方式我是父组件importChildfrom'./Child'import{ref}from'vue'constparentMsg=ref('父组件传递值是a')2、子组件接收方式和使用我是子组件拿到了父组件的值是{{info}}import{t

error: Microsoft Visual C++ 14.0 is required快速解决办法

当报错error:MicrosoftVisualC++14.0isrequired时我们只需要看上一行的building'xxx'extension,比如我报的是building'dukpy._dukpy'extension 那只需要到https://www.lfd.uci.edu/~gohlke/pythonlibs/搜索dukpy下载对应的whl,再到whl文件所在的目录执行pipinstalldukpy-0.2.3-cp39-cp39-win_amd64.whl

nginx启动报错:nginx: [emerg] https protocol requires SSL support in /usr/local/nginx/conf/ngi

nginx:[emerg]httpsprotocolrequiresSSLsupportin/usr/local/nginx/conf/nginx这个错误是由于配置了https代理但是没有安装ssl模块导致的,只需要按照以下步骤安装ssl模块查看nginx配置,顺便找到configure文件位置并切换到有这个文件的目录下/usr/local/nginx/sbin/nginx-V修改configure,增加ssl模块./configure--prefix=/usr/local/nginx--with-http_ssl_module编译并安装make&&makeinstall重启nginx即可

YOLO UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing a

在运行yolo时出现了一个警告return_VF.meshgrid(tensors,**kwargs) #type:ignore[attr-defined]解决方法:找到pyrcharm所用的虚拟环境下的functional.py文件 具体可以根据报错的提示找到functional的504行加上如下代码 indexing='ij' 保存,问题解决! 

distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 or greater is required. Get it w

环境windowspython3.6报错pipinstall-rrequirements.txtdistutils.errors.DistutilsPlatformError:MicrosoftVisualC++14.0orgreaterisrequired.Getitwith"MicrosoftC++BuildTools":https://visualstudio.microsoft.com/visual-cpp-build-tools/点开链接下载https://visualstudio.microsoft.com/visual-cpp-build-tools/安装如图插件再次安装pipi