Posts

Showing posts with the label Setup

VIM Setup using Miniforge for Windows 11

Image
 (A) Here are the steps for my Vim installation using Miniforge I've installed Vim through Miniforge using mamba. I have kept Vim in its own "box" so that it does not mess up my other projects or base installation. 1. Create "Tools" Environment mamba create -n my_tools -c conda-forge vim  mamba activate my_tools 2. Install Vim  mamba install vim   Note : Since Miniforge defaults to the conda-forge channel, you typically do not need to specify the channel explicitly with -c conda-forge, but doing so ensures you get the community version.  3. Verify the Installation . After the installation is completed, you can check if Vim is installed correctly by running:  vim --version You should see output that includes information about the installed Vim version and its features.  4. Create Vim Configuration (_vimrc) Configure Vim settings, e.g., to make the editor behaving nicely for Python (indenting correctly). In Windows, the configuration file is usually name...

Miniforge Cheat Sheet

Image
The core takeaway when using Miniforge is that mamba serves as a fast, drop-in replacement for conda, meaning you can swap the word conda for mamba in almost every environment and package management command. For optimal performance, use mamba to handle heavy lifting tasks like downloading, searching, and installing packages, and use conda for basic environment activation or shell initialization.  Here's a Miniforge Cheat Sheet created with AI's help.  It will cover the essential categories of your daily workflow. 1. Initialization Commands Before running operations, ensure Miniforge is properly integrated into your command line interface.  - conda init: Registers the package manager configuration to your specific shell or terminal program. - mamba init: Adds performance-optimized shell configurations tailored directly for Mamba-specific executions.  2. Environment Management Isolate distinct projects by organizing their dependencies inside standalone virtual runtime ...

Miniforge Windows Update and Issue Fixed

Image
  I have not used Miniforge for some time. So I decided to update my last installation before using it. But when updating, I encountered a secure-connection issue on Windows. AI said, "The error schannel: the revocation status is unknown means my computer's built-in Windows security system (Schannel) cannot verify whether the SSL security certificates for the download servers have been revoked. This often happens after a long period of inactivity or due to strict corporate network rules." AI also gave me a list of fixes to try. I finally fixed the error using a temporary workaround - by turning off SSL verification entirely. I temporarily disabled SSL verification altogether just to get the system updated. Note: Turn this back on later for security. 1. Disable SSL check:     conda config --set ssl_verify false 2. Run updates:    conda update -n base -c conda-forge conda    mamba update mamba    mamba update --all 3. Important: Onc...

Miniforge Windows 11 Setup and Time Bug Fix

Image
  (A) Here are the essentials of my Windows 11 Miniforge setup and fixation of an installation bug, together with useful links and command cheat sheet. 1. Windows 11 Miniforge Installation - Download the Windows installer (.exe) directly from the Conda-Forge GitHub.  - The Golden Rule: Always select "Just Me" (not "All Users") when prompted about who to install for. - Security Prompt: If Windows Defender SmartScreen blocks the app, just click "More Info" and then "Run Anyway". 2. Open Miniforge Prompt from the Windows Start Menu. Press Windows key, search for Miniforge Prompt, and click it. This is the only place where Python commands will work natively.   3. Follow basic rules and commands to keep computer safe and organized. - Protect the "Base" Environment: Always leave the base environment as it is. If it breaks, you will have to reinstall the app. - Create a sandbox (Environment): Create a separate environment named my_ai with Pyth...

Minimalist AI Stack: Learning Python and AI with Vim and Miniforge

Image
  I have asked AI Collaborator to guess why I choose “Miniforge and VIM” for learning Python and AI by projects. This is its reply: It is because you want to build a rock-solid foundation by forcing yourself to understand how your code works under the hood, rather than relying on ‘magic’. Here is a guess at the psychology and strategy behind your setup: 1. You want to understand dependencies, not just hide them. Python environments, especially for AI (which relies on heavy libraries like PyTorch or TensorFlow), are notorious for dependency hell. The easy path: Anaconda or pipenv. Your path: Miniforge. You have chosen this because it gives you raw control. It forces you to learn how conda-forge packages things, how to isolate your AI projects using conda activate, and how to resolve version conflicts manually so you actually understand what your system is running. 2. You are prioritizing absolute focus and speed. AI development involves looking at a lot of text, code, and document...