{
  "id": 200010,
  "title": "How to install third-party library when Internet disabled",
  "url": "/competitions/hubmap-kidney-segmentation/discussion/200010",
  "author_name": "",
  "post_date": "2020-11-28T10:44:23.442648700Z",
  "votes": 1,
  "comment_count": 5,
  "views": 0,
  "content": "<p>I noticed that the notebook submission should make the Internet disabled. But I may need some third-party libraries in my code.<br>\nIs it possible to pre-install them on my environment? If yes, what could I do?<br>\nReally appreciate your answers!</p>",
  "messages": [
    {
      "id": "1094130",
      "postDate": "11/28/2020 10:44:23",
      "content": "<p>I noticed that the notebook submission should make the Internet disabled. But I may need some third-party libraries in my code.<br>\nIs it possible to pre-install them on my environment? If yes, what could I do?<br>\nReally appreciate your answers!</p>",
      "rawMarkdown": "I noticed that the notebook submission should make the Internet disabled. But I may need some third-party libraries in my code.\nIs it possible to pre-install them on my environment? If yes, what could I do?\nReally appreciate your answers!",
      "votes": null
    },
    {
      "id": "1094236",
      "postDate": "11/28/2020 12:34:44",
      "content": "<p><a href=\"https://www.kaggle.com/lijiaqi96\" target=\"_blank\">@lijiaqi96</a> You can add the python wheel package or the source files of the package as a Kaggle dataset. Then install using pip or build the source files within your notebook.</p>",
      "rawMarkdown": "lijiaqi96 You can add the python wheel package or the source files of the package as a Kaggle dataset. Then install using pip or build the source files within your notebook.",
      "votes": null
    },
    {
      "id": "1094411",
      "postDate": "11/28/2020 15:42:22",
      "content": "<p>Create a utility script which download the packages to your base directory<br>\nyou can add some kind of code to paste to your utility script</p>\n<pre><code>import os\n# os.system('pip install --target=/kaggle/working &lt;MODULE NAME&gt;')\nos.system('pip install --target=/kaggle/working cupy')\n</code></pre>",
      "rawMarkdown": "Create a utility script which download the packages to your base directory\nyou can add some kind of code to paste to your utility script\n\n```\nimport os\n# os.system('pip install --target=/kaggle/working <MODULE NAME>')\nos.system('pip install --target=/kaggle/working cupy')\n```",
      "votes": null
    },
    {
      "id": "1094898",
      "postDate": "11/29/2020 04:18:35",
      "content": "<p>Thank you guys, so nice of you!</p>",
      "rawMarkdown": "Thank you guys, so nice of you!",
      "votes": null
    },
    {
      "id": "1094922",
      "postDate": "11/29/2020 05:07:35",
      "content": "<p>if you still face any issue please let me know</p>",
      "rawMarkdown": "if you still face any issue please let me know",
      "votes": null
    },
    {
      "id": "1094941",
      "postDate": "11/29/2020 05:37:01",
      "content": "<p>Thanks a lot!</p>",
      "rawMarkdown": "Thanks a lot!",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1094236,
      "author_name": "yovinyahathugoda",
      "author_url": "",
      "post_date": "11/28/2020 12:34:44",
      "content": "<p><a href=\"https://www.kaggle.com/lijiaqi96\" target=\"_blank\">@lijiaqi96</a> You can add the python wheel package or the source files of the package as a Kaggle dataset. Then install using pip or build the source files within your notebook.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1094411,
      "author_name": "morizin",
      "author_url": "",
      "post_date": "11/28/2020 15:42:22",
      "content": "<p>Create a utility script which download the packages to your base directory<br>\nyou can add some kind of code to paste to your utility script</p>\n<pre><code>import os\n# os.system('pip install --target=/kaggle/working &lt;MODULE NAME&gt;')\nos.system('pip install --target=/kaggle/working cupy')\n</code></pre>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1094898,
      "author_name": "lijiaqi96",
      "author_url": "",
      "post_date": "11/29/2020 04:18:35",
      "content": "<p>Thank you guys, so nice of you!</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1094922,
      "author_name": "morizin",
      "author_url": "",
      "post_date": "11/29/2020 05:07:35",
      "content": "<p>if you still face any issue please let me know</p>",
      "votes": null,
      "replies": [
        {
          "id": 1094941,
          "author_name": "lijiaqi96",
          "author_url": "",
          "post_date": "11/29/2020 05:37:01",
          "content": "<p>Thanks a lot!</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "1094130": "I noticed that the notebook submission should make the Internet disabled. But I may need some third-party libraries in my code.\nIs it possible to pre-install them on my environment? If yes, what could I do?\nReally appreciate your answers!",
    "1094236": "lijiaqi96 You can add the python wheel package or the source files of the package as a Kaggle dataset. Then install using pip or build the source files within your notebook.",
    "1094411": "Create a utility script which download the packages to your base directory\nyou can add some kind of code to paste to your utility script\n\n```\nimport os\n# os.system('pip install --target=/kaggle/working <MODULE NAME>')\nos.system('pip install --target=/kaggle/working cupy')\n```",
    "1094898": "Thank you guys, so nice of you!",
    "1094922": "if you still face any issue please let me know",
    "1094941": "Thanks a lot!"
  },
  "source": "meta"
}