{
  "id": 152788,
  "title": "Problems with offline installation from git repos",
  "url": "/competitions/global-wheat-detection/discussion/152788",
  "author_name": "Vladislav Ostankovich",
  "post_date": "2020-05-21T12:54:55.012000",
  "votes": 0,
  "comment_count": 3,
  "views": 0,
  "content": "<p>Hi, I have a problem and need to figure out how to successfully import packages from github repos. Not all of them are available as .whl files, so I cannot simply pip install from .whl.</p>\n\n<p>I currently download github repo as .zip archive. Download it to Kaggle as Dataset. Then I copy its contents to /kaggle/working/ and simply do something like <code>python setup.py</code> or <code>pip install -e .</code> . Package seems to be installed correctly, since the console doesn't output any errors or warnings. But when I import package, it says it doesn't exist.</p>\n\n<p>Example with pycocotools:</p>\n\n<p>!cp -r ../input/mycocodataset/cocoapi-master/* ./\n!cd /kaggle/working/cocoapi-master/PythonAPI &amp;&amp; python setup.py build_ext install</p>\n\n<p><code>import pycocotools</code>\n<code>ModuleNotFoundError: No module named 'pycocotools'</code></p>\n\n<p>Can anyone help, please?</p>",
  "messages": [
    {
      "id": 856052,
      "postDate": "2020-05-21T12:54:55.013Z",
      "content": "<p>Hi, I have a problem and need to figure out how to successfully import packages from github repos. Not all of them are available as .whl files, so I cannot simply pip install from .whl.</p>\n\n<p>I currently download github repo as .zip archive. Download it to Kaggle as Dataset. Then I copy its contents to /kaggle/working/ and simply do something like <code>python setup.py</code> or <code>pip install -e .</code> . Package seems to be installed correctly, since the console doesn't output any errors or warnings. But when I import package, it says it doesn't exist.</p>\n\n<p>Example with pycocotools:</p>\n\n<p>!cp -r ../input/mycocodataset/cocoapi-master/* ./\n!cd /kaggle/working/cocoapi-master/PythonAPI &amp;&amp; python setup.py build_ext install</p>\n\n<p><code>import pycocotools</code>\n<code>ModuleNotFoundError: No module named 'pycocotools'</code></p>\n\n<p>Can anyone help, please?</p>",
      "rawMarkdown": "Hi, I have a problem and need to figure out how to successfully import packages from github repos. Not all of them are available as .whl files, so I cannot simply pip install from .whl.\n\nI currently download github repo as .zip archive. Download it to Kaggle as Dataset. Then I copy its contents to /kaggle/working/ and simply do something like `python setup.py` or `pip install -e .` . Package seems to be installed correctly, since the console doesn't output any errors or warnings. But when I import package, it says it doesn't exist.\n\nExample with pycocotools:\n\n!cp -r ../input/mycocodataset/cocoapi-master/* ./\n!cd /kaggle/working/cocoapi-master/PythonAPI &amp;&amp; python setup.py build_ext install\n\n`import pycocotools`\n`ModuleNotFoundError: No module named 'pycocotools'`\n\nCan anyone help, please?"
    },
    {
      "id": 1205051,
      "postDate": "2021-02-16T13:58:55.947Z",
      "content": "<p>I hava same problem. </p>",
      "rawMarkdown": "I hava same problem. "
    },
    {
      "id": 862023,
      "postDate": "2020-05-26T11:25:05.760Z",
      "content": "<p>I think you are forgetting to unzip the git repo. Use <code>!unzip example.zip</code> to unzip the archive</p>",
      "rawMarkdown": "I think you are forgetting to unzip the git repo. Use `!unzip example.zip` to unzip the archive"
    },
    {
      "id": 856092,
      "postDate": "2020-05-21T13:17:23.690Z",
      "rawMarkdown": "",
      "isDeleted": true
    }
  ],
  "comments": [
    {
      "id": 1205051,
      "author_name": "myhelloful1",
      "author_url": "",
      "post_date": "2021-02-16T13:58:55.947000",
      "content": "<p>I hava same problem. </p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 862023,
      "author_name": "Amogh ",
      "author_url": "",
      "post_date": "2020-05-26T11:25:05.760000",
      "content": "<p>I think you are forgetting to unzip the git repo. Use <code>!unzip example.zip</code> to unzip the archive</p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 856092,
      "author_name": "",
      "author_url": "",
      "post_date": "2020-05-21T13:17:23.690000",
      "content": "",
      "votes": 0,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "856052": "Hi, I have a problem and need to figure out how to successfully import packages from github repos. Not all of them are available as .whl files, so I cannot simply pip install from .whl.\n\nI currently download github repo as .zip archive. Download it to Kaggle as Dataset. Then I copy its contents to /kaggle/working/ and simply do something like `python setup.py` or `pip install -e .` . Package seems to be installed correctly, since the console doesn't output any errors or warnings. But when I import package, it says it doesn't exist.\n\nExample with pycocotools:\n\n!cp -r ../input/mycocodataset/cocoapi-master/* ./\n!cd /kaggle/working/cocoapi-master/PythonAPI &amp;&amp; python setup.py build_ext install\n\n`import pycocotools`\n`ModuleNotFoundError: No module named 'pycocotools'`\n\nCan anyone help, please?",
    "1205051": "I hava same problem. ",
    "862023": "I think you are forgetting to unzip the git repo. Use `!unzip example.zip` to unzip the archive",
    "856092": ""
  }
}