Skip to content

Commit

Permalink
Create Installing.md
Browse files Browse the repository at this point in the history
  • Loading branch information
0joseDark authored Nov 6, 2024
1 parent 82213c6 commit 4255b57
Showing 1 changed file with 104 additions and 0 deletions.
104 changes: 104 additions & 0 deletions English/Installing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
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.

---

### 1. **Installing Python on Windows**

- **Step 1**: Go to the [Python downloads page](https://www.python.org/downloads/).
- **Step 2**: Download the latest Python installer for Windows.
- **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.
- **Step 4**: Once installed, open **Command Prompt** and type `python --version` to verify the installation.

**Example**:
```shell
python --version
```
Output should look like:
```
Python 3.x.x
```

---

### 2. **Installing Python on macOS**

- **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.

- **Step 2**: Open **Terminal** and install Homebrew if it’s not installed:
```shell
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
```

- **Step 3**: Install Python 3 using Homebrew:
```shell
brew install python
```

- **Step 4**: Verify installation by typing `python3 --version` in Terminal.

**Example**:
```shell
python3 --version
```
Output should look like:
```
Python 3.x.x
```
---
### 3. **Installing Python on Linux**
- **Step 1**: Most Linux distributions come with Python pre-installed. To check the version installed, open **Terminal** and type:
```shell
python3 --version
```
- **Step 2**: To install the latest version or update, use your package manager. For example:
- **Ubuntu/Debian**:
```shell
sudo apt update
sudo apt install python3
```
- **Fedora**:
```shell
sudo dnf install python3
```
- **Step 3**: Verify by typing `python3 --version` in Terminal.
**Example**:
```shell
python3 --version
```
Output should look like:
```
Python 3.x.x
```

---

### **Setting Up Your Development Environment**

- **1. Code Editor**: Install a code editor like **Visual Studio Code** or **PyCharm**.
- **2. Virtual Environment (Optional but Recommended)**: Use `venv` to create isolated environments for different projects.
- Create a virtual environment:
```shell
python -m venv myenv
```
- Activate the virtual environment:
- **Windows**:
```shell
myenv\Scripts\activate
```
- **macOS/Linux**:
```shell
source myenv/bin/activate
```

- **3. Install Packages**: Use `pip` to install additional packages.
```shell
pip install <package_name>
```

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 comments on commit 4255b57

Please sign in to comment.