{
  "id": 104183,
  "title": "Since PyTorch Updated，Nvidia apex failed to intall.",
  "url": "/competitions/aptos2019-blindness-detection/discussion/104183",
  "author_name": "",
  "post_date": "2019-08-15T02:20:35.157205700Z",
  "votes": 18,
  "comment_count": 19,
  "views": 0,
  "content": "<p>If some people use code like me to install NVIDIA apex in kernel, since the version up of PyTorch last night, NVIDIA Apex will fail to install. \n<a href=\"https://www.kaggle.com/chanhu/eye-efficientnet-pytorch-lb-0-777\">https://www.kaggle.com/chanhu/eye-efficientnet-pytorch-lb-0-777</a></p>\n\n<p>if I find someway, I will update this discussion. </p>\n\n<p>[Updated]\n1. reinstall torch 1.1.0: \nCommand::\n !pip install torch==1.1.0\n2. and then use command below to install NVIDIA apex.\nCommand:\n! pip install -v --no-cache-dir --global-option=\"--cpp_ext\" --global-option=\"--cuda_ext\" ../input/nvidiaapex/repository/NVIDIA-apex-39e153a</p>",
  "messages": [
    {
      "id": "599464",
      "postDate": "08/15/2019 02:20:35",
      "content": "<p>If some people use code like me to install NVIDIA apex in kernel, since the version up of PyTorch last night, NVIDIA Apex will fail to install. \n<a href=\"https://www.kaggle.com/chanhu/eye-efficientnet-pytorch-lb-0-777\">https://www.kaggle.com/chanhu/eye-efficientnet-pytorch-lb-0-777</a></p>\n\n<p>if I find someway, I will update this discussion. </p>\n\n<p>[Updated]\n1. reinstall torch 1.1.0: \nCommand::\n !pip install torch==1.1.0\n2. and then use command below to install NVIDIA apex.\nCommand:\n! pip install -v --no-cache-dir --global-option=\"--cpp_ext\" --global-option=\"--cuda_ext\" ../input/nvidiaapex/repository/NVIDIA-apex-39e153a</p>",
      "rawMarkdown": "If some people use code like me to install NVIDIA apex in kernel, since the version up of PyTorch last night, NVIDIA Apex will fail to install. \nhttps://www.kaggle.com/chanhu/eye-efficientnet-pytorch-lb-0-777\n\nif I find someway, I will update this discussion. \n\n[Updated]\n1. reinstall torch 1.1.0: \nCommand::\n !pip install torch==1.1.0\n2. and then use command below to install NVIDIA apex.\nCommand:\n! pip install -v --no-cache-dir --global-option=\"--cpp_ext\" --global-option=\"--cuda_ext\" ../input/nvidiaapex/repository/NVIDIA-apex-39e153a",
      "votes": null
    },
    {
      "id": "599467",
      "postDate": "08/15/2019 02:26:26",
      "content": "<p>GG</p>",
      "rawMarkdown": "GG",
      "votes": null
    },
    {
      "id": "599516",
      "postDate": "08/15/2019 04:17:31",
      "content": "<p>With that !pip install torch==1.1.0 command I got:\n\"Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/torch/\"\nI searched it and it's a dns problem, this is likely specific to people from countries like China where the internet is often blocked. I had tried to turn off my vpn but the error is still there. Will appreciate it if anyone can help.</p>",
      "rawMarkdown": "With that !pip install torch==1.1.0 command I got:\n\"Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/torch/\"\nI searched it and it's a dns problem, this is likely specific to people from countries like China where the internet is often blocked. I had tried to turn off my vpn but the error is still there. Will appreciate it if anyone can help.",
      "votes": null
    },
    {
      "id": "599525",
      "postDate": "08/15/2019 04:31:39",
      "content": "<p>I don't think it is your DNS problem. Because you run a kernel in Virtual Machine at Data Center. \nDid you turn on you Internet access in Kernel?</p>\n\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F2033774%2F03426a6f0ef1ab2adce89e93af016424%2F123.PNG?generation=1565843496758812&amp;alt=media\" alt=\"\"></p>",
      "rawMarkdown": "I don't think it is your DNS problem. Because you run a kernel in Virtual Machine at Data Center. \nDid you turn on you Internet access in Kernel?\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F2033774%2F03426a6f0ef1ab2adce89e93af016424%2F123.PNG?generation=1565843496758812&amp;alt=media)",
      "votes": null
    },
    {
      "id": "599527",
      "postDate": "08/15/2019 04:35:08",
      "content": "<p>No,  it's  not  because  of  china , it's  because  of  you  didn't  open  your  internet  in  kernel</p>",
      "rawMarkdown": "No,  it's  not  because  of  china , it's  because  of  you  didn't  open  your  internet  in  kernel",
      "votes": null
    },
    {
      "id": "599552",
      "postDate": "08/15/2019 05:42:34",
      "content": "<p>Thanks, it now works with internet on. And sorry for my ignorance.</p>",
      "rawMarkdown": "Thanks, it now works with internet on. And sorry for my ignorance.",
      "votes": null
    },
    {
      "id": "599668",
      "postDate": "08/15/2019 08:35:05",
      "content": "<p>Thank you for paying attention to this problem. But I still can not install apex. I get 125 different links and writes\n \"Given no hashes to check 125 links for project 'pip': discarding no candidates\"</p>\n\n<p>If you help me I will be very grateful, thank you</p>",
      "rawMarkdown": "Thank you for paying attention to this problem. But I still can not install apex. I get 125 different links and writes\n \"Given no hashes to check 125 links for project 'pip': discarding no candidates\"\n\nIf you help me I will be very grateful, thank you",
      "votes": null
    },
    {
      "id": "599692",
      "postDate": "08/15/2019 09:05:12",
      "content": "<p>I revised and recommitted my kernel <a href=\"https://www.kaggle.com/chanhu/eye-efficientnet-pytorch-lb-0-777\">https://www.kaggle.com/chanhu/eye-efficientnet-pytorch-lb-0-777</a>, you can use same code. \nDon't worry about \"Given no hashes to check 125 links for project 'pip': discarding no candidates\". \nUsing \"from apex import amp\" to check if apex had been installed.</p>",
      "rawMarkdown": "I revised and recommitted my kernel https://www.kaggle.com/chanhu/eye-efficientnet-pytorch-lb-0-777, you can use same code. \nDon't worry about \"Given no hashes to check 125 links for project 'pip': discarding no candidates\". \nUsing \"from apex import amp\" to check if apex had been installed.",
      "votes": null
    },
    {
      "id": "599700",
      "postDate": "08/15/2019 09:14:39",
      "content": "<p>Thanks, this is really helpful.  I tried about 100 method to install apex but all failed earlier. </p>",
      "rawMarkdown": "Thanks, this is really helpful.  I tried about 100 method to install apex but all failed earlier.",
      "votes": null
    },
    {
      "id": "599703",
      "postDate": "08/15/2019 09:20:03",
      "content": "<p>Thank you very much, sorry for my stupidity</p>",
      "rawMarkdown": "Thank you very much, sorry for my stupidity",
      "votes": null
    },
    {
      "id": "599705",
      "postDate": "08/15/2019 09:21:54",
      "content": "<p>Still,  kaggle is unusable in China without a VPN. </p>",
      "rawMarkdown": "Still,  kaggle is unusable in China without a VPN.",
      "votes": null
    },
    {
      "id": "599753",
      "postDate": "08/15/2019 10:12:12",
      "content": "<p>No, I can  always  access  kaggle  without  a VPN    ,  downloading dataset   with  10MB/second ,   maybe  you  need   a  tool  to  change your   DNS  .    Don't    blame    my   China</p>",
      "rawMarkdown": "No, I can  always  access  kaggle  without  a VPN    ,  downloading dataset   with  10MB/second ,   maybe  you  need   a  tool  to  change your   DNS  .    Don't    blame    my   China",
      "votes": null
    },
    {
      "id": "599792",
      "postDate": "08/15/2019 11:06:01",
      "content": "<p>The problem is with one of the CPP files (they are missing ;)\nThe issue was fixed in their GitHub repostry \nI managed to overcome this with the following lines </p>\n\n<p><code>\n! git clone https://github.com/NVIDIA/apex\n!pip install -v --no-cache-dir --global-option=\"--cpp_ext\" --global-option=\"--cuda_ext\" ./apex\n</code>\nI have spent few hours this morning on this </p>\n\n<p>Update - \nThis option runs when you run the notebook, but my commit failed with this error :\nOutput path '/apex/.git/logs/refs/remotes/origin/HEAD' contains too many nested subdirectories (max 6)\nI will update if I find a solution </p>",
      "rawMarkdown": "The problem is with one of the CPP files (they are missing ;)\nThe issue was fixed in their GitHub repostry \nI managed to overcome this with the following lines \n\n```\n! git clone https://github.com/NVIDIA/apex\n!pip install -v --no-cache-dir --global-option=\"--cpp_ext\" --global-option=\"--cuda_ext\" ./apex\n```\nI have spent few hours this morning on this \n\n\nUpdate - \nThis option runs when you run the notebook, but my commit failed with this error :\nOutput path '/apex/.git/logs/refs/remotes/origin/HEAD' contains too many nested subdirectories (max 6)\nI will update if I find a solution",
      "votes": null
    },
    {
      "id": "599911",
      "postDate": "08/15/2019 12:46:48",
      "content": "<p>Thank you!</p>",
      "rawMarkdown": "Thank you!",
      "votes": null
    },
    {
      "id": "600016",
      "postDate": "08/15/2019 14:36:05",
      "content": "<p>Thanks a lot!</p>",
      "rawMarkdown": "Thanks a lot!",
      "votes": null
    },
    {
      "id": "600118",
      "postDate": "08/15/2019 17:08:24",
      "content": "<p>How about uploading datasets? I cannot upload datasets without my VPN on in China.</p>",
      "rawMarkdown": "How about uploading datasets? I cannot upload datasets without my VPN on in China.",
      "votes": null
    },
    {
      "id": "600331",
      "postDate": "08/16/2019 01:56:30",
      "content": "<p>Not always. Maybe now is good.  The situation was different sereval month ago. It took years to load one webpage.</p>",
      "rawMarkdown": "Not always. Maybe now is good.  The situation was different sereval month ago. It took years to load one webpage.",
      "votes": null
    },
    {
      "id": "601129",
      "postDate": "08/17/2019 04:05:31",
      "content": "<p>In edit mode it's fine, but when commiting,  I always get this error:\n\"Output path '/apex/.git/logs/refs/remotes/origin/HEAD' contains too many nested subdirectories (max 6)\".\nAnyone has the same problem?</p>",
      "rawMarkdown": "In edit mode it's fine, but when commiting,  I always get this error:\n\"Output path '/apex/.git/logs/refs/remotes/origin/HEAD' contains too many nested subdirectories (max 6)\".\nAnyone has the same problem?",
      "votes": null
    },
    {
      "id": "601848",
      "postDate": "08/18/2019 08:31:58",
      "content": "<p>hi chunhu\nHow about the submission kernel..\nDo we need installation there ?</p>",
      "rawMarkdown": "hi chunhu\nHow about the submission kernel..\nDo we need installation there ?",
      "votes": null
    },
    {
      "id": "642541",
      "postDate": "10/06/2019 09:02:33",
      "content": "<p>This worked for me, thanks!</p>",
      "rawMarkdown": "This worked for me, thanks!",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 599467,
      "author_name": "xujingzhao",
      "author_url": "",
      "post_date": "08/15/2019 02:26:26",
      "content": "<p>GG</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 599516,
      "author_name": "homoalways",
      "author_url": "",
      "post_date": "08/15/2019 04:17:31",
      "content": "<p>With that !pip install torch==1.1.0 command I got:\n\"Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/torch/\"\nI searched it and it's a dns problem, this is likely specific to people from countries like China where the internet is often blocked. I had tried to turn off my vpn but the error is still there. Will appreciate it if anyone can help.</p>",
      "votes": null,
      "replies": [
        {
          "id": 599525,
          "author_name": "chanhu",
          "author_url": "",
          "post_date": "08/15/2019 04:31:39",
          "content": "<p>I don't think it is your DNS problem. Because you run a kernel in Virtual Machine at Data Center. \nDid you turn on you Internet access in Kernel?</p>\n\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F2033774%2F03426a6f0ef1ab2adce89e93af016424%2F123.PNG?generation=1565843496758812&amp;alt=media\" alt=\"\"></p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 599527,
          "author_name": "xujingzhao",
          "author_url": "",
          "post_date": "08/15/2019 04:35:08",
          "content": "<p>No,  it's  not  because  of  china , it's  because  of  you  didn't  open  your  internet  in  kernel</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 599552,
          "author_name": "homoalways",
          "author_url": "",
          "post_date": "08/15/2019 05:42:34",
          "content": "<p>Thanks, it now works with internet on. And sorry for my ignorance.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 599705,
          "author_name": "ys19931006",
          "author_url": "",
          "post_date": "08/15/2019 09:21:54",
          "content": "<p>Still,  kaggle is unusable in China without a VPN. </p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 599753,
          "author_name": "xujingzhao",
          "author_url": "",
          "post_date": "08/15/2019 10:12:12",
          "content": "<p>No, I can  always  access  kaggle  without  a VPN    ,  downloading dataset   with  10MB/second ,   maybe  you  need   a  tool  to  change your   DNS  .    Don't    blame    my   China</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 600118,
          "author_name": "xiaojiu1414",
          "author_url": "",
          "post_date": "08/15/2019 17:08:24",
          "content": "<p>How about uploading datasets? I cannot upload datasets without my VPN on in China.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 600331,
          "author_name": "ys19931006",
          "author_url": "",
          "post_date": "08/16/2019 01:56:30",
          "content": "<p>Not always. Maybe now is good.  The situation was different sereval month ago. It took years to load one webpage.</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 599668,
      "author_name": "boykoaa",
      "author_url": "",
      "post_date": "08/15/2019 08:35:05",
      "content": "<p>Thank you for paying attention to this problem. But I still can not install apex. I get 125 different links and writes\n \"Given no hashes to check 125 links for project 'pip': discarding no candidates\"</p>\n\n<p>If you help me I will be very grateful, thank you</p>",
      "votes": null,
      "replies": [
        {
          "id": 599692,
          "author_name": "chanhu",
          "author_url": "",
          "post_date": "08/15/2019 09:05:12",
          "content": "<p>I revised and recommitted my kernel <a href=\"https://www.kaggle.com/chanhu/eye-efficientnet-pytorch-lb-0-777\">https://www.kaggle.com/chanhu/eye-efficientnet-pytorch-lb-0-777</a>, you can use same code. \nDon't worry about \"Given no hashes to check 125 links for project 'pip': discarding no candidates\". \nUsing \"from apex import amp\" to check if apex had been installed.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 599703,
          "author_name": "boykoaa",
          "author_url": "",
          "post_date": "08/15/2019 09:20:03",
          "content": "<p>Thank you very much, sorry for my stupidity</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 601848,
          "author_name": "jaideepvalani",
          "author_url": "",
          "post_date": "08/18/2019 08:31:58",
          "content": "<p>hi chunhu\nHow about the submission kernel..\nDo we need installation there ?</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 642541,
          "author_name": "pai1995",
          "author_url": "",
          "post_date": "10/06/2019 09:02:33",
          "content": "<p>This worked for me, thanks!</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 599700,
      "author_name": "ys19931006",
      "author_url": "",
      "post_date": "08/15/2019 09:14:39",
      "content": "<p>Thanks, this is really helpful.  I tried about 100 method to install apex but all failed earlier. </p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 599792,
      "author_name": "omershect",
      "author_url": "",
      "post_date": "08/15/2019 11:06:01",
      "content": "<p>The problem is with one of the CPP files (they are missing ;)\nThe issue was fixed in their GitHub repostry \nI managed to overcome this with the following lines </p>\n\n<p><code>\n! git clone https://github.com/NVIDIA/apex\n!pip install -v --no-cache-dir --global-option=\"--cpp_ext\" --global-option=\"--cuda_ext\" ./apex\n</code>\nI have spent few hours this morning on this </p>\n\n<p>Update - \nThis option runs when you run the notebook, but my commit failed with this error :\nOutput path '/apex/.git/logs/refs/remotes/origin/HEAD' contains too many nested subdirectories (max 6)\nI will update if I find a solution </p>",
      "votes": null,
      "replies": [
        {
          "id": 599911,
          "author_name": "chanhu",
          "author_url": "",
          "post_date": "08/15/2019 12:46:48",
          "content": "<p>Thank you!</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 600016,
          "author_name": "bamps53",
          "author_url": "",
          "post_date": "08/15/2019 14:36:05",
          "content": "<p>Thanks a lot!</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 601129,
          "author_name": "homoalways",
          "author_url": "",
          "post_date": "08/17/2019 04:05:31",
          "content": "<p>In edit mode it's fine, but when commiting,  I always get this error:\n\"Output path '/apex/.git/logs/refs/remotes/origin/HEAD' contains too many nested subdirectories (max 6)\".\nAnyone has the same problem?</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "599464": "If some people use code like me to install NVIDIA apex in kernel, since the version up of PyTorch last night, NVIDIA Apex will fail to install. \nhttps://www.kaggle.com/chanhu/eye-efficientnet-pytorch-lb-0-777\n\nif I find someway, I will update this discussion. \n\n[Updated]\n1. reinstall torch 1.1.0: \nCommand::\n !pip install torch==1.1.0\n2. and then use command below to install NVIDIA apex.\nCommand:\n! pip install -v --no-cache-dir --global-option=\"--cpp_ext\" --global-option=\"--cuda_ext\" ../input/nvidiaapex/repository/NVIDIA-apex-39e153a",
    "599467": "GG",
    "599516": "With that !pip install torch==1.1.0 command I got:\n\"Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/torch/\"\nI searched it and it's a dns problem, this is likely specific to people from countries like China where the internet is often blocked. I had tried to turn off my vpn but the error is still there. Will appreciate it if anyone can help.",
    "599525": "I don't think it is your DNS problem. Because you run a kernel in Virtual Machine at Data Center. \nDid you turn on you Internet access in Kernel?\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-user-content/o/inbox%2F2033774%2F03426a6f0ef1ab2adce89e93af016424%2F123.PNG?generation=1565843496758812&amp;alt=media)",
    "599527": "No,  it's  not  because  of  china , it's  because  of  you  didn't  open  your  internet  in  kernel",
    "599552": "Thanks, it now works with internet on. And sorry for my ignorance.",
    "599668": "Thank you for paying attention to this problem. But I still can not install apex. I get 125 different links and writes\n \"Given no hashes to check 125 links for project 'pip': discarding no candidates\"\n\nIf you help me I will be very grateful, thank you",
    "599692": "I revised and recommitted my kernel https://www.kaggle.com/chanhu/eye-efficientnet-pytorch-lb-0-777, you can use same code. \nDon't worry about \"Given no hashes to check 125 links for project 'pip': discarding no candidates\". \nUsing \"from apex import amp\" to check if apex had been installed.",
    "599700": "Thanks, this is really helpful.  I tried about 100 method to install apex but all failed earlier.",
    "599703": "Thank you very much, sorry for my stupidity",
    "599705": "Still,  kaggle is unusable in China without a VPN.",
    "599753": "No, I can  always  access  kaggle  without  a VPN    ,  downloading dataset   with  10MB/second ,   maybe  you  need   a  tool  to  change your   DNS  .    Don't    blame    my   China",
    "599792": "The problem is with one of the CPP files (they are missing ;)\nThe issue was fixed in their GitHub repostry \nI managed to overcome this with the following lines \n\n```\n! git clone https://github.com/NVIDIA/apex\n!pip install -v --no-cache-dir --global-option=\"--cpp_ext\" --global-option=\"--cuda_ext\" ./apex\n```\nI have spent few hours this morning on this \n\n\nUpdate - \nThis option runs when you run the notebook, but my commit failed with this error :\nOutput path '/apex/.git/logs/refs/remotes/origin/HEAD' contains too many nested subdirectories (max 6)\nI will update if I find a solution",
    "599911": "Thank you!",
    "600016": "Thanks a lot!",
    "600118": "How about uploading datasets? I cannot upload datasets without my VPN on in China.",
    "600331": "Not always. Maybe now is good.  The situation was different sereval month ago. It took years to load one webpage.",
    "601129": "In edit mode it's fine, but when commiting,  I always get this error:\n\"Output path '/apex/.git/logs/refs/remotes/origin/HEAD' contains too many nested subdirectories (max 6)\".\nAnyone has the same problem?",
    "601848": "hi chunhu\nHow about the submission kernel..\nDo we need installation there ?",
    "642541": "This worked for me, thanks!"
  },
  "source": "meta"
}