【问题标题】:error installing guidedlda on google colab notebook在 google colab notebook 上安装guidelda时出错
【发布时间】:2021-08-29 12:02:39
【问题描述】:

我试图在 google colab notebook 上安装guidelda,但它一直给我错误,我目前使用的以下代码。

!pip install guidedlda
pip install guidedlda

https://github.com/vi3k6i5/GuidedLDA
cd GuidedLDA
sh build_dist.sh
python setup.py sdist
pip install -e 

我不断收到以下错误。如果有人知道如何在 google colab 上解决此问题,请告诉我

使用缓存来收集guidedlda https://files.pythonhosted.org/packages/f8/ee/6d6e2b3525388399e12a4482554c7529a5fcf5e99c50a60abaa02894b8bf/guidedlda-2.0.0.dev22.tar.gz 已满足要求:numpy in /usr/local/lib/python3.7/dist-packages(来自guidelda)(1.19.5) 用于收集包裹的构建轮:guidelda Building wheel for guidelda (setup.py) ... 错误错误:构建轮子失败 guidelda 为guidelda 运行setup.py clean 构建失败 guidelda 安装收集的包:guidelda 为guidelda运行setup.py install ...错误错误:命令出错,退出状态为1:/usr/bin/python3 -u -c 'import sys, 设置工具,标记化; sys.argv[0] = '"'"'/tmp/pip-install-1u3r_cht/guidedlda/setup.py'"'"'; 文件='"'"'/tmp/pip-install-1u3r_cht/guidedlda/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' 安装 --record /tmp/pip-record-wpryz4pa/install-record.txt --single-version-externally-managed --compile 检查日志以获取完整的命令输出。

【问题讨论】:

    标签: python pip google-colaboratory


    【解决方案1】:

    您可能看到了这个,但以防万一:https://guidedlda.readthedocs.io/en/latest/

    如果 pip install 不起作用,请尝试下一步。

    https://github.com/vi3k6i5/GuidedLDA

    cd GuidedLDA
    
    sh build_dist.sh
    
    python setup.py sdist
    
    pip install -e .
    

    【讨论】:

    • 是的,当我运行它时我做了它给我语法错误
    • 请不要将您的代码 sn-ps 格式化为斜体(已编辑)。
    猜你喜欢
    • 1970-01-01
    • 2019-08-09
    • 2023-01-07
    • 1970-01-01
    • 2020-12-06
    • 2021-12-24
    • 1970-01-01
    • 2021-08-18
    • 2021-08-16
    相关资源
    最近更新 更多