{"id":14631,"date":"2024-01-05T19:33:07","date_gmt":"2024-01-05T16:03:07","guid":{"rendered":"https:\/\/rasanegar.com\/blog\/%d8%b1%d9%81%d8%b9-%d8%ae%d8%b7%d8%a7%db%8c-importerror-%d8%a8%d8%af%d9%88%d9%86-%d9%85%d8%a7%da%98%d9%88%d9%84-%d8%a8%d8%a7-%d9%86%d8%a7%d9%85-xgboost-jupyter-%d9%86%d9%88%d8%aa-%d8%a8%d9%88%da%a9\/"},"modified":"2024-01-05T19:33:07","modified_gmt":"2024-01-05T16:03:07","slug":"%d8%b1%d9%81%d8%b9-%d8%ae%d8%b7%d8%a7%db%8c-importerror-%d8%a8%d8%af%d9%88%d9%86-%d9%85%d8%a7%da%98%d9%88%d9%84-%d8%a8%d8%a7-%d9%86%d8%a7%d9%85-xgboost-jupyter-%d9%86%d9%88%d8%aa-%d8%a8%d9%88%da%a9","status":"publish","type":"post","link":"https:\/\/rasanegaar.com\/blog\/%d8%b1%d9%81%d8%b9-%d8%ae%d8%b7%d8%a7%db%8c-importerror-%d8%a8%d8%af%d9%88%d9%86-%d9%85%d8%a7%da%98%d9%88%d9%84-%d8%a8%d8%a7-%d9%86%d8%a7%d9%85-xgboost-jupyter-%d9%86%d9%88%d8%aa-%d8%a8%d9%88%da%a9\/","title":{"rendered":"\u0631\u0641\u0639 \u062e\u0637\u0627\u06cc ImportError &#8220;\u0628\u062f\u0648\u0646 \u0645\u0627\u0698\u0648\u0644 \u0628\u0627 \u0646\u0627\u0645 xgboost&#8221;. Jupyter \u0646\u0648\u062a \u0628\u0648\u06a9"},"content":{"rendered":"<span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">\u0632\u0645\u0627\u0646 \u0644\u0627\u0632\u0645 \u0628\u0631\u0627\u06cc \u0645\u0637\u0627\u0644\u0639\u0647: <\/span> <span class=\"rt-time\"> &lt; 1<\/span> <span class=\"rt-label rt-postfix\">\u062f\u0642\u06cc\u0642\u0647<\/span><\/span><p> <br \/>\n<\/p>\n<div><noscript><\/noscript><\/p>\n<p>XGBoost \u0637\u0631\u0641\u062f\u0627\u0631\u0627\u0646 \u0632\u06cc\u0627\u062f\u06cc \u067e\u06cc\u062f\u0627 \u0645\u06cc \u06a9\u0646\u062f \u0648 \u062f\u0627\u0646\u0644\u0648\u062f\u0647\u0627\u06cc \u0622\u0646 \u062f\u0631 \u062d\u0627\u0644 \u0627\u0641\u0632\u0627\u06cc\u0634 \u0627\u0633\u062a.  \u0628\u0627 \u0627\u06cc\u0646 \u062d\u0627\u0644\u060c \u06cc\u06a9 \u0645\u0634\u06a9\u0644 \u0645\u0634\u062a\u0631\u06a9 \u062f\u0631 \u0646\u0635\u0628 \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u062f\u060c \u0628\u0647 \u062e\u0635\u0648\u0635 \u062f\u0631 Jupyter \u0645\u062d\u06cc\u0637 \u0647\u0627\u06cc \u0646\u0648\u062a \u0628\u0648\u06a9 \u06a9\u0647 \u0645\u0639\u0645\u0648\u0644\u0627\u064b \u062f\u0631 \u0622\u0646\u0647\u0627 \u0646\u0635\u0628 \u0645\u06cc \u0634\u0648\u062f:<\/p>\n<pre><code class=\"hljs\">! pip install xgboost\n\n! pip3 install xgboost\n\n! conda install -c conda-forge xgboost\n<\/code><\/pre>\n<p>\u0627\u063a\u0644\u0628 \u0627\u0648\u0642\u0627\u062a\u060c \u062d\u062a\u06cc \u0627\u06af\u0631 \u0627\u06cc\u0646 \u0631\u0648\u06cc\u06a9\u0631\u062f \u0628\u0631\u0627\u06cc \u0645\u0627\u0698\u0648\u0644 \u0647\u0627\u06cc \u062f\u06cc\u06af\u0631 \u06a9\u0627\u0631 \u06a9\u0646\u062f\u060c \u0627\u06cc\u0646 \u0645\u0646\u062c\u0631 \u0628\u0647 \u0645\u0648\u0627\u0631\u062f \u0632\u06cc\u0631 \u0645\u06cc \u0634\u0648\u062f:<\/p>\n<pre><code class=\"hljs\">ImportError: No module named xgboost\n<\/code><\/pre>\n<p>\u0628\u0647 \u0646\u0638\u0631 \u0645\u06cc \u0631\u0633\u062f \u06a9\u0647 \u0627\u06cc\u0646 \u0645\u0648\u0636\u0648\u0639 \u0628\u0647 \u0648\u06cc\u0698\u0647 \u062f\u0631 \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u062f Jupyter \u0646\u0648\u062a \u0628\u0648\u06a9 \u0647\u0627 &#8211; \u0631\u0627\u06cc\u062c \u062a\u0631\u06cc\u0646 \u0645\u062d\u06cc\u0637\u06cc \u06a9\u0647 \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u062f\u0631 \u0622\u0646 \u0627\u0632 XGBoost \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f.  \u0627\u06cc\u0646 \u0645\u0634\u06a9\u0644 \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u067e\u0627\u06cc\u062a\u0648\u0646 \u0628\u0631\u0637\u0631\u0641 \u0634\u0648\u062f <code>pip<\/code> \u0645\u0627\u0698\u0648\u0644 \u0628\u0647 \u0635\u0631\u0627\u062d\u062a:<\/p>\n<pre><code class=\"hljs\">! python -m pip install xgboost\n\n! python3 -m pip install xgboost\n<\/code><\/pre>\n<p><strong>\u0627\u0645\u0627 \u0647\u0645\u0627\u0646\u0637\u0648\u0631 \u06a9\u0647 \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u0634\u06a9\u0633\u062a \u0628\u062e\u0648\u0631\u062f\u060c \u06cc\u06a9\u06cc \u0627\u0632 \u0631\u0627\u06cc\u062c \u062a\u0631\u06cc\u0646 \u0631\u0627\u0647 \u062d\u0644 \u0647\u0627 \u0627\u06cc\u0646 \u0627\u0633\u062a:<\/strong><\/p>\n<pre><code class=\"hljs\"><span class=\"hljs-keyword\">import<\/span> sys\n!{sys.executable} -m pip install xgboost\n<\/code><\/pre>\n<p>\u067e\u0633 \u0627\u0632 \u0622\u0646\u060c \u0634\u0645\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f import \u0628\u062f\u0648\u0646 \u0645\u0634\u06a9\u0644:<\/p>\n<pre><code class=\"hljs\"><span class=\"hljs-keyword\">import<\/span> xgboost\n<\/code><\/pre>\n<\/div>\n<p><script>\n                        !function(f,b,e,v,n,t,s)\n                        {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n                        n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n                        if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n                        n.queue=();t=b.createElement(e);t.async=!0;\n                        t.src=v;s=b.getElementsByTagName(e)(0);\n                        s.parentNode.insertBefore(t,s)}(window, document,'script',\n                        'https:\/\/connect.facebook.net\/en_US\/fbevents.js');\n                        fbq('init', '525232124909042');\n                        fbq('track', 'PageView');\n                    <\/script>    (\u0628\u0631\u0686\u0633\u0628\u200c\u0647\u0627 \u0628\u0647 \u062a\u0631\u062c\u0645\u0647)# python<br \/>\n<br \/><br \/>\n<br \/>\u0645\u0646\u062a\u0634\u0631 \u0634\u062f\u0647 \u062f\u0631 1403-01-05 19:33:05<br \/>\n<\/p>\n\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-center kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;center&quot;,&quot;id&quot;:&quot;14631&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;0&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;0&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;\u0627\u0645\u062a\u06cc\u0627\u0632 \u0634\u0645\u0627 \u0628\u0647 \u0627\u06cc\u0646 \u0645\u0637\u0644\u0628&quot;,&quot;legend&quot;:&quot;0\\\/5 (0 \u0631\u0627\u06cc)&quot;,&quot;size&quot;:&quot;30&quot;,&quot;title&quot;:&quot;\u0631\u0641\u0639 \u062e\u0637\u0627\u06cc ImportError \\u0026quot;\u0628\u062f\u0648\u0646 \u0645\u0627\u0698\u0648\u0644 \u0628\u0627 \u0646\u0627\u0645 xgboost\\u0026quot;. Jupyter \u0646\u0648\u062a \u0628\u0648\u06a9&quot;,&quot;width&quot;:&quot;0&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} ({count} \u0631\u0627\u06cc)&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 0px;\">\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 24px;\">\n            <span class=\"kksr-muted\">\u0627\u0645\u062a\u06cc\u0627\u0632 \u0634\u0645\u0627 \u0628\u0647 \u0627\u06cc\u0646 \u0645\u0637\u0644\u0628<\/span>\n    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p><span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">\u0632\u0645\u0627\u0646 \u0644\u0627\u0632\u0645 \u0628\u0631\u0627\u06cc \u0645\u0637\u0627\u0644\u0639\u0647: <\/span> <span class=\"rt-time\"> &lt; 1<\/span> <span class=\"rt-label rt-postfix\">\u062f\u0642\u06cc\u0642\u0647<\/span><\/span>XGBoost \u0637\u0631\u0641\u062f\u0627\u0631\u0627\u0646 \u0632\u06cc\u0627\u062f\u06cc \u067e\u06cc\u062f\u0627 \u0645\u06cc \u06a9\u0646\u062f \u0648 \u062f\u0627\u0646\u0644\u0648\u062f\u0647\u0627\u06cc \u0622\u0646 \u062f\u0631 \u062d\u0627\u0644 \u0627\u0641\u0632\u0627\u06cc\u0634 \u0627\u0633\u062a. \u0628\u0627 \u0627\u06cc\u0646 \u062d\u0627\u0644\u060c \u06cc\u06a9 \u0645\u0634\u06a9\u0644 \u0645\u0634\u062a\u0631\u06a9 \u062f\u0631 \u0646\u0635\u0628 \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u062f\u060c \u0628\u0647 \u062e\u0635\u0648\u0635 \u062f\u0631 Jupyter \u0645\u062d\u06cc\u0637 \u0647\u0627\u06cc \u0646\u0648\u062a \u0628\u0648\u06a9 \u06a9\u0647 \u0645\u0639\u0645\u0648\u0644\u0627\u064b \u062f\u0631 \u0622\u0646\u0647\u0627 \u0646\u0635\u0628 \u0645\u06cc \u0634\u0648\u062f: ! pip install xgboost ! pip3 install xgboost ! conda install -c conda-forge xgboost \u0627\u063a\u0644\u0628 \u0627\u0648\u0642\u0627\u062a\u060c \u062d\u062a\u06cc [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":9759,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1743,620],"tags":[],"class_list":["post-14631","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python","category-programming"],"acf":[],"_links":{"self":[{"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/posts\/14631","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/comments?post=14631"}],"version-history":[{"count":0,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/posts\/14631\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/media\/9759"}],"wp:attachment":[{"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/media?parent=14631"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/categories?post=14631"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/tags?post=14631"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}