日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

安装service_identity失败总结

發布時間:2024/10/6 编程问答 33 豆豆
生活随笔 收集整理的這篇文章主要介紹了 安装service_identity失败总结 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

有一天運行一個爬蟲程序時報以下錯誤:

:0: UserWarning: You do not have a working installation of the service_identity module: ‘cannot import name ‘原錯誤中這是一個不能導入某個包,忘了是啥了’’. Please install it from https://pypi.python.org/pypi/service_identity and make sure all of its dependencies are satisfied. Without the service_identity module, Twisted can perform only rudimentary TLS client hostname verification. Many valid certificate/hostname mappings may be rejected.
參考:使用Scrapy時遇到:UserWarning: You do not have a working installation of the service_identity module
發生以上錯誤的根本原因原因得看這句話

You do not have a working installation of the service_identity module

在service-identity 21.1.0下載了一個文件service_identity-21.1.0-py2.py3-none-any.whl放在 D:\python3\Scripts下
使用

pip install service_identity-21.1.0-py2.py3-none-any.whl

安裝失敗
報錯:

service-identity is already installed with the same version as the provided whee l. Use --force-reinstall to force an installation of the wheel.

嘗試使用

pip install service_identity-21.1.0-py2.py3-none-any.whl --force --upgrade

報錯:

ERROR: Could not install packages due to an OSError: [WinError 5] 拒絕訪問。: 'd :\\python3\\lib\\site-packages\\_cffi_backend.cp36-win_amd64.pyd' Consider using the `--user` option or check the permissions.

嘗試使用

pip install --user service_identity-21.1.0-py2.py3-none-any.whl --force --upgrade

成功!

Successfully installed attrs-21.2.0 cffi-1.14.6 cryptography-3.4.8 pyasn1-0.4.8 pyasn1-modules-0.2.8 pycparser-2.20 service-identity-21.1.0 six-1.16.0

總結

以上是生活随笔為你收集整理的安装service_identity失败总结的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。