You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/post/python-install/index.md
+59-4Lines changed: 59 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -192,9 +192,9 @@ To check if your macOS has Python installed, open Terminal and do something like
192
192
- Run `python3 --version` If the version is 3.x.*, Python 3 is pre-installed
193
193
194
194
> **Note:**
195
-
> Recent versions of macOS include a **python3** command in `/usr/bin/python3` that links to a usually older and incomplete version of Python provided by and for use by the Apple development tools, **Xcode** or the **Command Line Tools for Xcode**
196
-
> You should never modify or attempt to delete this installation, as it is Apple-controlled and is used by Apple-provided or third-party software
197
-
> If you choose to install a newer Python version from `python.org`, you will have two different but functional Python installations on your computer that can co-exist
195
+
> Recent versions of macOS include a **python3** command in `/usr/bin/python3` that links to a usually older and incomplete version of Python provided by and for use by the Apple development tools, **Xcode** or the **Command Line Tools for Xcode**<br>
196
+
> You should never modify or attempt to delete this installation, as it is Apple-controlled and is used by Apple-provided or third-party software<br>
197
+
> If you choose to install a newer Python version from `python.org`, you will have two different but functional Python installations on your computer that can co-exist<br>
198
198
> The default installer options should ensure that its **python3** will be used instead of the system **python3**
199
199
200
200
Here are a few common installation methods for Python, and you can choose the one that suits you according to your needs.
@@ -242,4 +242,59 @@ To install Python on macOS using Homebrew, follow these steps:
242
242

243
243
4. Run Brew Link Python or Brew Link python@3. XX (replace XX with the correct version number) - Then restart the Terminal application to make sure the application is working properly
244
244

245
-
5. Once the installation is complete, you can run the `python -–version` or `python3 –-version` command to verify the installation
245
+
5. Once the installation is complete, you can run the `python -–version` or `python3 –-version` command to verify the installation
246
+
247
+
248
+
## Linux
249
+
The simplest way to install Python on a Linux system is to use the package manager. Below are methods for installing Python with different package managers:
250
+
251
+
### Debian / Ubuntu / Mint
252
+
For Debian / Ubuntu / Mint systems, Python is typically installed using the apt package manager:
253
+
254
+
```bash
255
+
sudo apt update # Refresh the system's package database to ensure you get the latest versions
256
+
sudo apt upgrade # Update all installed packages to their latest versions to avoid compatibility issues
0 commit comments