Skip to content

Commit 4255b57

Browse files
authored
Create Installing.md
1 parent 82213c6 commit 4255b57

File tree

1 file changed

+104
-0
lines changed

1 file changed

+104
-0
lines changed

English/Installing.md

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
To get started with Python development on Windows, macOS, or Linux, you'll need to install Python and set up your development environment. Here’s a step-by-step guide and examples for each operating system.
2+
3+
---
4+
5+
### 1. **Installing Python on Windows**
6+
7+
- **Step 1**: Go to the [Python downloads page](https://www.python.org/downloads/).
8+
- **Step 2**: Download the latest Python installer for Windows.
9+
- **Step 3**: Run the installer. Make sure to check the box **"Add Python to PATH"** before clicking "Install Now." This step allows you to run Python from the command line.
10+
- **Step 4**: Once installed, open **Command Prompt** and type `python --version` to verify the installation.
11+
12+
**Example**:
13+
```shell
14+
python --version
15+
```
16+
Output should look like:
17+
```
18+
Python 3.x.x
19+
```
20+
21+
---
22+
23+
### 2. **Installing Python on macOS**
24+
25+
- **Step 1**: macOS comes with Python 2.x pre-installed, but it’s recommended to install Python 3.x. You can use **Homebrew** for an easier installation.
26+
27+
- **Step 2**: Open **Terminal** and install Homebrew if it’s not installed:
28+
```shell
29+
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
30+
```
31+
32+
- **Step 3**: Install Python 3 using Homebrew:
33+
```shell
34+
brew install python
35+
```
36+
37+
- **Step 4**: Verify installation by typing `python3 --version` in Terminal.
38+
39+
**Example**:
40+
```shell
41+
python3 --version
42+
```
43+
Output should look like:
44+
```
45+
Python 3.x.x
46+
```
47+
48+
---
49+
50+
### 3. **Installing Python on Linux**
51+
52+
- **Step 1**: Most Linux distributions come with Python pre-installed. To check the version installed, open **Terminal** and type:
53+
```shell
54+
python3 --version
55+
```
56+
57+
- **Step 2**: To install the latest version or update, use your package manager. For example:
58+
- **Ubuntu/Debian**:
59+
```shell
60+
sudo apt update
61+
sudo apt install python3
62+
```
63+
- **Fedora**:
64+
```shell
65+
sudo dnf install python3
66+
```
67+
68+
- **Step 3**: Verify by typing `python3 --version` in Terminal.
69+
70+
**Example**:
71+
```shell
72+
python3 --version
73+
```
74+
Output should look like:
75+
```
76+
Python 3.x.x
77+
```
78+
79+
---
80+
81+
### **Setting Up Your Development Environment**
82+
83+
- **1. Code Editor**: Install a code editor like **Visual Studio Code** or **PyCharm**.
84+
- **2. Virtual Environment (Optional but Recommended)**: Use `venv` to create isolated environments for different projects.
85+
- Create a virtual environment:
86+
```shell
87+
python -m venv myenv
88+
```
89+
- Activate the virtual environment:
90+
- **Windows**:
91+
```shell
92+
myenv\Scripts\activate
93+
```
94+
- **macOS/Linux**:
95+
```shell
96+
source myenv/bin/activate
97+
```
98+
99+
- **3. Install Packages**: Use `pip` to install additional packages.
100+
```shell
101+
pip install <package_name>
102+
```
103+
104+
This setup will ensure that Python and your environment are configured for development on any operating system. Let me know if you need more specific guidance on any of these steps!

0 commit comments

Comments
 (0)