成功解决 AttributeError: module ‘pathlib‘ has no attribute ‘_Accessor‘
解决问题
我们在使用Python 3.11,当我们import artifactory的时候,报了如下的错误:
解决思路
这是因为在Python 3.11的时候,pathlib移除了'_Accessor'这个attribute
解决方法
使用GitHub - devopshq/artifactory: dohq-artifactory: a Python client for Artifactory来代替原本的artifactory
安装指令:
pip install dohq-artifactory --upgrade