{"id":34872,"date":"2024-08-14T10:32:42","date_gmt":"2024-08-14T03:32:42","guid":{"rendered":"http:\/\/jupitek.maudemo.vip\/index.php\/2024\/08\/14\/install-anaconda-on-linux-centos\/"},"modified":"2024-08-14T10:32:42","modified_gmt":"2024-08-14T03:32:42","slug":"install-anaconda-on-linux-centos","status":"publish","type":"post","link":"https:\/\/jupitek.maudemo.vip\/index.php\/2024\/08\/14\/install-anaconda-on-linux-centos\/","title":{"rendered":"C\u00e0i \u0111\u1eb7t Anaconda tr\u00ean Linux CentOS"},"content":{"rendered":"<p><a href=\"http:\/\/anaconda.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">Anaconda<\/a>&nbsp;l\u00e0 b\u1ea3n ph\u00e2n ph\u1ed1i c\u1ee7a ng\u00f4n ng\u1eef l\u1eadp tr\u00ecnh Python v\u00e0 R. \u0110\u00e2y l\u00e0 m\u1ed9t g\u00f3i \u0111\u01b0\u1ee3c tuy\u1ec3n ch\u1ecdn g\u1ed3m c\u00e1c tr\u00ecnh th\u00f4ng d\u1ecbch ng\u00f4n ng\u1eef v\u00e0 ti\u1ec7n \u00edch b\u1ed5 sung c\u1ee5 th\u1ec3. C\u01a1 s\u1edf ng\u01b0\u1eddi d\u00f9ng c\u1ee7a Anaconda ch\u1ee7 y\u1ebfu \u0111\u1ebfn t\u1eeb c\u00e1c c\u1ed9ng \u0111\u1ed3ng khoa h\u1ecdc m\u00e1y t\u00ednh, ph\u00e2n t\u00edch d\u1eef li\u1ec7u v\u00e0 h\u1ecdc m\u00e1y.<\/p>\n<h2 id=\"get-started-with-anaconda\">B\u1eaft \u0111\u1ea7u v\u1edbi Anaconda<a href=\"https:\/\/www.linode.com\/docs\/guides\/install-anaconda-on-linux-centos-8-stream\/#get-started-with-anaconda\"><\/a><\/h2>\n<p>Anaconda c\u00f3 s\u1eb5n cho Windows, macOS v\u00e0 Linux. Nhi\u1ec1u&nbsp;<a href=\"https:\/\/www.anaconda.com\/pricing\" target=\"_blank\" rel=\"noreferrer noopener\">gi\u1ea5y ph\u00e9p<\/a>&nbsp;chi ph\u1ed1i vi\u1ec7c s\u1eed d\u1ee5ng Anaconda; h\u01b0\u1edbng d\u1eabn n\u00e0y c\u00e0i \u0111\u1eb7t&nbsp;<a href=\"https:\/\/www.anaconda.com\/products\/individual\" target=\"_blank\" rel=\"noreferrer noopener\">Phi\u00ean b\u1ea3n c\u00e1 nh\u00e2n c\u1ee7a Anaconda<\/a>&nbsp;, mi\u1ec5n ph\u00ed v\u00e0 m\u00e3 ngu\u1ed3n m\u1edf.<\/p>\n<p>C\u00e0i \u0111\u1eb7t Anaconda cung c\u1ea5p cho b\u1ea1n:<\/p>\n<ul>\n<li>M\u1ed9t tr\u00ecnh th\u00f4ng d\u1ecbch Python v\u00e0 R m\u1edbi v\u00e0 \u0111\u01b0\u1ee3c ch\u1ee9ng nh\u1eadn<\/li>\n<li>M\u1ed9t b\u1ed9 s\u01b0u t\u1eadp l\u1edbn c\u00e1c th\u01b0 vi\u1ec7n m\u00e1y t\u00ednh khoa h\u1ecdc ngu\u1ed3n m\u1edf cho c\u00e1c ng\u00f4n ng\u1eef n\u00e0y<\/li>\n<li>Tr\u00ecnh qu\u1ea3n l\u00fd g\u00f3i v\u00e0 m\u00f4i tr\u01b0\u1eddng conda<\/li>\n<li>Giao di\u1ec7n ng\u01b0\u1eddi d\u00f9ng \u0111\u1ed3 h\u1ecda (GUI) Anaconda Navigator l\u00e0 m\u1ed9t gi\u1ea3i ph\u00e1p thay th\u1ebf cho conda<\/li>\n<\/ul>\n<p>L\u1ee3i \u00edch ch\u00ednh c\u1ee7a Anaconda l\u00e0 \u0111\u1ea3m b\u1ea3o t\u00ednh t\u01b0\u01a1ng th\u00edch c\u1ee7a t\u1ea5t c\u1ea3 c\u00e1c y\u1ebfu t\u1ed1 \u0111\u01b0\u1ee3c li\u1ec7t k\u00ea \u1edf tr\u00ean. Anaconda ph\u1ed5 bi\u1ebfn trong s\u1ed1 c\u00e1c nh\u00e0 khoa h\u1ecdc d\u1eef li\u1ec7u, nh\u00e0 nghi\u00ean c\u1ee9u v\u00e0 nh\u00e0 th\u1ed1ng k\u00ea. N\u00f3 x\u1eed l\u00fd c\u00e1c v\u1ea5n \u0111\u1ec1 v\u1ec1 ph\u1ee5 thu\u1ed9c v\u00e0 kh\u1ea3 n\u0103ng t\u01b0\u01a1ng th\u00edch khi l\u00e0m vi\u1ec7c v\u1edbi Python v\u00e0 R \u0111\u1ec3 ng\u01b0\u1eddi d\u00f9ng trong c\u00e1c l\u0129nh v\u1ef1c chuy\u00ean m\u00f4n c\u00f3 th\u1ec3 t\u1eadp trung v\u00e0o nghi\u00ean c\u1ee9u c\u1ee7a h\u1ecd.<\/p>\n<h3 id=\"anaconda-installation-steps\">C\u00e1c b\u01b0\u1edbc c\u00e0i \u0111\u1eb7t Anaconda<a href=\"https:\/\/www.linode.com\/docs\/guides\/install-anaconda-on-linux-centos-8-stream\/#anaconda-installation-steps\"><\/a><\/h3>\n<p>Anaconda c\u00f3 th\u1ec3 \u0111\u01b0\u1ee3c c\u00e0i \u0111\u1eb7t th\u00f4ng qua GUI ho\u1eb7c tr\u00ean d\u00f2ng l\u1ec7nh. H\u01b0\u1edbng d\u1eabn n\u00e0y t\u1eadp trung v\u00e0o c\u00e1c b\u01b0\u1edbc c\u00e0i \u0111\u1eb7t cho d\u00f2ng l\u1ec7nh tr\u00ean b\u1ea3n ph\u00e2n ph\u1ed1i CentOS.<\/p>\n<p>Th\u1ef1c hi\u1ec7n theo h\u01b0\u1edbng d\u1eabn b\u00ean d\u01b0\u1edbi \u0111\u1ec3 c\u00e0i \u0111\u1eb7t Anaconda. Qu\u00e1 tr\u00ecnh c\u00e0i \u0111\u1eb7t m\u1ea5t kho\u1ea3ng hai m\u01b0\u01a1i ph\u00fat v\u00e0 chi\u1ebfm kho\u1ea3ng 3,5 gigabyte dung l\u01b0\u1ee3ng \u0111\u0129a trong&nbsp;<code>$HOME<\/code>th\u01b0 m\u1ee5c ng\u01b0\u1eddi d\u00f9ng.<\/p>\n<p>1.\u0110i\u1ec1u h\u01b0\u1edbng \u0111\u1ebfn th\u01b0 m\u1ee5c l\u00e0m vi\u1ec7c c\u1ee7a b\u1ea1n. \u0110\u00e2y c\u00f3 th\u1ec3 l\u00e0 th\u01b0 m\u1ee5c home c\u1ee7a b\u1ea1n.<\/p>\n<pre class=\"wp-block-code\"><code> cd \/home\/example_user\n<\/code><\/pre>\n<p>2.C\u1eadp nh\u1eadt c\u00e1c g\u00f3i h\u1ec7 th\u1ed1ng CentOS c\u1ee7a b\u1ea1n.<\/p>\n<pre class=\"wp-block-code\"><code> dnf upgrade\n<\/code><\/pre>\n<p>3.C\u00e0i \u0111\u1eb7t&nbsp;<code>bzip2<\/code>g\u00f3i.<\/p>\n<pre class=\"wp-block-code\"><code> sudo dnf install bzip2\n<\/code><\/pre>\n<p>4.N\u1ebfu h\u1ec7 th\u1ed1ng CentOS c\u1ee7a b\u1ea1n ch\u01b0a c\u00e0i \u0111\u1eb7t Wget, h\u00e3y c\u00e0i \u0111\u1eb7t ngay.<\/p>\n<pre class=\"wp-block-code\"><code> sudo yum install -y wget\n<\/code><\/pre>\n<p>5.T\u1ea3i xu\u1ed1ng tr\u00ecnh c\u00e0i \u0111\u1eb7t Anaconda.<\/p>\n<pre class=\"wp-block-code\"><code> sudo wget https:\/\/repo.anaconda.com\/archive\/Anaconda3-2020.11-Linux-x86_64.sh\n<\/code><\/pre>\n<p>L\u1ec7nh n\u00e0y s\u1ebd c\u00e0i \u0111\u1eb7t Anaconda 3 v\u00e0 Python 3.8.<\/p>\n<p class=\"has-background\" style=\"background-color:#74f78c33\">Ghi ch\u00fa: B\u1ea1n c\u00f3 th\u1ec3 \u0111i\u1ec1u h\u01b0\u1edbng \u0111\u1ebfn <a href=\"https:\/\/repo.anaconda.com\/archive\" target=\"_blank\" rel=\"noreferrer noopener\">kho l\u01b0u tr\u1eef Anaconda<\/a>&nbsp;\u0111\u1ec3 truy c\u1eadp t\u1ea5t c\u1ea3 tr\u00ecnh c\u00e0i \u0111\u1eb7t Anaconda.<\/p>\n<p>6.X\u00e1c nh\u1eadn t\u00ednh x\u00e1c th\u1ef1c c\u1ee7a tr\u00ecnh c\u00e0i \u0111\u1eb7t b\u1eb1ng c\u00e1ch ch\u1ea1y l\u1ec7nh b\u00ean d\u01b0\u1edbi. Thay th\u1ebf&nbsp;<code>Anaconda3-2020.11-Linux-x86_64.sh<\/code>b\u1eb1ng phi\u00ean b\u1ea3n Anaconda b\u1ea1n \u0111\u00e3 c\u00e0i \u0111\u1eb7t \u1edf b\u01b0\u1edbc tr\u01b0\u1edbc.<\/p>\n<pre class=\"wp-block-code\"><code> md5sum Anaconda3-2020.11-Linux-x86_64.sh\n<\/code><\/pre>\n<p>B\u1ea1n s\u1ebd th\u1ea5y ch\u1eef k\u00fd c\u1ee7a b\u1ea3n ph\u00e1t h\u00e0nh c\u1ee5 th\u1ec3 \u0111\u01b0\u1ee3c tr\u1ea3 v\u1ec1 trong \u0111\u1ea7u ra. Khi vi\u1ebft h\u01b0\u1edbng d\u1eabn n\u00e0y, \u0111\u1ea7u ra \u0111\u01b0\u1ee3c tr\u1ea3 v\u1ec1 s\u1ebd gi\u1ed1ng nh\u01b0 sau,&nbsp;<code>4cd48ef23a075e8555a8b6d0a8c4bae2 Anaconda3-2020.11-Linux-x86_64.sh<\/code>. Kho l\u01b0u tr\u1eef Anaconda \u0111\u01b0\u1ee3c \u0111\u1ec1 c\u1eadp trong ph\u1ea7n tr\u01b0\u1edbc li\u1ec7t k\u00ea c\u00e1c b\u0103m to\u00e0n v\u1eb9n cho t\u1ea5t c\u1ea3 c\u00e1c b\u1ea3n t\u1ea3i xu\u1ed1ng c\u00f3 s\u1eb5n.<\/p>\n<p>7.Kh\u1edfi ch\u1ea1y tr\u00ecnh c\u00e0i \u0111\u1eb7t b\u1eb1ng l\u1ec7nh b\u00ean d\u01b0\u1edbi. Thay th\u1ebf&nbsp;<code>Anaconda3-2020.11-Linux-x86_64.sh<\/code>b\u1eb1ng phi\u00ean b\u1ea3n Anaconda b\u1ea1n \u0111\u00e3 c\u00e0i \u0111\u1eb7t.<\/p>\n<pre class=\"wp-block-code\"><code> sudo bash Anaconda3-2020.11-Linux-x86_64.sh<\/code><\/pre>\n<p>Khi \u0111\u01b0\u1ee3c nh\u1eafc, h\u00e3y nh\u1ea5n&nbsp;<strong>ENTER<\/strong>&nbsp;\u0111\u1ec3 ti\u1ebfp t\u1ee5c. \u0110\u1ed3ng \u00fd v\u1edbi c\u00e1c \u0111i\u1ec1u kho\u1ea3n c\u1ea5p ph\u00e9p b\u1eb1ng c\u00e1ch nh\u1eadp&nbsp;<strong>yes<\/strong>&nbsp;.<\/p>\n<p>8.Ch\u1ea5p nh\u1eadn v\u1ecb tr\u00ed c\u00e0i \u0111\u1eb7t m\u1eb7c \u0111\u1ecbnh&nbsp;<code>\/root\/anaconda3<\/code>.<\/p>\n<p>9.Khi \u0111\u01b0\u1ee3c nh\u1eafc,&nbsp;<code>initialize Anaconda3 by running conda init<\/code>b\u1ea1n n\u00ean nh\u1eadp&nbsp;<strong>yes<\/strong>&nbsp;. Qu\u00e1 tr\u00ecnh c\u00e0i \u0111\u1eb7t k\u1ebft th\u00fac b\u1eb1ng th\u00f4ng b\u00e1o \u201cThank you for installing Anaconda3!\u201d. Ch\u1ea1y c\u00e1c l\u1ec7nh sau \u0111\u1ec3 \u0111\u1ea3m b\u1ea3o b\u1ea1n c\u00f3 th\u1ec3 truy c\u1eadp Anaconda v\u00e0 n\u00f3 n\u1eb1m trong \u0111\u01b0\u1eddng d\u1eabn h\u1ec7 th\u1ed1ng c\u1ee7a b\u1ea1n:<\/p>\n<pre class=\"wp-block-code\"><code> sudo -s source \/root\/anaconda3\/bin\/activate\n export PATH=\"\/root\/anaconda3\/bin:$PATH\"<\/code><\/pre>\n<p class=\"has-background\" style=\"background-color:#74f78c33\">Ghi ch\u00fa :Trong&nbsp;<code>conda init<\/code>l\u1eddi nh\u1eafc, n\u1ebfu b\u1ea1n nh\u1eadp&nbsp;<strong>no<\/strong>&nbsp;, conda kh\u00f4ng th\u1ec3 s\u1eeda \u0111\u1ed5i c\u00e1c t\u1eadp l\u1ec7nh shell c\u1ee7a b\u1ea1n. \u0110\u1ec3 kh\u1edfi t\u1ea1o conda theo c\u00e1ch th\u1ee7 c\u00f4ng, h\u00e3y ch\u1ea1y c\u00e1c l\u1ec7nh b\u00ean d\u01b0\u1edbi sau khi c\u00e0i \u0111\u1eb7t ho\u00e0n t\u1ea5t.<\/p>\n<pre class=\"wp-block-code has-background\" style=\"background-color:#74f78c33\"><code>sudo -s source \/root\/anaconda3\/bin\/activate\nexport PATH=\"\/root\/anaconda3\/bin:$PATH\"\nconda init<\/code><\/pre>\n<p>10.X\u00e1c minh c\u00e0i \u0111\u1eb7t Anaconda b\u1eb1ng c\u00e1ch ch\u1ea1y l\u1ec7nh sau:<\/p>\n<pre class=\"wp-block-code\"><code> conda info\n<\/code><\/pre>\n<p>T\u00f9y thu\u1ed9c v\u00e0o v\u1ecb tr\u00ed c\u00e0i \u0111\u1eb7t, b\u1ea1n s\u1ebd th\u1ea5y k\u1ebft qu\u1ea3 t\u01b0\u01a1ng t\u1ef1 nh\u01b0 sau:<\/p>\n<pre class=\"wp-block-code\"><code>active environment : None\n       user config file : \/home\/example_user\/.condarc\n populated config files :\n          conda version : 4.9.2\n    conda-build version : 3.20.5\n         python version : 3.8.5.final.0\n       virtual packages : __glibc=2.28=0\n                          __unix=0=0\n                          __archspec=1=x86_64\n       base environment : \/root\/anaconda3  (read only)\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 : \/root\/anaconda3\/pkgs\n                          \/home\/example_user\/.conda\/pkgs\n       envs directories : \/home\/example_user\/.conda\/envs\n                          \/root\/anaconda3\/envs\n               platform : linux-64\n             user-agent : conda\/4.9.2 requests\/2.24.0 CPython\/3.8.5 Linux\/4.18.0-305.3.1.el8_4.x86_64 almalinux\/8.4 glibc\/2.28\n                UID:GID : 1000:1000\n             netrc file : None\n           offline mode : False<\/code><\/pre>\n<p>B\u1ea1n c\u0169ng c\u00f3 th\u1ec3 x\u00e1c minh c\u00e0i \u0111\u1eb7t conda b\u1eb1ng c\u00e1ch ch\u1ea1y l\u1ec7nh&nbsp;<code>list<\/code>ho\u1eb7c&nbsp;<code>version<\/code>:<\/p>\n<pre class=\"wp-block-code\"><code>conda list\nconda --version<\/code><\/pre>\n<p>11.T\u1ea3i shell l\u1eadp tr\u00ecnh Python b\u1eb1ng&nbsp;<code>python<\/code>l\u1ec7nh.<\/p>\n<pre class=\"wp-block-code\"><code> python\n<\/code><\/pre>\n<p>T\u1ea1i th\u1eddi \u0111i\u1ec3m n\u00e0y, Anaconda s\u1ebd ra m\u1eaft b\u1ea3n ph\u00e1t h\u00e0nh Python 3.8.5 ho\u1eb7c c\u00f3 th\u1ec3 l\u00e0 m\u1ed9t phi\u00ean b\u1ea3n kh\u00e1c n\u1ebfu b\u1ea1n \u0111\u00e3 c\u00e0i \u0111\u1eb7t phi\u00ean b\u1ea3n Anaconda kh\u00e1c. C\u00f4ng ty Anaconda cung c\u1ea5p nhi\u1ec1u&nbsp;<a href=\"https:\/\/docs.anaconda.com\/anaconda\/\" target=\"_blank\" rel=\"noreferrer noopener\">t\u00e0i li\u1ec7u<\/a>&nbsp;v\u00e0&nbsp;<a href=\"https:\/\/www.anaconda.com\/help\" target=\"_blank\" rel=\"noreferrer noopener\">t\u00e0i li\u1ec7u \u0111\u00e0o t\u1ea1o<\/a>&nbsp;kh\u00e1c \u0111\u1ec3 gi\u00fap b\u1ea1n t\u00ecm hi\u1ec3u s\u00e2u h\u01a1n v\u1ec1 c\u00e1ch s\u1eed d\u1ee5ng Anaconda.<\/p>\n<p>Ngu\u1ed3n: https:\/\/www.linode.com\/docs\/guides\/install-anaconda-on-linux-centos-8-stream\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Anaconda&nbsp;l\u00e0 b\u1ea3n ph\u00e2n ph\u1ed1i c\u1ee7a ng\u00f4n ng\u1eef l\u1eadp tr\u00ecnh Python v\u00e0 R. \u0110\u00e2y l\u00e0 m\u1ed9t g\u00f3i \u0111\u01b0\u1ee3c tuy\u1ec3n ch\u1ecdn g\u1ed3m c\u00e1c tr\u00ecnh th\u00f4ng d\u1ecbch ng\u00f4n ng\u1eef v\u00e0 ti\u1ec7n \u00edch b\u1ed5 sung c\u1ee5 th\u1ec3. C\u01a1 s\u1edf ng\u01b0\u1eddi d\u00f9ng c\u1ee7a Anaconda ch\u1ee7 y\u1ebfu \u0111\u1ebfn t\u1eeb c\u00e1c c\u1ed9ng \u0111\u1ed3ng khoa h\u1ecdc m\u00e1y t\u00ednh, ph\u00e2n t\u00edch d\u1eef li\u1ec7u v\u00e0<\/p>\n","protected":false},"author":1,"featured_media":35493,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[101],"tags":[],"class_list":["post-34872","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\/34872","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=34872"}],"version-history":[{"count":0,"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/posts\/34872\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/media\/35493"}],"wp:attachment":[{"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/media?parent=34872"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/categories?post=34872"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/tags?post=34872"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}