在安裝pytest-allure-adaptor 遇見報錯:error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat),在網上搜了很多方法,不是下載的.xml 安裝不了,就是visual C++ 安裝失敗,最后找到以下方法,成功解決!!
解決方法: 首先在 https://pypi.org/project/lxml/3.6.0/#files 地址中下載對應的版本,例如:lxml-3.4.4-cp34-none-win_amd64.whl 注意:3.4.4表示lxml版本;cp表示python版本;amd64表示系統環境64位
然后放在python/scripts 目錄下面,最后cmd進入該目錄下執行命令: pip install 文件名 。如果沒有缺少wheel ,請先安裝 pip install wheel 。