首页 > 文章资讯 > 站长教程 > 建站知识 > vcruntime140.dll 14.0与PHP版本不兼容,PHP Warning: 'vcruntime140.dll' 14.0 is not compatible with
vcruntime140.dll 14.0与PHP版本不兼容,PHP Warning: 'vcruntime140.dll' 14.0 is not compatible with
时间:2023年06月19日
/来源:网络
/编辑:佚名
vcruntime140.dll 14.0与PHP版本不兼容,PHP Warning: 'vcruntime140.dll' 14.0 is not compatible with this PHP build linked with 14.16 in Unknown on line 0
今天需要切换到PHP7.4以上的版本,然后我就切换到PHP7.4.3版本
当我在cmd运行一下代码的时候,报错:
C:\Users\Think>php -v
PHP Warning: 'vcruntime140.dll' 14.0 is not compatible with this PHP build linked with 14.16 in Unknown on line 0

注意看报错信息,是缺失还是与PHP版本不兼容
丢失请参考:https://blog.csdn.net/damountain/article/details/78161072
这里讲不兼容的问题,很好解决,原因是PHP 7.4.x需要用于Visual Studio 2019的Microsoft Visual C ++ Redistributable
可在此处下载:
进去之后向下滚动→其他工具和框架→Microsoft Visual C++ Redistributable for Visual Studio 2019→选择你对应的版本下载,我这里选择的是64位的
https://visualstudio.microsoft.com/downloads/

下载之后安装,重启电脑就可以了。
VC_redist.x64.exe
下载地址:
链接: https://pan.baidu.com/s/1pLdpLR8I_7QfcfQhQx2zYQ 提取码: j7jd
今天需要切换到PHP7.4以上的版本,然后我就切换到PHP7.4.3版本
当我在cmd运行一下代码的时候,报错:
C:\Users\Think>php -v
PHP Warning: 'vcruntime140.dll' 14.0 is not compatible with this PHP build linked with 14.16 in Unknown on line 0

注意看报错信息,是缺失还是与PHP版本不兼容
丢失请参考:https://blog.csdn.net/damountain/article/details/78161072
这里讲不兼容的问题,很好解决,原因是PHP 7.4.x需要用于Visual Studio 2019的Microsoft Visual C ++ Redistributable
可在此处下载:
进去之后向下滚动→其他工具和框架→Microsoft Visual C++ Redistributable for Visual Studio 2019→选择你对应的版本下载,我这里选择的是64位的
https://visualstudio.microsoft.com/downloads/

下载之后安装,重启电脑就可以了。
VC_redist.x64.exe
下载地址:
链接: https://pan.baidu.com/s/1pLdpLR8I_7QfcfQhQx2zYQ 提取码: j7jd
新闻资讯 更多
- 【建站知识】查询nginx日志状态码大于400的请求并打印整行04-03
- 【建站知识】Python中的logger和handler到底是个什么?04-03
- 【建站知识】python3拉勾网爬虫之(您操作太频繁,请稍后访问)04-03
- 【建站知识】xpath 获取meta里的keywords及description的方法04-03
- 【建站知识】python向上取整以50为界04-03
- 【建站知识】scrapy xpath遇见乱码解决04-03
- 【建站知识】scrapy爬取后中文乱码,解决word转为html 时cp1252编码问题04-03
- 【建站知识】scrapy采集—爬取中文乱码,gb2312转为utf-804-03