{
  "id": 146700,
  "title": "A stupid question about notebook of type \"script\" using \"!pip\"",
  "url": "/competitions/flower-classification-with-tpus/discussion/146700",
  "author_name": "",
  "post_date": "2020-04-28T07:06:25.899351500Z",
  "votes": null,
  "comment_count": 4,
  "views": 0,
  "content": "<p>I use the command \"!pip install -q efficientnet\" like others but in the notebook type of script. It can be used in the test phase of running my scripts but when I save a new version and want to generate results, I will  got SyntaxError .. in \"!pip install ...\" How can I solve it?</p>",
  "messages": [
    {
      "id": "824128",
      "postDate": "04/28/2020 07:06:25",
      "content": "<p>I use the command \"!pip install -q efficientnet\" like others but in the notebook type of script. It can be used in the test phase of running my scripts but when I save a new version and want to generate results, I will  got SyntaxError .. in \"!pip install ...\" How can I solve it?</p>",
      "rawMarkdown": "I use the command \"!pip install -q efficientnet\" like others but in the notebook type of script. It can be used in the test phase of running my scripts but when I save a new version and want to generate results, I will  got SyntaxError .. in \"!pip install ...\" How can I solve it?",
      "votes": null
    },
    {
      "id": "824132",
      "postDate": "04/28/2020 07:10:29",
      "content": "<p><a href=\"https://www.kaggle.com/ilearning99/flower-classification-with-tpus-efn-densenet\">https://www.kaggle.com/ilearning99/flower-classification-with-tpus-efn-densenet</a>\nThis is the problem. I am poor in English.</p>",
      "rawMarkdown": "https://www.kaggle.com/ilearning99/flower-classification-with-tpus-efn-densenet\nThis is the problem. I am poor in English.",
      "votes": null
    },
    {
      "id": "825084",
      "postDate": "04/28/2020 19:11:44",
      "content": "<p><a href=\"/ilearning99\">@ilearning99</a>  there is no stupid questions</p>\n\n<p>Try running that cell again and ensure that internet is enabled. I verified and there is no issue in running that snippet of code</p>",
      "rawMarkdown": "ilearning99  there is no stupid questions\n\n Try running that cell again and ensure that internet is enabled. I verified and there is no issue in running that snippet of code",
      "votes": null
    },
    {
      "id": "825418",
      "postDate": "04/29/2020 01:57:39",
      "content": "<p>This error is about the notebook type of \"script\" not of the type notebook. It happens only when you save the commit and want to submit the result at every time. (My Internet speed is poor. I found it is easier for me to create a notebook of \"script\")</p>",
      "rawMarkdown": "This error is about the notebook type of \"script\" not of the type notebook. It happens only when you save the commit and want to submit the result at every time. (My Internet speed is poor. I found it is easier for me to create a notebook of \"script\")",
      "votes": null
    },
    {
      "id": "825950",
      "postDate": "04/29/2020 11:00:31",
      "content": "<p><code>!</code> is a feature for jupyter notebook,\nIn script, you can try \n<code>import os</code>\n<code>os.system(pip install xxx)</code></p>",
      "rawMarkdown": "`! ` is a feature for jupyter notebook,\nIn script, you can try \n`import os`\n`os.system(pip install xxx)`",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 824132,
      "author_name": "ilearning99",
      "author_url": "",
      "post_date": "04/28/2020 07:10:29",
      "content": "<p><a href=\"https://www.kaggle.com/ilearning99/flower-classification-with-tpus-efn-densenet\">https://www.kaggle.com/ilearning99/flower-classification-with-tpus-efn-densenet</a>\nThis is the problem. I am poor in English.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 825084,
      "author_name": "kurianbenoy",
      "author_url": "",
      "post_date": "04/28/2020 19:11:44",
      "content": "<p><a href=\"/ilearning99\">@ilearning99</a>  there is no stupid questions</p>\n\n<p>Try running that cell again and ensure that internet is enabled. I verified and there is no issue in running that snippet of code</p>",
      "votes": null,
      "replies": [
        {
          "id": 825418,
          "author_name": "ilearning99",
          "author_url": "",
          "post_date": "04/29/2020 01:57:39",
          "content": "<p>This error is about the notebook type of \"script\" not of the type notebook. It happens only when you save the commit and want to submit the result at every time. (My Internet speed is poor. I found it is easier for me to create a notebook of \"script\")</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 825950,
      "author_name": "mzr2017",
      "author_url": "",
      "post_date": "04/29/2020 11:00:31",
      "content": "<p><code>!</code> is a feature for jupyter notebook,\nIn script, you can try \n<code>import os</code>\n<code>os.system(pip install xxx)</code></p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "824128": "I use the command \"!pip install -q efficientnet\" like others but in the notebook type of script. It can be used in the test phase of running my scripts but when I save a new version and want to generate results, I will  got SyntaxError .. in \"!pip install ...\" How can I solve it?",
    "824132": "https://www.kaggle.com/ilearning99/flower-classification-with-tpus-efn-densenet\nThis is the problem. I am poor in English.",
    "825084": "ilearning99  there is no stupid questions\n\n Try running that cell again and ensure that internet is enabled. I verified and there is no issue in running that snippet of code",
    "825418": "This error is about the notebook type of \"script\" not of the type notebook. It happens only when you save the commit and want to submit the result at every time. (My Internet speed is poor. I found it is easier for me to create a notebook of \"script\")",
    "825950": "`! ` is a feature for jupyter notebook,\nIn script, you can try \n`import os`\n`os.system(pip install xxx)`"
  },
  "source": "meta"
}