AttributeError: module 'os' has no attribute 'add_dll_directory'

huangapple go评论136阅读模式
英文:

AttributeError: module 'os' has no attribute 'add_dll_directory'

问题

错误
我正在尝试使用ML来克隆我的声音。我正在遵循:https://github.com/CorentinJ/Real-Time-Voice-Cloning 存储库。但是在设置的第三步,当我运行命令python demo_cli.py时,我收到了错误:AttributeError: 模块'os'没有属性'add_dll_directory'。我的Python版本是3.7.9,我的机器没有GPU。

英文:

ERROR
https://github.com/CorentinJ/Real-Time-Voice-Cloning

I am trying to clone my voice using ML. I am following : https://github.com/CorentinJ/Real-Time-Voice-Cloning repository. But at the third step of Setup that is when I run the command python demo_cli.py I am getting the error: AttributeError: module 'os' has no attribute 'add_dll_directory'. My python version is 3.7.9 and my machine do not have a gpu.

答案1

得分: 1

The function os.add_dll_directory was introduced in Python 3.8. It's not available in your version, Python 3.7.

To use that function, you'll need to upgrade to Python 3.8 or later.

Since it's being used from within PyTorch, it's possible that this is due to an incompatible version of PyTorch being used. Downgrading your PyTorch version may solve that.

英文:

The function os.add_dll_directory was introduced in Python 3.8. It's not available in your version, Python 3.7.

To use that function, you'll need to upgrade to Python 3.8 or later.

Since it's being used from within PyTorch, it's possible that this is due to an incompatible version of PyTorch being used. Downgrading your PyTorch version may solve that.

huangapple
  • 本文由 发表于 2023年3月21日 03:13:56
  • 转载请务必保留本文链接:https://go.coder-hub.com/75794403-2.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定