ตอบ

ชื่อ:
อีเมล์:
หัวข้อ:
ไอค่อนข้อความ:

คลิกที่นี่เพื่ออัพโหลดรูป

Verification:
Type the letters shown in the picture
Listen to the letters / Request another image

Type the letters shown in the picture:
พิมพ์หรือคัดลอกคำว่า "ปืนบีบี" ลงในช่องด้านล่าง:

shortcuts: กด alt+s เพื่อตั้งกระทู้ หรือ alt+p แสดงตัวอย่าง


สรุปหัวข้อ

ข้อความโดย: abdnova
« เมื่อ: เมื่อวานนี้ เวลา 11:23:16 PM »

Installing several Python packages globally can make it difficult to reproduce a project when two applications require different library versions. A virtual environment is a practical solution for Python development on Windows 11 and Windows 10.

Open a terminal in the project folder and run py -m venv .venv if the Python launcher is available. In Command Prompt, activate it with .venv\Scripts\activate.bat. Install packages using python -m pip install followed by the package name. Check the active interpreter before running scripts.

For anyone preparing a free Python 64-bit installation, my website includes information about Python for Windows 11 64-bit. Choose the official installer appropriate for the PC architecture and supported operating system.

Record dependencies with python -m pip freeze > requirements.txt when appropriate. Avoid committing the virtual environment itself to version control. A new environment can then be created on another computer using the recorded requirements.