【问题标题】:Installing a game via GitHub onto Google Colab通过 GitHub 将游戏安装到 Google Colab
【发布时间】:2020-05-01 20:48:14
【问题描述】:

我正在尝试通过 GitHub 将我正在开发的 Python 游戏安装到 Google Colab 上。过去几周它一直运行良好,但今天我得到了这个错误,即使我没有改变任何东西。请问有什么想法吗?

我运行的代码:

# Install
!git clone --depth 1 --branch master https://github.com/Nokkla/AIDungeonClone
%cd AIDungeonClone/
!./install.sh
from IPython.display import clear_output
#clear_output()
#print("Installation Complete!")

输出:

Cloning into 'AIDungeonClone'...
remote: Enumerating objects: 62, done.
remote: Counting objects: 100% (62/62), done.
remote: Compressing objects: 100% (51/51), done.
remote: Total 62 (delta 8), reused 50 (delta 5), pack-reused 0
Unpacking objects: 100% (62/62), done.
/content/AIDungeonClone
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  python-pip-whl python3.6-venv
The following NEW packages will be installed:
  python-pip-whl python3-venv python3.6-venv
0 upgraded, 3 newly installed, 0 to remove and 25 not upgraded.
Need to get 1,660 kB of archives.
After this operation, 1,901 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 python-pip-whl all 9.0.1-2.3~ubuntu1.18.04.1 [1,653 kB]
Err:2 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 python3.6-venv amd64 3.6.9-1~18.04
  404  Not Found [IP: 91.189.88.142 80]
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 python3-venv amd64 3.6.7-1~18.04 [1,208 B]
Fetched 1,654 kB in 0s (14.0 MB/s)
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/p/python3.6/python3.6-venv_3.6.9-1~18.04_amd64.deb  404  Not Found [IP: 91.189.88.142 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

【问题讨论】:

    标签: python git ubuntu google-colaboratory


    【解决方案1】:

    尝试这样做

    sudo apt-get dist-upgrade  && sudo apt-get update  
    

    然后继续执行安装命令。

    【讨论】:

      猜你喜欢
      • 2018-11-23
      • 2022-12-10
      • 1970-01-01
      • 2018-07-20
      • 2020-12-31
      • 2018-07-03
      • 2020-10-13
      • 2016-03-29
      • 2012-04-18
      相关资源
      最近更新 更多