Cigar Funhouse Forum Index Cigar Funhouse
Cigars, and all things related - brought to you by Richmond Avenue Cigar
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to Keep Python Project Dependencies Separate on Windows

 
Post new topic   Reply to topic    Cigar Funhouse Forum Index -> General News
View previous topic :: View next topic  
Author Message
abdnova



Joined: 27 Nov 2026
Posts: 475
Location: Bahrain

PostPosted: Mon Nov 30, 2026 7:38 am    Post subject: How to Keep Python Project Dependencies Separate on Windows Reply with quote

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.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cigar Funhouse Forum Index -> General News All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB and Webmasters.com © 2001, 2005 phpBB Group