我使用conda安装了snorkel,当我尝试运行- from snorkel.labeling import labeling_function时,它会抛出以下错误- ModuleNotFoundError: No module named 'snorkel.labeling'。
我试着在Github上寻找解决方案,但不幸的是,我无法坚持到底。我也尝试过安装nb_conda_kernels,使您所有的conda环境都可以在jupyterbut中使用,但是没有帮助。此外,还尝试创建一个单独的env,从snorkel的环境中安装snorkel和启动jupyter笔记本,但是它也没有工作。任何形式的帮助都是非常感谢的!
提前感谢!
发布于 2020-08-04 09:10:12
试试这些安装说明
conda create --yes -n snorkel
conda activate snorkel
conda install pytorch==1.1.0 -c pytorch
conda install snorkel==0.9.0 -c conda-forge或者这些,列在这里
# [OPTIONAL] Activate a virtual environment
conda create --yes -n spam python=3.6
conda activate spam
# Install requirements (both shared and tutorial-specific)
pip install environment_kernels
# We specify PyTorch here to ensure compatibility, but it may not be necessary.
conda install pytorch==1.1.0 -c pytorch
conda install snorkel==0.9.5 -c conda-forge
pip install -r spam/requirements.txt
# Launch the Jupyter notebook interface
jupyter notebook spam发布于 2020-08-04 09:12:03
请试用以下方法:
供pip用户使用
pip install snorkel
用于conda用户
conda install snorkel -c conda-forge
https://stackoverflow.com/questions/63243522
复制相似问题