{
  "id": 181205,
  "title": "I tried lot and got same error i could not able to rectify this i done with new env and install torch 1.5.0 even thought it showing this error ",
  "url": "/competitions/lyft-motion-prediction-autonomous-vehicles/discussion/181205",
  "author_name": "",
  "post_date": "2020-09-08T00:52:11.544459900Z",
  "votes": null,
  "comment_count": 3,
  "views": 0,
  "content": "<p><strong>## ### Error Message</strong><br>\nERROR: Could not find a version that satisfies the requirement torch=1.5.0 (from l5kit) (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)<br>\nERROR: No matching distribution found for torch=1.5.0 (from l5kit)</p>",
  "messages": [
    {
      "id": "1002244",
      "postDate": "09/08/2020 00:52:11",
      "content": "<p><strong>## ### Error Message</strong><br>\nERROR: Could not find a version that satisfies the requirement torch=1.5.0 (from l5kit) (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)<br>\nERROR: No matching distribution found for torch=1.5.0 (from l5kit)</p>",
      "rawMarkdown": "**## ### Error Message**\nERROR: Could not find a version that satisfies the requirement torch<1.6.0,>=1.5.0 (from l5kit) (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)\nERROR: No matching distribution found for torch<1.6.0,>=1.5.0 (from l5kit)",
      "votes": null
    },
    {
      "id": "1002246",
      "postDate": "09/08/2020 01:03:00",
      "content": "<p>From what I could tell, you have to explicitly install version 1.5.0 of Torch (latest version wouldn't work).  If using Pip:</p>\n<p>python -m pip install torch==1.5.0 torchvision==0.6.0 -f <a href=\"https://download.pytorch.org/whl/torch_stable.html\" target=\"_blank\">https://download.pytorch.org/whl/torch_stable.html</a></p>",
      "rawMarkdown": "From what I could tell, you have to explicitly install version 1.5.0 of Torch (latest version wouldn't work).  If using Pip:\n\npython -m pip install torch==1.5.0 torchvision==0.6.0 -f https://download.pytorch.org/whl/torch_stable.html",
      "votes": null
    },
    {
      "id": "1002538",
      "postDate": "09/08/2020 07:58:28",
      "content": "<p>I think you are using Windows. I encountered the same error before, and I recommend you to install <code>l5kit</code> by using <code>git clone</code> instead of <code>pip install</code>.<br></p>\n<hr>\n<p>According to <code>Installing as a Developer</code> in <a href=\"https://github.com/lyft/l5kit\" target=\"_blank\">https://github.com/lyft/l5kit</a>, the full text is the following:</p>\n<h3>1. Clone the repo</h3>\n<pre><code>git clone https://github.com/lyft/l5kit.git ./\n</code></pre>\n<h3>2. Install L5Kit</h3>\n<pre><code>cd l5kit\npip install -r requirements.txt\n</code></pre>\n<p>If you run into trouble installing L5Kit on Windows, you may need to</p>\n<ul>\n<li><strong>install Pytorch and torchvision manually first (select the correct version required by your system, i.e. GPU or CPU-only), then run L5Kit install (remove the packages torch and torchvision from setup.py)</strong></li>\n<li>install Microsoft C++ Build Tools.</li>\n</ul>\n<hr>\n<p>In summary,</p>\n<ol>\n<li>Install Pytorch (and torchvision) with any version first.</li>\n<li>Clone the repository</li>\n<li>Remove the line <code>\"torch&gt;=1.5.0,&lt;1.6.0\", \"torchvision&gt;=0.6.0,&lt;0.7.0\"</code> in the <code>setup.py</code> in the <code>l5kit</code> folder.</li>\n<li>Finally,  run the code</li>\n</ol>\n<pre><code>cd l5kit\npip install -r requirements\n</code></pre>\n<hr>\n<p>I hope you to fix the problem.</p>",
      "rawMarkdown": "I think you are using Windows. I encountered the same error before, and I recommend you to install `l5kit` by using `git clone` instead of `pip install`.<br/>\n\n---\n\nAccording to `Installing as a Developer` in [https://github.com/lyft/l5kit](https://github.com/lyft/l5kit), the full text is the following:\n\n### 1. Clone the repo\n~~~\ngit clone https://github.com/lyft/l5kit.git ./\n~~~\n\n### 2. Install L5Kit\n~~~\ncd l5kit\npip install -r requirements.txt\n~~~\n\nIf you run into trouble installing L5Kit on Windows, you may need to\n- **install Pytorch and torchvision manually first (select the correct version required by your system, i.e. GPU or CPU-only), then run L5Kit install (remove the packages torch and torchvision from setup.py)**\n- install Microsoft C++ Build Tools.\n\n---\n\nIn summary,\n1. Install Pytorch (and torchvision) with any version first.\n2. Clone the repository\n3. Remove the line `\"torch>=1.5.0,<1.6.0\", \"torchvision>=0.6.0,<0.7.0\"` in the `setup.py` in the `l5kit` folder.\n4. Finally,  run the code\n~~~\ncd l5kit\npip install -r requirements\n~~~\n\n---\nI hope you to fix the problem.",
      "votes": null
    },
    {
      "id": "1002542",
      "postDate": "09/08/2020 07:59:33",
      "content": "<p>it show already satisfy but when come to import the packages its show torch module not found</p>",
      "rawMarkdown": "it show already satisfy but when come to import the packages its show torch module not found",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1002246,
      "author_name": "bretttaylor",
      "author_url": "",
      "post_date": "09/08/2020 01:03:00",
      "content": "<p>From what I could tell, you have to explicitly install version 1.5.0 of Torch (latest version wouldn't work).  If using Pip:</p>\n<p>python -m pip install torch==1.5.0 torchvision==0.6.0 -f <a href=\"https://download.pytorch.org/whl/torch_stable.html\" target=\"_blank\">https://download.pytorch.org/whl/torch_stable.html</a></p>",
      "votes": null,
      "replies": [
        {
          "id": 1002542,
          "author_name": "chandrasekar19102",
          "author_url": "",
          "post_date": "09/08/2020 07:59:33",
          "content": "<p>it show already satisfy but when come to import the packages its show torch module not found</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1002538,
      "author_name": "micajoumathematics",
      "author_url": "",
      "post_date": "09/08/2020 07:58:28",
      "content": "<p>I think you are using Windows. I encountered the same error before, and I recommend you to install <code>l5kit</code> by using <code>git clone</code> instead of <code>pip install</code>.<br></p>\n<hr>\n<p>According to <code>Installing as a Developer</code> in <a href=\"https://github.com/lyft/l5kit\" target=\"_blank\">https://github.com/lyft/l5kit</a>, the full text is the following:</p>\n<h3>1. Clone the repo</h3>\n<pre><code>git clone https://github.com/lyft/l5kit.git ./\n</code></pre>\n<h3>2. Install L5Kit</h3>\n<pre><code>cd l5kit\npip install -r requirements.txt\n</code></pre>\n<p>If you run into trouble installing L5Kit on Windows, you may need to</p>\n<ul>\n<li><strong>install Pytorch and torchvision manually first (select the correct version required by your system, i.e. GPU or CPU-only), then run L5Kit install (remove the packages torch and torchvision from setup.py)</strong></li>\n<li>install Microsoft C++ Build Tools.</li>\n</ul>\n<hr>\n<p>In summary,</p>\n<ol>\n<li>Install Pytorch (and torchvision) with any version first.</li>\n<li>Clone the repository</li>\n<li>Remove the line <code>\"torch&gt;=1.5.0,&lt;1.6.0\", \"torchvision&gt;=0.6.0,&lt;0.7.0\"</code> in the <code>setup.py</code> in the <code>l5kit</code> folder.</li>\n<li>Finally,  run the code</li>\n</ol>\n<pre><code>cd l5kit\npip install -r requirements\n</code></pre>\n<hr>\n<p>I hope you to fix the problem.</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1002244": "**## ### Error Message**\nERROR: Could not find a version that satisfies the requirement torch<1.6.0,>=1.5.0 (from l5kit) (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)\nERROR: No matching distribution found for torch<1.6.0,>=1.5.0 (from l5kit)",
    "1002246": "From what I could tell, you have to explicitly install version 1.5.0 of Torch (latest version wouldn't work).  If using Pip:\n\npython -m pip install torch==1.5.0 torchvision==0.6.0 -f https://download.pytorch.org/whl/torch_stable.html",
    "1002538": "I think you are using Windows. I encountered the same error before, and I recommend you to install `l5kit` by using `git clone` instead of `pip install`.<br/>\n\n---\n\nAccording to `Installing as a Developer` in [https://github.com/lyft/l5kit](https://github.com/lyft/l5kit), the full text is the following:\n\n### 1. Clone the repo\n~~~\ngit clone https://github.com/lyft/l5kit.git ./\n~~~\n\n### 2. Install L5Kit\n~~~\ncd l5kit\npip install -r requirements.txt\n~~~\n\nIf you run into trouble installing L5Kit on Windows, you may need to\n- **install Pytorch and torchvision manually first (select the correct version required by your system, i.e. GPU or CPU-only), then run L5Kit install (remove the packages torch and torchvision from setup.py)**\n- install Microsoft C++ Build Tools.\n\n---\n\nIn summary,\n1. Install Pytorch (and torchvision) with any version first.\n2. Clone the repository\n3. Remove the line `\"torch>=1.5.0,<1.6.0\", \"torchvision>=0.6.0,<0.7.0\"` in the `setup.py` in the `l5kit` folder.\n4. Finally,  run the code\n~~~\ncd l5kit\npip install -r requirements\n~~~\n\n---\nI hope you to fix the problem.",
    "1002542": "it show already satisfy but when come to import the packages its show torch module not found"
  },
  "source": "meta"
}