python3.x - centos python installation lxml error reporting Alibaba Cloud ECS
我想大声告诉你
我想大声告诉你 2017-06-05 11:09:40
0
2
890

Alibaba Cloud Host, originally centos had built-in python 2.7, and installed python 3.6
Then because lxml was used to parse the document, the result was

pip3 install lxml 
Collecting lxml
  HTTP error 404 while getting http://mirrors.aliyun.com/pypi/packages/0a/75/d54af657adc8625aa950
ae7be4e4f33ef2b5014380556790fc6c7b7d095d/lxml-3.8.0-cp36-cp36m-manylinux1_x86_64.whl#md5=0cf2148f
f4e6e65bf9f0bb0c97733f2f (from http://mirrors.aliyun.com/pypi/simple/lxml/)
  Could not install requirement lxml from http://mirrors.aliyun.com/pypi/packages/0a/75/d54af657a
dc8625aa950ae7be4e4f33ef2b5014380556790fc6c7b7d095d/lxml-3.8.0-cp36-cp36m-manylinux1_x86_64.whl#m
d5=0cf2148ff4e6e65bf9f0bb0c97733f2f because of error 404 Client Error: Not Found for url: http://
mirrors.aliyun.com/pypi/packages/0a/75/d54af657adc8625aa950ae7be4e4f33ef2b5014380556790fc6c7b7d09
5d/lxml-3.8.0-cp36-cp36m-manylinux1_x86_64.whl
Could not install requirement lxml from http://mirrors.aliyun.com/pypi/packages/0a/75/d54af657adc
8625aa950ae7be4e4f33ef2b5014380556790fc6c7b7d095d/lxml-3.8.0-cp36-cp36m-manylinux1_x86_64.whl#md5
=0cf2148ff4e6e65bf9f0bb0c97733f2f because of HTTP error 404 Client Error: Not Found for url: http
://mirrors.aliyun.com/pypi/packages/0a/75/d54af657adc8625aa950ae7be4e4f33ef2b5014380556790fc6c7b7
d095d/lxml-3.8.0-cp36-cp36m-manylinux1_x86_64.whl for URL http://mirrors.aliyun.com/pypi/packages
/0a/75/d54af657adc8625aa950ae7be4e4f33ef2b5014380556790fc6c7b7d095d/lxml-3.8.0-cp36-cp36m-manylin
ux1_x86_64.whl#md5=0cf2148ff4e6e65bf9f0bb0c97733f2f (from http://mirrors.aliyun.com/pypi/simple/l
xml/)

Please tell me how to solve it?
According to what is said on the Internet

pip3 install wheel  

But it’s still useless. Please tell me how to solve it

Of course, if you use pip directly, it is python 2.7
According to this post, centos python installs lxml and reports an error

yum groupinstall development tools
yum install python-devel

I found that all python 2.7 installed
resulted in an error

我想大声告诉你
我想大声告诉你

reply all(2)
过去多啦不再A梦

See the error report:

because of error 404 Client Error: Not Found for url: http://
mirrors.aliyun.com/pypi/packages/0a/75/d54af657adc8625aa950ae7be4e4f33ef2b5014380556790fc6c7b7d09
5d/lxml-3.8.0-cp36-cp36m-manylinux1_x86_64.whl

It may be that there is a problem with the yumsource configuration. You can try changing to a yumsource first, and then try to install it again
Refer to this: CentOS 7 install EPEL source
Then refer to the following, install lxml
centos7 install python, pip,redis,lxml

我想大声告诉你

Use pip3 install lxml -v to print more information. I guess it is because the system does not have libXXXdev installed

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template