windows下python3.4安装lxml提示Unable to find vcvarsall.bat

news/2024/8/30 22:25:57 标签: c/c++, python

系统为windows10 64位
已经安装了Visual Studio 2015社区版
另外安装了:
Microsoft Visual C++ 2005、2008、2010、2012、2013、2015可再发行组件包,32位64位都已安装
电脑上同时安装了Python 2.7.10和Python 3.4.3,均为64位,并且设置了环境变量加以区分

使用Python2的pip安装lxml时一切正常
但使用Python3的pip安装lxml时则安装失败,并提示:“error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat).”

已经试过使用“set VS90COMNTOOLS=%VS140COMNTOOLS%”这个命令了,没有效果
另外网上找的exe安装包能给python3用的都是32位的,64位无法使用

因为写的程序要用到lxml,之前用python3写的,不太容易转到python2上,所以尽量能让python3装上lxml

请问该怎么办,谢谢

 

 

 

这个很难弄,因为系统原因,最好的方法就是重装个集成VC++10,12的系统,把vcvarsall.bat路径找到,添加到环境变量。其他什么修改python34里边参数的方法,我试过,不行。

解决方案:

"https://pypi.python.org/pypi/lxml/3.6.0"
从这个网址直接下载对应的lxml包,exe格式的,直接安装,问题解决!谢谢!

转载于:https://www.cnblogs.com/printN/p/7383780.html


http://www.niftyadmin.cn/n/1075536.html

相关文章

Suricata的Reputation

见官网 https://suricata.readthedocs.io/en/latest/reputation/index.html Docs 9. Reputation Edit on GitHub9. Reputation 9.1. IP Reputation 9.1.1. IP Reputation Config 9.1.1.1. reputation-categories-file9.1.1.2. default-reputation-path9.1.1.3. reputation-f…

MariaDB数据库由于访问量过多而不能连接

1.错误提示:too many connnections 2.错误原因:数据库系统允许的最大可连接数max_connections默认是100。最大是16384,如果没设置则是默认的100连接数,超过100数据库会因访问量过多而出现崩溃,不稳定等现象,在下面max_…

apt-get install安装软件问题(安装包的依赖库版本过高问题)

问题描述: 使用apt-get安装程序时,报告已安装依赖库的版本高于安装包所需的依赖库指定版本。 相关信息如下: Loong:~/hw_test/toolsloongson-0.1lemote#apt-get install qt4-dev-tools Reading package lists... Building dependency tree..…

【Java】K-means算法Java实现以及图像切割

1.K-means算法简述以及代码原型 数据挖掘中一个重要算法是K-means。我这里就不做具体介绍。假设感兴趣的话能够移步陈皓的博客: http://www.csdn.net/article/2012-07-03/2807073-k-means 讲得非常好 总的来讲,k-means聚类须要下面几个步骤&#xff1…

openstack镜像上传错误

1.错误描述 rootserver:/mnt/glance/images# glance image-create --name "centos7" --file centos7.img --disk-format qcow2 --container-format bare --is-public True --progress [>] 100% Request returned failure status 503. <html><head>&…

通过获取配置文件的方式获取dataSource

第一步&#xff1a;新建工程 SecondSpring 文件目录结构如下&#xff1a; 第二步&#xff1a; 导入spring相关的jar包&#xff0c;已经 mysql的jar包 过程略... 第三步&#xff1a; 新建连接数据库的配置文件 db.properties jdbc.driverClassNamecom.mysql.jdbc.Driver jdbc.u…

C#遍历CheckedListBox中的勾选项

正确的代码&#xff1a; string selectedItem string.Empty;for(int i0; i < checkedListBox1.Items.Count; i){if (checkedListBox1.GetItemChecked(i)){ selectedItem selectedItem " " checkedListBox1.Items[i].ToString(); }} 以下代码只能选择最后单击的…

openstack控制台出错Failed to connect to server (code: 1006)

#错误描述 &#xff1a; 打开openstack控制台后&#xff0c;控制台出错&#xff0c;显示Failed to connect to server (code: 1006)&#xff0c;如下图&#xff1a; #错误分析&#xff1a; 点击只显示控制台可看到地址是controller&#xff1a;6080…… 应该是域名解析出错。…