{
  "id": 152581,
  "title": "Different Packages Vers for Google Colab and Kaggle",
  "url": "/competitions/global-wheat-detection/discussion/152581",
  "author_name": "",
  "post_date": "2020-05-20T14:18:09.711387Z",
  "votes": null,
  "comment_count": 4,
  "views": 0,
  "content": "<p>Any idea how to make all of the installed packages/libraries the same between Google Colab and Kaggle?  The goal would be to have Google Colab match Kaggle's.  For example, once of Google Colab's package version is</p>\n\n<p>albumentations==0.1.12</p>\n\n<p>while Kaggle's is</p>\n\n<p>albumentations==0.4.5. </p>\n\n<p>I would like Google Colab to have version 0.4.5 for this package.  Hopefully the script would update all of the packages (instead of one by one). </p>",
  "messages": [
    {
      "id": "855033",
      "postDate": "05/20/2020 14:18:09",
      "content": "<p>Any idea how to make all of the installed packages/libraries the same between Google Colab and Kaggle?  The goal would be to have Google Colab match Kaggle's.  For example, once of Google Colab's package version is</p>\n\n<p>albumentations==0.1.12</p>\n\n<p>while Kaggle's is</p>\n\n<p>albumentations==0.4.5. </p>\n\n<p>I would like Google Colab to have version 0.4.5 for this package.  Hopefully the script would update all of the packages (instead of one by one). </p>",
      "rawMarkdown": "Any idea how to make all of the installed packages/libraries the same between Google Colab and Kaggle?  The goal would be to have Google Colab match Kaggle's.  For example, once of Google Colab's package version is\n\nalbumentations==0.1.12\n\nwhile Kaggle's is\n\nalbumentations==0.4.5. \n\nI would like Google Colab to have version 0.4.5 for this package.  Hopefully the script would update all of the packages (instead of one by one).",
      "votes": null
    },
    {
      "id": "855070",
      "postDate": "05/20/2020 14:59:53",
      "content": "<p>Try that:</p>\n\n<p>!pip install albumentations==0.4.5</p>",
      "rawMarkdown": "Try that:\n\n!pip install albumentations==0.4.5",
      "votes": null
    },
    {
      "id": "855158",
      "postDate": "05/20/2020 16:33:15",
      "content": "<p>Thanks for the reply!  I ended up doing something similar to this with</p>\n\n<p>!pip install --upgrade albumentations==0.4.5</p>\n\n<p>But I was wondering if there was a solution out there that does this automatically for every package so that I don't have to do it for each package. </p>",
      "rawMarkdown": "Thanks for the reply!  I ended up doing something similar to this with\n\n!pip install --upgrade albumentations==0.4.5\n\nBut I was wondering if there was a solution out there that does this automatically for every package so that I don't have to do it for each package.",
      "votes": null
    },
    {
      "id": "855461",
      "postDate": "05/21/2020 00:19:21",
      "content": "<p>One potential option would be to do a pip freeze, copy all the dependencies with the versions over (should be as simple as copy paste) into a requirements.txt file. From there you should be able to do pip install -r requirements.txt in the other platform. Then you just stick in Kaggle briefly, copy, rinse and repeat every once in awhile. </p>",
      "rawMarkdown": "One potential option would be to do a pip freeze, copy all the dependencies with the versions over (should be as simple as copy paste) into a requirements.txt file. From there you should be able to do pip install -r requirements.txt in the other platform. Then you just stick in Kaggle briefly, copy, rinse and repeat every once in awhile.",
      "votes": null
    },
    {
      "id": "859852",
      "postDate": "05/24/2020 19:47:40",
      "content": "<p>Good idea! I'll have to try it and get back to you</p>",
      "rawMarkdown": "Good idea! I'll have to try it and get back to you",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 855070,
      "author_name": "ffares",
      "author_url": "",
      "post_date": "05/20/2020 14:59:53",
      "content": "<p>Try that:</p>\n\n<p>!pip install albumentations==0.4.5</p>",
      "votes": null,
      "replies": [
        {
          "id": 855158,
          "author_name": "billyl320",
          "author_url": "",
          "post_date": "05/20/2020 16:33:15",
          "content": "<p>Thanks for the reply!  I ended up doing something similar to this with</p>\n\n<p>!pip install --upgrade albumentations==0.4.5</p>\n\n<p>But I was wondering if there was a solution out there that does this automatically for every package so that I don't have to do it for each package. </p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 855461,
          "author_name": "muellerzr",
          "author_url": "",
          "post_date": "05/21/2020 00:19:21",
          "content": "<p>One potential option would be to do a pip freeze, copy all the dependencies with the versions over (should be as simple as copy paste) into a requirements.txt file. From there you should be able to do pip install -r requirements.txt in the other platform. Then you just stick in Kaggle briefly, copy, rinse and repeat every once in awhile. </p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 859852,
          "author_name": "billyl320",
          "author_url": "",
          "post_date": "05/24/2020 19:47:40",
          "content": "<p>Good idea! I'll have to try it and get back to you</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "855033": "Any idea how to make all of the installed packages/libraries the same between Google Colab and Kaggle?  The goal would be to have Google Colab match Kaggle's.  For example, once of Google Colab's package version is\n\nalbumentations==0.1.12\n\nwhile Kaggle's is\n\nalbumentations==0.4.5. \n\nI would like Google Colab to have version 0.4.5 for this package.  Hopefully the script would update all of the packages (instead of one by one).",
    "855070": "Try that:\n\n!pip install albumentations==0.4.5",
    "855158": "Thanks for the reply!  I ended up doing something similar to this with\n\n!pip install --upgrade albumentations==0.4.5\n\nBut I was wondering if there was a solution out there that does this automatically for every package so that I don't have to do it for each package.",
    "855461": "One potential option would be to do a pip freeze, copy all the dependencies with the versions over (should be as simple as copy paste) into a requirements.txt file. From there you should be able to do pip install -r requirements.txt in the other platform. Then you just stick in Kaggle briefly, copy, rinse and repeat every once in awhile.",
    "859852": "Good idea! I'll have to try it and get back to you"
  },
  "source": "meta"
}