国产成人精品亚洲777人妖,欧美日韩精品一区视频,最新亚洲国产,国产乱码精品一区二区亚洲

您的位置:首頁(yè)技術(shù)文章
文章詳情頁(yè)

python3.x - centos python 安裝lxml 報(bào)錯(cuò) 阿里云ECS

瀏覽:163日期:2022-06-25 10:34:02

問(wèn)題描述

阿里云主機(jī),原本centos內(nèi)置python 2.7 ,安裝了python 3.6然后因?yàn)橐褂胠xml 解析文檔,結(jié)果使用

pip3 install lxml

Collecting lxml HTTP error 404 while getting http://mirrors.aliyun.com/pypi/packages/0a/75/d54af657adc8625aa950ae7be4e4f33ef2b5014380556790fc6c7b7d095d/lxml-3.8.0-cp36-cp36m-manylinux1_x86_64.whl#md5=0cf2148ff4e6e65bf9f0bb0c97733f2f (from http://mirrors.aliyun.com/pypi/simple/lxml/) Could not install requirement lxml from http://mirrors.aliyun.com/pypi/packages/0a/75/d54af657adc8625aa950ae7be4e4f33ef2b5014380556790fc6c7b7d095d/lxml-3.8.0-cp36-cp36m-manylinux1_x86_64.whl#md5=0cf2148ff4e6e65bf9f0bb0c97733f2f because of error 404 Client Error: Not Found for url: http://mirrors.aliyun.com/pypi/packages/0a/75/d54af657adc8625aa950ae7be4e4f33ef2b5014380556790fc6c7b7d095d/lxml-3.8.0-cp36-cp36m-manylinux1_x86_64.whlCould not install requirement lxml from http://mirrors.aliyun.com/pypi/packages/0a/75/d54af657adc8625aa950ae7be4e4f33ef2b5014380556790fc6c7b7d095d/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/d54af657adc8625aa950ae7be4e4f33ef2b5014380556790fc6c7b7d095d/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-manylinux1_x86_64.whl#md5=0cf2148ff4e6e65bf9f0bb0c97733f2f (from http://mirrors.aliyun.com/pypi/simple/lxml/)

請(qǐng)教各位如何解決?按照網(wǎng)上說(shuō)的額

pip3 install wheel

然而還是沒(méi)用請(qǐng)教倒是是怎么解決

當(dāng)然如果直接用pip 那么是python 2.7的根據(jù)這個(gè)帖子 centos python安裝lxml報(bào)錯(cuò)

yum groupinstall development toolsyum install python-devel

發(fā)現(xiàn)安裝的都是python 2.7的結(jié)果還是報(bào)錯(cuò)

問(wèn)題解答

回答1:

看到報(bào)錯(cuò):

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

可能是yum源配置有問(wèn)題, 可以先嘗試換一個(gè)yum源, 然后再試下安裝參考下這個(gè): CentOS 7 安裝EPEL源然后再參考下面的, 安裝lxmlcentos7安裝python,pip,redis,lxml

回答2:

使用pip3 install lxml -v 打印更多信息,我估計(jì)系統(tǒng)沒(méi)裝libXXXdev所致

標(biāo)簽: Python 編程
相關(guān)文章:
主站蜘蛛池模板: 抚松县| 博兴县| 望城县| 通海县| 亚东县| 和顺县| 乐至县| 福泉市| 崇文区| 拉萨市| 边坝县| 灌云县| 五大连池市| 宁安市| 奉贤区| 澄城县| 怀集县| 仲巴县| 江源县| 彭山县| 宝应县| 古蔺县| 时尚| 靖宇县| 江城| 工布江达县| 翁牛特旗| 镶黄旗| 迭部县| 林周县| 贞丰县| 磐安县| 阳泉市| 田阳县| 瓦房店市| 黄龙县| 宁安市| 南岸区| 台江县| 奉贤区| 诸暨市|