gpt4 book ai didi

python - 导入错误 : No module named 'hypothesis'

转载 作者:行者123 更新时间:2023-12-04 04:23:23 31 4
gpt4 key购买 nike

我用 conda install hypothesis 在 Anaconda 上安装了假设.我在 Spyder 上使用 Python 3.7。

在名为 testing.py 的文件中我写

from hypothesis import given
import hypothesis.strategies as st

但是当我运行文件时,它说:

ImportError: No module named 'hypothesis'



我该如何解决这个问题?

最佳答案

使用 Pip 安装假设

pip install hypothesis

这将解决问题。

Also, 0.2.2 is the best stable version confirmed by the developers.

关于python - 导入错误 : No module named 'hypothesis' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58543901/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com