{"id":1280,"date":"2025-09-26T20:34:17","date_gmt":"2025-09-26T13:34:17","guid":{"rendered":"https:\/\/kienthucmo.com\/?p=1280"},"modified":"2026-03-25T09:55:11","modified_gmt":"2026-03-25T02:55:11","slug":"cai-dat-python-va-cac-cong-cu-can-thiet","status":"publish","type":"post","link":"https:\/\/kienthucmo.com\/vi\/cai-dat-python-va-cac-cong-cu-can-thiet\/","title":{"rendered":"C\u00e0i \u0111\u1eb7t Python v\u00e0 c\u00e1c c\u00f4ng c\u1ee5 c\u1ea7n thi\u1ebft"},"content":{"rendered":"\n<p>Python l\u00e0 m\u1ed9t ng\u00f4n ng\u1eef l\u1eadp tr\u00ecnh ph\u1ed5 bi\u1ebfn, \u0111\u01b0\u1ee3c d\u00f9ng r\u1ed9ng r\u00e3i trong tr\u00ed tu\u1ec7 nh\u00e2n t\u1ea1o, ph\u00e2n t\u00edch d\u1eef li\u1ec7u, ph\u00e1t tri\u1ec3n web v\u00e0 t\u1ef1 \u0111\u1ed9ng h\u00f3a. \u0110i\u1ec3m m\u1ea1nh c\u1ee7a Python n\u1eb1m \u1edf c\u00fa ph\u00e1p \u0111\u01a1n gi\u1ea3n, d\u1ec5 h\u1ecdc, ph\u00f9 h\u1ee3p cho c\u1ea3 ng\u01b0\u1eddi m\u1edbi b\u1eaft \u0111\u1ea7u l\u1eabn l\u1eadp tr\u00ecnh vi\u00ean chuy\u00ean nghi\u1ec7p. Tr\u01b0\u1edbc khi \u0111i s\u00e2u v\u00e0o l\u1eadp tr\u00ecnh, \u0111i\u1ec1u quan tr\u1ecdng nh\u1ea5t l\u00e0 c\u00e0i \u0111\u1eb7t Python \u0111\u00fang c\u00e1ch v\u00e0 thi\u1ebft l\u1eadp c\u00e1c c\u00f4ng c\u1ee5 c\u1ea7n thi\u1ebft. B\u00e0i vi\u1ebft n\u00e0y s\u1ebd h\u01b0\u1edbng d\u1eabn b\u1ea1n to\u00e0n b\u1ed9 qu\u00e1 tr\u00ecnh \u0111\u00f3 m\u1ed9t c\u00e1ch r\u00f5 r\u00e0ng v\u00e0 chi ti\u1ebft.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">1. Chu\u1ea9n b\u1ecb tr\u01b0\u1edbc khi c\u00e0i \u0111\u1eb7t<\/h2>\n\n\n\n<p>Tr\u01b0\u1edbc khi b\u1eaft \u0111\u1ea7u, b\u1ea1n n\u00ean ki\u1ec3m tra m\u1ed9t s\u1ed1 \u0111i\u1ec3m sau:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Y\u00eau c\u1ea7u h\u1ec7 th\u1ed1ng\n<ul class=\"wp-block-list\">\n<li>Windows: H\u1ed7 tr\u1ee3 t\u1eeb Windows 7 tr\u1edf l\u00ean.<\/li>\n\n\n\n<li>macOS: Phi\u00ean b\u1ea3n 10.9 tr\u1edf l\u00ean.<\/li>\n\n\n\n<li>Linux: H\u1ea7u h\u1ebft c\u00e1c b\u1ea3n ph\u00e2n ph\u1ed1i \u0111\u1ec1u h\u1ed7 tr\u1ee3 Python 3.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Ki\u1ec3m tra Python \u0111\u00e3 c\u00f3 s\u1eb5n\n<ul class=\"wp-block-list\">\n<li>M\u1edf terminal (macOS\/Linux) ho\u1eb7c Command Prompt (Windows).<\/li>\n\n\n\n<li>G\u00f5 l\u1ec7nh:<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>python --version\npython3 --version<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D8DEE9FF\">python <\/span><span style=\"color: #D8DEE9\">--<\/span><span style=\"color: #D8DEE9FF\">version<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">python3 <\/span><span style=\"color: #D8DEE9\">--<\/span><span style=\"color: #D8DEE9FF\">version<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>N\u1ebfu h\u1ec7 th\u1ed1ng b\u00e1o phi\u00ean b\u1ea3n, ngh\u0129a l\u00e0 \u0111\u00e3 c\u00e0i Python. Tuy nhi\u00ean, b\u1ea1n v\u1eabn c\u00f3 th\u1ec3 c\u1ea7n c\u1eadp nh\u1eadt.<\/p>\n\n\n\n<p>3. Ch\u1ecdn phi\u00ean b\u1ea3n ph\u00f9 h\u1ee3p<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Truy c\u1eadp trang ch\u1ee7 <a href=\"https:\/\/www.python.org\/\" target=\"_blank\" rel=\"noopener\">Python.org<\/a>.<\/li>\n\n\n\n<li>T\u1ea3i b\u1ea3n m\u1edbi nh\u1ea5t \u1ed5n \u0111\u1ecbnh (th\u01b0\u1eddng l\u00e0 Python 3.x).<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">2. H\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t Python<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">2.1. Tr\u00ean Windows<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>V\u00e0o <a href=\"https:\/\/www.python.org\/downloads\/\" target=\"_blank\" rel=\"noopener\">Python.org\/downloads<\/a>, ch\u1ecdn b\u1ea3n cho Windows.<\/li>\n\n\n\n<li>Ch\u1ea1y file <code>.exe<\/code> t\u1ea3i v\u1ec1.<\/li>\n\n\n\n<li>Trong b\u01b0\u1edbc c\u00e0i \u0111\u1eb7t:\n<ul class=\"wp-block-list\">\n<li>Tick ch\u1ecdn Add Python to PATH. \u0110\u00e2y l\u00e0 b\u01b0\u1edbc r\u1ea5t quan tr\u1ecdng gi\u00fap b\u1ea1n g\u1ecdi Python tr\u1ef1c ti\u1ebfp t\u1eeb Command Prompt.<\/li>\n\n\n\n<li>Ch\u1ecdn Install Now \u0111\u1ec3 c\u00e0i \u0111\u1eb7t nhanh, ho\u1eb7c Customize Installation n\u1ebfu mu\u1ed1n t\u00f9y ch\u1ec9nh.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Sau khi ho\u00e0n t\u1ea5t, m\u1edf Command Prompt v\u00e0 g\u00f5:<\/li>\n<\/ol>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>python --version<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D8DEE9FF\">python <\/span><span style=\"color: #D8DEE9\">--<\/span><span style=\"color: #D8DEE9FF\">version<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>N\u1ebfu hi\u1ec3n th\u1ecb phi\u00ean b\u1ea3n Python, ngh\u0129a l\u00e0 b\u1ea1n \u0111\u00e3 c\u00e0i th\u00e0nh c\u00f4ng.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2.2. Tr\u00ean macOS<\/h3>\n\n\n\n<p>C\u00f3 hai c\u00e1ch ch\u00ednh:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>C\u00e1ch 1: C\u00e0i \u0111\u1eb7t t\u1eeb Python.org\n<ul class=\"wp-block-list\">\n<li>T\u1ea3i file <code>.pkg<\/code>, m\u1edf v\u00e0 l\u00e0m theo h\u01b0\u1edbng d\u1eabn.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>C\u00e1ch 2: S\u1eed d\u1ee5ng Homebrew (\u0111\u01b0\u1ee3c khuy\u00ean d\u00f9ng)<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>brew install python<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D8DEE9FF\">brew install python<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>Sau \u0111\u00f3 ki\u1ec3m tra b\u1eb1ng:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>python3 --version<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D8DEE9FF\">python3 <\/span><span style=\"color: #D8DEE9\">--<\/span><span style=\"color: #D8DEE9FF\">version<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">2.3. Tr\u00ean Linux<\/h3>\n\n\n\n<p>T\u00f9y v\u00e0o b\u1ea3n ph\u00e2n ph\u1ed1i:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Ubuntu\/Debian<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>sudo apt update\nsudo apt install python3<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D8DEE9FF\">sudo apt update<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">sudo apt install python3<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Fedora<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>sudo dnf install python3<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D8DEE9FF\">sudo dnf install python3<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li>CentOS<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>sudo yum install python3<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D8DEE9FF\">sudo yum install python3<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">3. Qu\u1ea3n l\u00fd m\u00f4i tr\u01b0\u1eddng v\u00e0 th\u01b0 vi\u1ec7n<\/h2>\n\n\n\n<p>M\u1ed9t trong nh\u1eefng th\u00e1ch th\u1ee9c l\u1edbn khi h\u1ecdc Python l\u00e0 vi\u1ec7c qu\u1ea3n l\u00fd nhi\u1ec1u phi\u00ean b\u1ea3n v\u00e0 th\u01b0 vi\u1ec7n. \u0110\u1ec3 tr\u00e1nh \u201cr\u1ed1i lo\u1ea1n m\u00f4i tr\u01b0\u1eddng\u201d, b\u1ea1n c\u1ea7n c\u00e1c c\u00f4ng c\u1ee5 sau:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Virtual Environment (venv)<\/strong><br>D\u00f9ng \u0111\u1ec3 t\u1ea1o m\u00f4i tr\u01b0\u1eddng \u0111\u1ed9c l\u1eadp cho t\u1eebng d\u1ef1 \u00e1n.<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>python3 -m venv myenv\nsource myenv\/bin\/activate   # Linux\/macOS\nmyenv\\Scripts\\activate      # Windows<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D8DEE9FF\">python3 <\/span><span style=\"color: #81A1C1\">-<\/span><span style=\"color: #D8DEE9FF\">m venv myenv<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">source myenv<\/span><span style=\"color: #81A1C1\">\/<\/span><span style=\"color: #88C0D0\">bin<\/span><span style=\"color: #81A1C1\">\/<\/span><span style=\"color: #D8DEE9FF\">activate   <\/span><span style=\"color: #616E88\"># Linux\/macOS<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">myenv<\/span><span style=\"color: #ECEFF4\">\\<\/span><span style=\"color: #D8DEE9\">Scripts\\activate      # Windows<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Pip<\/strong><br>C\u00f4ng c\u1ee5 qu\u1ea3n l\u00fd th\u01b0 vi\u1ec7n m\u1eb7c \u0111\u1ecbnh. V\u00ed d\u1ee5:<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>pip install requests<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D8DEE9FF\">pip install requests<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p><strong>Conda (Anaconda\/Miniconda)<\/strong><br>D\u00f9ng cho khoa h\u1ecdc d\u1eef li\u1ec7u, h\u1ed7 tr\u1ee3 c\u1ea3 th\u01b0 vi\u1ec7n Python v\u00e0 g\u00f3i h\u1ec7 th\u1ed1ng.<\/p>\n\n\n\n<p><strong>Poetry\/Pipenv<\/strong><br>C\u00f4ng c\u1ee5 hi\u1ec7n \u0111\u1ea1i \u0111\u1ec3 qu\u1ea3n l\u00fd th\u01b0 vi\u1ec7n v\u00e0 dependency ph\u1ee9c t\u1ea1p.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">4. C\u00e1c c\u00f4ng c\u1ee5 c\u1ea7n thi\u1ebft cho l\u1eadp tr\u00ecnh Python<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Tr\u00ecnh so\u1ea1n th\u1ea3o \/ IDE<\/strong>\n<ul class=\"wp-block-list\">\n<li>VS Code: G\u1ecdn nh\u1eb9, nhi\u1ec1u extension m\u1ea1nh m\u1ebd.<\/li>\n\n\n\n<li>PyCharm: IDE chuy\u00ean nghi\u1ec7p, ph\u00f9 h\u1ee3p d\u1ef1 \u00e1n l\u1edbn.<\/li>\n\n\n\n<li>Jupyter Notebook: Th\u00edch h\u1ee3p cho h\u1ecdc t\u1eadp v\u00e0 ph\u00e2n t\u00edch d\u1eef li\u1ec7u.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Qu\u1ea3n l\u00fd phi\u00ean b\u1ea3n m\u00e3 ngu\u1ed3n<\/strong>\n<ul class=\"wp-block-list\">\n<li>Git: C\u00f4ng c\u1ee5 b\u1eaft bu\u1ed9c v\u1edbi l\u1eadp tr\u00ecnh vi\u00ean.<\/li>\n\n\n\n<li>GitHub\/GitLab\/Bitbucket: L\u01b0u tr\u1eef v\u00e0 chia s\u1ebb project.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>C\u00f4ng c\u1ee5 b\u1ed5 sung<\/strong>\n<ul class=\"wp-block-list\">\n<li>Docker: T\u1ea1o m\u00f4i tr\u01b0\u1eddng \u0111\u1ed3ng nh\u1ea5t cho d\u1ef1 \u00e1n.<\/li>\n\n\n\n<li>Postman: Ki\u1ec3m th\u1eed API khi l\u00e0m vi\u1ec7c v\u1edbi web.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Extension h\u1ed7 tr\u1ee3<\/strong>\n<ul class=\"wp-block-list\">\n<li>Pylance: h\u1ed7 tr\u1ee3 IntelliSense, t\u1ef1 \u0111\u1ed9ng g\u1ee3i \u00fd code nhanh v\u00e0 ch\u00ednh x\u00e1c.<\/li>\n\n\n\n<li>Python (Microsoft): plugin c\u01a1 b\u1ea3n \u0111\u1ec3 ch\u1ea1y, debug v\u00e0 lint code Python.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">5. Ki\u1ec3m tra v\u00e0 ch\u1ea1y ch\u01b0\u01a1ng tr\u00ecnh Python \u0111\u1ea7u ti\u00ean<\/h2>\n\n\n\n<p>Sau khi c\u00e0i \u0111\u1eb7t, h\u00e3y th\u1eed vi\u1ebft ch\u01b0\u01a1ng tr\u00ecnh \u0111\u1ea7u ti\u00ean:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>T\u1ea1o file <strong>helllo.py <\/strong><\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>print(\"Hello, Python!\")<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #88C0D0\">print<\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">Hello, Python!<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">)<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>Ch\u1ea1y ch\u01b0\u01a1ng tr\u00ecnh:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>M\u1edf c\u1eeda s\u1ed5<strong> terminal<\/strong>, ch\u1ea1y l\u1ec7nh<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>python hello.py<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D8DEE9FF\">python hello<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #D8DEE9FF\">py<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>K\u1ebft qu\u1ea3 in ra:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>Hello, Python!<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D8DEE9FF\">Hello<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> Python!<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">L\u1ed7i th\u01b0\u1eddng g\u1eb7p<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u201cPython is not recognized\u201d: Qu\u00ean tick PATH khi c\u00e0i \u0111\u1eb7t \u2192 G\u1ee1 v\u00e0 c\u00e0i l\u1ea1i.<\/li>\n\n\n\n<li>Xung \u0111\u1ed9t phi\u00ean b\u1ea3n: C\u00e0i nhi\u1ec1u b\u1ea3n Python \u2192 D\u00f9ng <code>py -3<\/code> (Windows) ho\u1eb7c <code>python3<\/code> (Linux\/macOS).<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">6. L\u1eddi khuy\u00ean khi b\u1eaft \u0111\u1ea7u v\u1edbi Python<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>T\u1ed5 ch\u1ee9c project r\u00f5 r\u00e0ng: t\u00e1ch th\u01b0 m\u1ee5c <code>src<\/code>, <code>tests<\/code>, <code>venv<\/code>.<\/li>\n\n\n\n<li>H\u1ecdc t\u1eebng b\u01b0\u1edbc: b\u1eaft \u0111\u1ea7u t\u1eeb c\u00fa ph\u00e1p c\u01a1 b\u1ea3n, sau \u0111\u00f3 ti\u1ebfn \u0111\u1ebfn th\u01b0 vi\u1ec7n ph\u1ed5 bi\u1ebfn nh\u01b0 <code>requests<\/code>, <code>numpy<\/code>, <code>pandas<\/code>.<\/li>\n\n\n\n<li>Tham gia c\u1ed9ng \u0111\u1ed3ng:\n<ul class=\"wp-block-list\">\n<li>Stack Overflow \u0111\u1ec3 h\u1ecfi \u0111\u00e1p.<\/li>\n\n\n\n<li>C\u00e1c nh\u00f3m Facebook Python Vi\u1ec7t Nam.<\/li>\n\n\n\n<li>Tham gia meetup, s\u1ef1 ki\u1ec7n \u0111\u1ec3 h\u1ecdc h\u1ecfi th\u00eam.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">7. K\u1ebft lu\u1eadn<\/h2>\n\n\n\n<p>C\u00e0i \u0111\u1eb7t Python v\u00e0 thi\u1ebft l\u1eadp c\u00f4ng c\u1ee5 c\u1ea7n thi\u1ebft l\u00e0 n\u1ec1n t\u1ea3ng quan tr\u1ecdng gi\u00fap b\u1ea1n b\u01b0\u1edbc ch\u00e2n v\u00e0o th\u1ebf gi\u1edbi l\u1eadp tr\u00ecnh. Ch\u1ec9 v\u1edbi v\u00e0i thao t\u00e1c, b\u1ea1n \u0111\u00e3 c\u00f3 th\u1ec3 t\u1ea1o m\u00f4i tr\u01b0\u1eddng l\u1eadp tr\u00ecnh \u1ed5n \u0111\u1ecbnh, ch\u1ea1y ch\u01b0\u01a1ng tr\u00ecnh \u0111\u1ea7u ti\u00ean, v\u00e0 s\u1eb5n s\u00e0ng h\u1ecdc h\u1ecfi nh\u1eefng ki\u1ebfn th\u1ee9c n\u00e2ng cao h\u01a1n.<\/p>\n\n\n\n<p>H\u00e3y nh\u1edb: m\u1ed9t m\u00f4i tr\u01b0\u1eddng t\u1ed1t s\u1ebd gi\u00fap b\u1ea1n ti\u1ebft ki\u1ec7m r\u1ea5t nhi\u1ec1u th\u1eddi gian v\u1ec1 sau. V\u00ec v\u1eady, h\u00e3y c\u1ea9n th\u1eadn ngay t\u1eeb b\u01b0\u1edbc c\u00e0i \u0111\u1eb7t, l\u1ef1a ch\u1ecdn c\u00f4ng c\u1ee5 ph\u00f9 h\u1ee3p, v\u00e0 b\u1eaft tay v\u00e0o h\u00e0nh tr\u00ecnh v\u1edbi Python.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">8. T\u00e0i li\u1ec7u tham kh\u1ea3o<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Python Software Foundation. (2025). <em>Python official website<\/em>. Retrieved September 26, 2025, from <a href=\"https:\/\/www.python.org\/\" target=\"_blank\" rel=\"noopener\">https:\/\/www.python.org\/<\/a><\/li>\n\n\n\n<li>Python Software Foundation. (2025). <em>Python 3 documentation<\/em>. Retrieved September 26, 2025, from <a>https:\/\/docs.python.org\/3\/<\/a><\/li>\n\n\n\n<li>Microsoft. (2025). <em>Get started with Python in VS Code<\/em>. Visual Studio Code documentation. Retrieved September 26, 2025, from <a>https:\/\/code.visualstudio.com\/docs\/python\/python-tutorial<\/a><\/li>\n\n\n\n<li>JetBrains. (2025). <em>PyCharm: The Python IDE for professional developers<\/em>. Retrieved September 26, 2025, from <a href=\"https:\/\/www.jetbrains.com\/pycharm\/\" target=\"_blank\" rel=\"noopener\">https:\/\/www.jetbrains.com\/pycharm\/<\/a><\/li>\n\n\n\n<li>Anaconda, Inc. (2025). <em>Anaconda distribution<\/em>. Retrieved September 26, 2025, from <a>https:\/\/www.anaconda.com\/<\/a><\/li>\n\n\n\n<li>Python Packaging Authority. (2025). <em>pip documentation<\/em>. Retrieved September 26, 2025, from <a>https:\/\/pip.pypa.io\/en\/stable\/<\/a><\/li>\n\n\n\n<li>Poetry Contributors. (2025). <em>Poetry: Python dependency management and packaging<\/em>. Retrieved September 26, 2025, from <a>https:\/\/python-poetry.org\/<\/a><\/li>\n\n\n\n<li>Docker, Inc. (2025). <em>Docker official website<\/em>. Retrieved September 26, 2025, from <a>https:\/\/www.docker.com\/<\/a><\/li>\n\n\n\n<li>Chacon, S., &amp; Straub, B. (2021). <em>Pro Git<\/em> (2nd ed.). Apress. Retrieved from <a href=\"https:\/\/git-scm.com\/\" target=\"_blank\" rel=\"noopener\">https:\/\/git-scm.com\/<\/a><\/li>\n\n\n\n<li>GitHub, Inc. (2025). <em>GitHub official website<\/em>. Retrieved September 26, 2025, from<\/li>\n\n\n\n<li>Python for Professionals: Learning Python as a Second Language: <a href=\"https:\/\/click.linksynergy.com\/link?id=*C\/UgjGtUZ8&amp;offerid=1562891.3721710002222624882405978&amp;type=15&amp;murl=https%3A%2F%2Fwww.kobo.com%2Fus%2Fen%2Febook%2Fpython-for-professionals-3\" target=\"_blank\" rel=\"noopener\">https:\/\/www.kobo.com\/us\/en\/ebook\/python-for-professionals-3<\/a><\/li>\n\n\n\n<li>Python: Deeper Insights into Machine Learning: <a href=\"https:\/\/click.linksynergy.com\/link?id=*C\/UgjGtUZ8&amp;offerid=1562891.3721710015810095319857183&amp;type=15&amp;murl=https%3A%2F%2Fwww.kobo.com%2Fus%2Fen%2Febook%2Fpython-deeper-insights-into-machine-learning\" target=\"_blank\" rel=\"noopener\">https:\/\/www.kobo.com\/us\/en\/ebook\/python-deeper-insights-into-machine-learning<\/a><\/li>\n\n\n\n<li>DataFusion Python Bindings in Practice: The Complete Guide for Developers and Engineers: <a href=\"https:\/\/click.linksynergy.com\/link?id=*C\/UgjGtUZ8&amp;offerid=1562891.3721710049093362364820452&amp;type=15&amp;murl=https%3A%2F%2Fwww.kobo.com%2Fus%2Fen%2Febook%2Fdatafusion-python-bindings-in-practice\" target=\"_blank\" rel=\"noopener\">https:\/\/www.kobo.com\/us\/en\/ebook\/datafusion-python-bindings-in-practice<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>C\u00e0i \u0111\u1eb7t Python v\u00e0 thi\u1ebft l\u1eadp c\u00f4ng c\u1ee5 c\u1ea7n thi\u1ebft l\u00e0 n\u1ec1n t\u1ea3ng quan tr\u1ecdng gi\u00fap b\u1ea1n b\u01b0\u1edbc ch\u00e2n v\u00e0o th\u1ebf gi\u1edbi l\u1eadp tr\u00ecnh. Ch\u1ec9 v\u1edbi v\u00e0i thao t\u00e1c, b\u1ea1n \u0111\u00e3 c\u00f3 th\u1ec3 t\u1ea1o m\u00f4i tr\u01b0\u1eddng l\u1eadp tr\u00ecnh \u1ed5n \u0111\u1ecbnh, ch\u1ea1y ch\u01b0\u01a1ng tr\u00ecnh \u0111\u1ea7u ti\u00ean, v\u00e0 s\u1eb5n s\u00e0ng h\u1ecdc h\u1ecfi nh\u1eefng ki\u1ebfn th\u1ee9c n\u00e2ng cao h\u01a1n.<\/p>\n","protected":false},"author":1,"featured_media":3733,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"googlesitekit_rrm_CAowieHDDA:productID":"","footnotes":""},"categories":[41],"tags":[40],"class_list":["post-1280","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-kien-thuc-lap-trinh","tag-python-co-ban"],"_links":{"self":[{"href":"https:\/\/kienthucmo.com\/vi\/wp-json\/wp\/v2\/posts\/1280","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kienthucmo.com\/vi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kienthucmo.com\/vi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kienthucmo.com\/vi\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kienthucmo.com\/vi\/wp-json\/wp\/v2\/comments?post=1280"}],"version-history":[{"count":5,"href":"https:\/\/kienthucmo.com\/vi\/wp-json\/wp\/v2\/posts\/1280\/revisions"}],"predecessor-version":[{"id":3734,"href":"https:\/\/kienthucmo.com\/vi\/wp-json\/wp\/v2\/posts\/1280\/revisions\/3734"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kienthucmo.com\/vi\/wp-json\/wp\/v2\/media\/3733"}],"wp:attachment":[{"href":"https:\/\/kienthucmo.com\/vi\/wp-json\/wp\/v2\/media?parent=1280"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kienthucmo.com\/vi\/wp-json\/wp\/v2\/categories?post=1280"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kienthucmo.com\/vi\/wp-json\/wp\/v2\/tags?post=1280"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}