【问题标题】:execute GitHub installation via bash on Colab在 Colab 上通过 bash 执行 GitHub 安装
【发布时间】:2022-12-10 20:50:36
【问题描述】:

我正在尝试使用 bash 代码从 GitHub 存储库进行安装(pip 安装不起作用)。

我正在尝试以下代码(s. here 供参考):

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

我将其改编为 Colab

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

但是,第一行已经抛出错误:/bin/bash: https://github.com/vi3k6i5/GuidedLDA: No such file or directory

我是 bash 的新手,对于菜鸟的错误深表歉意!我也试过了

!"https://github.com/vi3k6i5/GuidedLDA"
!github.com/vi3k6i5/GuidedLDA
!"github.com/vi3k6i5/GuidedLDA"

然后我尝试使用xdg-open

!xdg-open https://github.com/vi3k6i5/GuidedLDA

!apt-get install xdg-open
!xdg-open https://github.com/vi3k6i5/GuidedLDA

一切都无济于事。

有人能指出我正确的方向吗?

【问题讨论】:

    标签: bash google-colaboratory


    【解决方案1】:

    以前我使用 git throw 命令。 这对我来说很难。 现在我使用 GitHub 桌面。 处理所有事情太容易了。 你可以查看这个播放列表 ->
    https://www.youtube.com/playlist?list=PLcL8q_TiioW0JLk03hM3cu_Nb5DRwBHa1

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-11-23
      • 2021-02-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多