Setting Up Python Environment and Project Configuration

Setting Up Python Environment and Project Configuration

1.Download link for Python https://www.python.org/downloads/windows/ 2. Installation Select custom installation, and make sure to check the box to add Python to the environment path; Verification after installation: python –version pip –version Pip is the package manager for Python 3. Create a virtual environment First, create a project directory, for example, E:\Code\llmops\llmops-api Open cmd in that … Read more

Introduction to pip Functionality in Python 3 and Installation Guide

Introduction to pip Functionality in Python 3 and Installation Guide

1. Pre-Learning Insights As we delve deeper into learning Python, we notice a phenomenon: the Python language seems not as simple as it is said to be! Whether it is classes/objects or iterators/generators, it can be somewhat profound. In fact, saying that Python is simple is relative to previous languages like C and Java, which … Read more

Exploring the Many Uses of Linux Pipes

Exploring the Many Uses of Linux Pipes

Source | TLPI System Programming Notes Compiled & formatted | Embedded Application Research Institute Overview The most common use of pipes is in the shell, for example: $ ls | wc -l To execute the above command, the shell creates two processes to execute <span>ls</span> and <span>wc</span> (achieved through <span>fork()</span> and <span>exec()</span>), as shown below: … Read more

Comprehensive Guide to Python Environment Management with pip

Comprehensive Guide to Python Environment Management with pip

pip is the core tool for Python package management, yet many developers only utilize its basic features. This guide will delve into how to efficiently use pip to manage Python environments and dependencies, ensuring the reproducibility and stability of the development environment. Why is Environment Management Crucial? Project Isolation: Prevents dependency conflicts between different projects … Read more

Installing Python Modules Using pip

Installing Python Modules Using pip

Editor: AI for Humanities Editorial Team There are many ways to install external Python libraries; this tutorial will introduce one of the most common methods: using pip. Course Objectives This course will show you how to download and install Python modules. There are many methods to install external modules, but in this course, we will … Read more

Kali Linux Configuration Notes

Kali Linux Configuration Notes

1. Set Time Zone Right-click on the time -> Properties -> Select a city in the East Eight Time Zone (Singapore) 2. Modify Username or Hostname Display // Modify ~/.zshrc file vim ~/.zshrc // Change emoji to @ 3. Set Up SSH Passwordless Login // Generate key pair // Public key (id_rsa.pub) and private key … Read more

Comprehensive Guide to Installing Python

Comprehensive Guide to Installing Python

1. Download Python Download Python Click here to go to the Python download page On the download page, you can see many different version download links. Among them, the ones marked as x86 are 32-bit installers, while x86-64 are 64-bit installers. The executable installer is a complete installation package that can be installed directly after … Read more

Creating, Importing, and Installing Python Packages

Creating, Importing, and Installing Python Packages

Introduction If<span>Python</span> has too many modules, it can cause some confusion. In this case, you can manage the modules using a<span>Python package</span>, which is essentially a folder containing a large number of module files. 1. Custom Python Packages 14.1.1 Creating a Custom Package In <span>Pycharm</span>, create a new <span>package</span> in the <span>project</span>: This will create … Read more

Steps to Set Up a Python Virtual Environment

Steps to Set Up a Python Virtual Environment

Open the folder where you want to run the program, and type cmd in the current folder. In the cmd, type: Create a virtual environment cls is the name you give to the virtual environment conda create -n cls python==3.8.5 Activate the virtual environment conda activate cls Install various libraries from the requirements folder pip … Read more

Downloading and Installing Offline Python Modules

Downloading and Installing Offline Python Modules

Below is my summary, feel free to add: 1. Module Download 1.1 First, let me introduce the official mirror download address:https://pypi.org/ After entering, simply search for the package name. 1.2 Downloading with pip Find a computer with internet access, and in cmd type pip download PyPDF4 2. Module Installation Python offline packages come in two … Read more