{"id":34875,"date":"2024-08-14T15:35:50","date_gmt":"2024-08-14T08:35:50","guid":{"rendered":"http:\/\/jupitek.maudemo.vip\/index.php\/2024\/08\/14\/installing-anaconda-on-ubuntu\/"},"modified":"2024-08-14T15:35:50","modified_gmt":"2024-08-14T08:35:50","slug":"installing-anaconda-on-ubuntu","status":"publish","type":"post","link":"https:\/\/jupitek.maudemo.vip\/index.php\/2024\/08\/14\/installing-anaconda-on-ubuntu\/","title":{"rendered":"C\u00e0i \u0111\u1eb7t Anaconda tr\u00ean Ubuntu"},"content":{"rendered":"<h2 id=\"install-anaconda-on-ubuntu\">C\u00e0i \u0111\u1eb7t Anaconda tr\u00ean Ubuntu<a href=\"https:\/\/www.linode.com\/docs\/guides\/how-to-install-anaconda\/#install-anaconda-on-ubuntu\"><\/a><\/h2>\n<p>C\u00e0i \u0111\u1eb7t Anaconda tr\u00ean Linode (ho\u1eb7c h\u1ec7 th\u1ed1ng Linux kh\u00e1c) b\u1eb1ng CLI c\u00f3 v\u1ebb kh\u00f3 kh\u0103n, nh\u01b0ng \u0111\u1eebng \u0111\u1ec3 \u0111i\u1ec1u \u0111\u00f3 l\u00e0m b\u1ea1n s\u1ee3. B\u1ea1n c\u00f3 th\u1ec3 c\u00e0i \u0111\u1eb7t m\u00e0 kh\u00f4ng c\u1ea7n s\u1eed d\u1ee5ng m\u00f4i tr\u01b0\u1eddng \u0111\u1ed3 h\u1ecda.<\/p>\n<p>Th\u1ef1c hi\u1ec7n theo c\u00e1c h\u01b0\u1edbng d\u1eabn n\u00e0y \u0111\u1ec3 t\u1ea3i xu\u1ed1ng phi\u00ean b\u1ea3n m\u1edbi nh\u1ea5t c\u1ee7a tr\u00ecnh c\u00e0i \u0111\u1eb7t Anaconda v\u00e0 s\u1eed d\u1ee5ng n\u00f3 \u0111\u1ec3 c\u00e0i \u0111\u1eb7t Anaconda. T\u1ea1i th\u1eddi \u0111i\u1ec3m vi\u1ebft h\u01b0\u1edbng d\u1eabn n\u00e0y, phi\u00ean b\u1ea3n m\u1edbi nh\u1ea5t l\u00e0 2020.11.<\/p>\n<p>1K\u1ebft n\u1ed1i v\u1edbi Linode c\u1ee7a b\u1ea1n b\u1eb1ng SSH (ho\u1eb7c Lish) v\u00e0 \u0111\u0103ng nh\u1eadp b\u1eb1ng t\u00ean ng\u01b0\u1eddi d\u00f9ng v\u00e0 m\u1eadt kh\u1ea9u c\u1ee7a b\u1ea1n.<\/p>\n<p>2.\u0110\u1ea3m b\u1ea3o b\u1ea1n \u0111ang \u1edf trong shell&nbsp;<em>Bash<\/em>&nbsp;b\u1eb1ng c\u00e1ch nh\u1eadp&nbsp;<code>bash<\/code>.<\/p>\n<p>3.N\u1ebfu b\u1ea1n ch\u01b0a c\u00f3 th\u01b0 m\u1ee5c T\u1ea3i xu\u1ed1ng, h\u00e3y t\u1ea1o m\u1ed9t th\u01b0 m\u1ee5c b\u1eb1ng c\u00e1ch nh\u1eadp&nbsp;<code>mkdir Downloads<\/code>.<\/p>\n<p>4.Chuy\u1ec3n sang th\u01b0 m\u1ee5c T\u1ea3i xu\u1ed1ng m\u1edbi c\u1ee7a b\u1ea1n b\u1eb1ng c\u00e1ch nh\u1eadp&nbsp;<code>cd Downloads<\/code>.<\/p>\n<p>5.Trong tr\u00ecnh duy\u1ec7t c\u1ee7a b\u1ea1n, h\u00e3y v\u00e0o&nbsp;<a href=\"https:\/\/www.anaconda.com\/products\/individual#Downloads\" target=\"_blank\" rel=\"noreferrer noopener\">m\u1ee5c t\u1ea3i xu\u1ed1ng Anaconda Individual Edition<\/a>&nbsp;v\u00e0 sao ch\u00e9p li\u00ean k\u1ebft c\u1ee7a \u201cTr\u00ecnh c\u00e0i \u0111\u1eb7t 64-Bit (x86)\u201d, nh\u01b0ng kh\u00f4ng t\u1ea3i xu\u1ed1ng.<img decoding=\"async\" src=\"https:\/\/www.linode.com\/docs\/guides\/how-to-install-anaconda\/anaconda-download-link_huffeaf9c57d562d4b3d3fce37e1d25d57_77934_1388x0_resize_q71_bgfafafc_catmullrom_3.jpg\" alt=\"Ch\u1ecdn t\u00f9y ch\u1ecdn sao ch\u00e9p li\u00ean k\u1ebft tr\u00ean trang t\u1ea3i xu\u1ed1ng Anaconda\"><\/p>\n<p>6.T\u1ea1i d\u1ea5u nh\u1eafc l\u1ec7nh c\u1ee7a thi\u1ebft b\u1ecb \u0111\u1ea7u cu\u1ed1i, nh\u1eadp l\u1ec7nh sau, thay th\u1ebf URL b\u1eb1ng URL b\u1ea1n \u0111\u00e3 sao ch\u00e9p tr\u01b0\u1edbc \u0111\u00f3:<\/p>\n<pre class=\"wp-block-code\"><code>wget https:\/\/repo.anaconda.com\/archive\/Anaconda3-2020.11-Linux-x86_64.sh\n<\/code><\/pre>\n<p>Ph\u1ea7n \u201cAnaconda3-2020.11\u201d s\u1ebd thay \u0111\u1ed5i khi phi\u00ean b\u1ea3n m\u1edbi \u0111\u01b0\u1ee3c ph\u00e1t h\u00e0nh.<\/p>\n<p>7.Nh\u1ea5n Enter (ho\u1eb7c Return), t\u1ec7p n\u00e0y c\u00f3 dung l\u01b0\u1ee3ng l\u1edbn v\u00e0 m\u1ea5t m\u1ed9t ch\u00fat th\u1eddi gian \u0111\u1ec3 t\u1ea3i xu\u1ed1ng ho\u00e0n to\u00e0n.<\/p>\n<p>8.Sau khi qu\u00e1 tr\u00ecnh t\u1ea3i xu\u1ed1ng ho\u00e0n t\u1ea5t v\u00e0 b\u1ea1n quay l\u1ea1i d\u1ea5u nh\u1eafc l\u1ec7nh, h\u00e3y nh\u1eadp l\u1ec7nh sau, thay th\u1ebf t\u00ean t\u1ec7p b\u1eb1ng t\u00ean t\u1ec7p b\u1ea1n v\u1eeba t\u1ea3i xu\u1ed1ng:<\/p>\n<pre class=\"wp-block-code\"><code>bash ~\/Downloads\/Anaconda3-2020.11-Linux-x86_64.sh\n<\/code><\/pre>\n<p>9.Cu\u1ed9n qua th\u1ecfa thu\u1eadn c\u1ea5p ph\u00e9p v\u00e0 \u0111\u1ed3ng \u00fd b\u1eb1ng c\u00e1ch nh\u1eadp&nbsp;<code>Yes<\/code>.<\/p>\n<p>10.Tr\u00ecnh c\u00e0i \u0111\u1eb7t nh\u1eafc b\u1ea1n nh\u1ea5n Enter (ho\u1eb7c Return) \u0111\u1ec3 ch\u1ea5p nh\u1eadn v\u1ecb tr\u00ed c\u00e0i \u0111\u1eb7t m\u1eb7c \u0111\u1ecbnh l\u00e0 th\u01b0 m\u1ee5c c\u00f3 t\u00ean&nbsp;<em>anaconda3<\/em>&nbsp;trong th\u01b0 m\u1ee5c g\u1ed1c. Ch\u00fang t\u00f4i khuy\u00ean b\u1ea1n n\u00ean ch\u1ea5p nh\u1eadn v\u1ecb tr\u00ed c\u00e0i \u0111\u1eb7t m\u1eb7c \u0111\u1ecbnh. Tr\u00ecnh c\u00e0i \u0111\u1eb7t ch\u1ea1y trong v\u00e0i ph\u00fat.<\/p>\n<p>11.Tr\u00ecnh c\u00e0i \u0111\u1eb7t s\u1ebd nh\u1eafc b\u1ea1n \u201ckh\u1edfi t\u1ea1o Anaconda3 b\u1eb1ng c\u00e1ch ch\u1ea1y&nbsp;<code>conda init<\/code>.\u201d Ch\u00fang t\u00f4i khuy\u00ean b\u1ea1n n\u00ean nh\u1eadp&nbsp;<code>yes<\/code>(n\u1ebfu b\u1ea1n nh\u1eadp&nbsp;<code>no<\/code>, conda s\u1ebd kh\u00f4ng s\u1eeda \u0111\u1ed5i t\u1eadp l\u1ec7nh shell c\u1ee7a b\u1ea1n).<\/p>\n<p>12.Qu\u00e1 tr\u00ecnh c\u00e0i \u0111\u1eb7t ho\u00e0n t\u1ea5t khi b\u1ea1n th\u1ea5y k\u1ebft qu\u1ea3 \u0111\u1ea7u ra n\u00e0y:<\/p>\n<pre class=\"wp-block-code\"><code>Thank you for installing Anaconda!\n<\/code><\/pre>\n<p>13.\u0110\u1ec3 qu\u00e1 tr\u00ecnh c\u00e0i \u0111\u1eb7t c\u00f3 hi\u1ec7u l\u1ef1c, h\u00e3y nh\u1eadp&nbsp;<code>source ~\/.bashrc<\/code>.<\/p>\n<p>14.\u0110\u1ec3 x\u00e1c minh c\u00e0i \u0111\u1eb7t, h\u00e3y nh\u1eadp&nbsp;<code>conda info<\/code>. \u0110\u1ea7u ra s\u1ebd tr\u00f4ng gi\u1ed1ng nh\u01b0 th\u1ebf n\u00e0y:<\/p>\n<pre class=\"wp-block-code\"><code> active environment : base\n    active env location : \/home\/example_user\/anaconda3\n            shell level : 1\n       user config file : \/home\/example_user\/.condarc\n populated config files :\n          conda version : 4.10.1\n    conda-build version : 3.20.5\n         python version : 3.8.5.final.0\n       virtual packages : __linux=5.4.0=0\n                          __glibc=2.31=0\n                          __unix=0=0\n                          __archspec=1=x86_64\n       base environment : \/home\/example_user\/anaconda3  (writable)\n      conda av data dir : \/home\/example_user\/anaconda3\/etc\/conda\n  conda av metadata url : https:\/\/repo.anaconda.com\/pkgs\/main\n           channel URLs : https:\/\/repo.anaconda.com\/pkgs\/main\/linux-64\n                          https:&#47;&#47;repo.anaconda.com\/pkgs\/main\/noarch\n                          https:\/\/repo.anaconda.com\/pkgs\/r\/linux-64\n                          https:\/\/repo.anaconda.com\/pkgs\/r\/noarch\n          package cache : \/home\/example_user\/anaconda3\/pkgs\n                          \/home\/example_user\/.conda\/pkgs\n       envs directories : \/home\/example_user\/anaconda3\/envs\n                          \/home\/example_user\/.conda\/envs\n               platform : linux-64\n             user-agent : conda\/4.10.1 requests\/2.25.1 CPython\/3.8.5 Linux\/5.4.0-72-generic ubuntu\/20.04.2 glibc\/2.31\n                UID:GID : 1000:1000\n             netrc file : None\n           offline mode : False<\/code><\/pre>\n<p>15.Cu\u1ed1i c\u00f9ng, x\u00f3a t\u1ec7p c\u00e0i \u0111\u1eb7t b\u1eb1ng c\u00e1ch nh\u1eadp l\u1ec7nh sau, \u0111\u1ea3m b\u1ea3o \u0111\u1ed5i t\u00ean t\u1ec7p th\u00e0nh t\u00ean b\u1ea1n \u0111\u00e3 t\u1ea3i xu\u1ed1ng tr\u01b0\u1edbc \u0111\u00f3:<\/p>\n<pre class=\"wp-block-code\"><code>rm Anaconda3-2020.11-Linux-x86_64.sh\n<\/code><\/pre>\n<h2 id=\"update-anaconda-on-ubuntu\">C\u1eadp nh\u1eadt Anaconda tr\u00ean Ubuntu<a href=\"https:\/\/www.linode.com\/docs\/guides\/how-to-install-anaconda\/#update-anaconda-on-ubuntu\"><\/a><\/h2>\n<p>Gi\u1ed1ng nh\u01b0 vi\u1ec7c c\u1eadp nh\u1eadt Ubuntu, c\u00f3 hai b\u01b0\u1edbc \u0111\u1ec3 c\u1eadp nh\u1eadt Anaconda. Sau khi \u0111\u0103ng nh\u1eadp v\u00e0o Linode c\u1ee7a b\u1ea1n b\u1eb1ng SSH ho\u1eb7c m\u1edf \u1ee9ng d\u1ee5ng terminal tr\u00ean m\u1ed9t h\u1ec7 th\u1ed1ng kh\u00e1c:<\/p>\n<ol>\n<li>C\u1eadp nh\u1eadt ti\u1ec7n \u00edch conda b\u1eb1ng c\u00e1ch nh\u1eadp&nbsp;<code>conda update conda<\/code>.<\/li>\n<li>Sau khi ho\u00e0n t\u1ea5t, h\u00e3y c\u1eadp nh\u1eadt Anaconda b\u1eb1ng c\u00e1ch nh\u1eadp&nbsp;<code>conda update anaconda<\/code>.<\/li>\n<\/ol>\n<h2 id=\"further-reading\">\u0110\u1ecdc th\u00eam<a href=\"https:\/\/www.linode.com\/docs\/guides\/how-to-install-anaconda\/#further-reading\"><\/a><\/h2>\n<ul>\n<li>Anaconda c\u00f3 c\u01a1 s\u1edf ki\u1ebfn \u200b\u200bth\u1ee9c s\u00e2u r\u1ed9ng v\u1ec1 Anaconda Individual Edition (v\u00e0 c\u00e1c phi\u00ean b\u1ea3n kh\u00e1c)&nbsp;<a href=\"https:\/\/docs.anaconda.com\/anaconda\/\" target=\"_blank\" rel=\"noreferrer noopener\">tr\u00ean trang web ch\u00ednh th\u1ee9c<\/a>&nbsp;.<\/li>\n<li>\u0110\u1eb7c bi\u1ec7t quan tr\u1ecdng \u0111\u1ed1i v\u1edbi ng\u01b0\u1eddi d\u00f9ng CLI l\u00e0 t\u00ecm hi\u1ec3u ti\u1ec7n \u00edch conda. D\u1ef1 \u00e1n conda c\u00f3 \u201ch\u01b0\u1edbng d\u1eabn 20 ph\u00fat \u0111\u1ec3 b\u1eaft \u0111\u1ea7u v\u1edbi conda\u201d c\u00f3 s\u1eb5n&nbsp;<a href=\"https:\/\/conda.io\/projects\/conda\/en\/latest\/user-guide\/getting-started.html\" target=\"_blank\" rel=\"noreferrer noopener\">t\u1ea1i \u0111\u00e2y<\/a>&nbsp;.<\/li>\n<\/ul>\n<h2 id=\"more-information\">Th\u00f4ng tin th\u00eam<\/h2>\n<p>B\u1ea1n c\u00f3 th\u1ec3 mu\u1ed1n tham kh\u1ea3o c\u00e1c ngu\u1ed3n sau \u0111\u1ec3 bi\u1ebft th\u00eam th\u00f4ng tin v\u1ec1 ch\u1ee7 \u0111\u1ec1 n\u00e0y. M\u1eb7c d\u00f9 ch\u00fang t\u00f4i cung c\u1ea5p v\u1edbi hy v\u1ecdng r\u1eb1ng ch\u00fang s\u1ebd h\u1eefu \u00edch, nh\u01b0ng xin l\u01b0u \u00fd r\u1eb1ng ch\u00fang t\u00f4i kh\u00f4ng th\u1ec3 \u0111\u1ea3m b\u1ea3o t\u00ednh ch\u00ednh x\u00e1c ho\u1eb7c t\u00ednh k\u1ecbp th\u1eddi c\u1ee7a c\u00e1c t\u00e0i li\u1ec7u \u0111\u01b0\u1ee3c l\u01b0u tr\u1eef b\u00ean ngo\u00e0i.<\/p>\n<ul>\n<li><a href=\"https:\/\/docs.anaconda.com\/anaconda\/\" target=\"_blank\" rel=\"noreferrer noopener\">T\u00e0i li\u1ec7u Anaconda<\/a><\/li>\n<\/ul>\n<p>Ngu\u1ed3n: https:\/\/www.linode.com\/docs\/guides\/how-to-install-anaconda\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p>C\u00e0i \u0111\u1eb7t Anaconda tr\u00ean Ubuntu C\u00e0i \u0111\u1eb7t Anaconda tr\u00ean Linode (ho\u1eb7c h\u1ec7 th\u1ed1ng Linux kh\u00e1c) b\u1eb1ng CLI c\u00f3 v\u1ebb kh\u00f3 kh\u0103n, nh\u01b0ng \u0111\u1eebng \u0111\u1ec3 \u0111i\u1ec1u \u0111\u00f3 l\u00e0m b\u1ea1n s\u1ee3. B\u1ea1n c\u00f3 th\u1ec3 c\u00e0i \u0111\u1eb7t m\u00e0 kh\u00f4ng c\u1ea7n s\u1eed d\u1ee5ng m\u00f4i tr\u01b0\u1eddng \u0111\u1ed3 h\u1ecda. Th\u1ef1c hi\u1ec7n theo c\u00e1c h\u01b0\u1edbng d\u1eabn n\u00e0y \u0111\u1ec3 t\u1ea3i xu\u1ed1ng phi\u00ean b\u1ea3n<\/p>\n","protected":false},"author":1,"featured_media":35496,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[101],"tags":[],"class_list":["post-34875","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-big-data"],"_links":{"self":[{"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/posts\/34875","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/comments?post=34875"}],"version-history":[{"count":0,"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/posts\/34875\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/media\/35496"}],"wp:attachment":[{"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/media?parent=34875"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/categories?post=34875"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/tags?post=34875"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}