python - ImportError:没有名为“假设”的模块
问题描述
我在 Anaconda 上安装了假设conda install hypothesis
。我在 Spyder 上使用 Python 3.7。
在一个名为testing.py
我写的文件中
from hypothesis import given
import hypothesis.strategies as st
但是当我运行文件时,它说:
ImportError:没有名为“假设”的模块
我该如何解决这个问题?
解决方案
使用 Pip 安装假设
pip install hypothesis
这将解决问题。
此外,0.2.2 是开发人员确认的最佳稳定版本。
推荐阅读
- python - 当我使用 plotly 绘图时什么都没有出现
- vb.net - 寻找 lambda 调用速记文档
- android - 在Android中清理资源的最佳方法是什么?
- laravel - Laravel 5.8 ajax 内部服务器错误
- logging - JBoss 服务器日志中的错误日志问题
- google-cloud-platform - BigQuery 表压缩
- python - 如何自定义热图的颜色条
- c# - 如何从 ViewModel 中删除方法的执行 - Xamarin.Forms - MVVM
- java - Java中加载的共享库可以调用Java方法吗?
- sql-server - 将 CSV 导入 SQL Server 数据库,保留 ID 列值