<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:g-custom="http://base.google.com/cns/1.0" version="2.0">
  <channel>
    <title>610f7b23aedd46ec88603849e98dda36</title>
    <link>https://www.pmiscs.com</link>
    <description />
    <atom:link href="https://www.pmiscs.com/feed/rss2" type="application/rss+xml" rel="self" />
    <item>
      <title>Install python libraries for specific needs</title>
      <link>https://www.pmiscs.com/install python libraries for specific needs</link>
      <description />
      <content:encoded>&lt;div data-rss-type="text"&gt;&#xD;
  &lt;h3&gt;&#xD;
    &lt;span&gt;
           Install Python libraries for specific needs
          &lt;/span&gt;&#xD;
  &lt;/h3&gt;&#xD;
&lt;/div&gt;&lt;div&gt;&#xD;
  &lt;img src="https://cdn.website-editor.net/md/dmtmpl/dms3rep/multi/blog_post_image.png"/&gt;&#xD;
&lt;/div&gt;&lt;div data-rss-type="text"&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;strong&gt;
           Note:
          &lt;/strong&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;span&gt;
            To install these libraries in Visual Studio Code (VS Code), you don't actually install them "into" VS Code itself; rather, you install them into a
           &lt;/span&gt;&#xD;
    &lt;/span&gt;&#xD;
    &lt;strong&gt;
           Python Environment
          &lt;/strong&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;span&gt;
            that VS Code then uses to run your code.
           &lt;/span&gt;&#xD;
    &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;span&gt;
            The professional standard is to use a
           &lt;/span&gt;&#xD;
    &lt;/span&gt;&#xD;
    &lt;strong&gt;
           Virtual Environment
          &lt;/strong&gt;&#xD;
    &lt;span&gt;
           . This keeps your projects organized and prevents library versions from clashing (e.g., your Healthcare project won't break your Finance project).
          &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;br/&gt;&#xD;
    &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;strong&gt;
           Note:
          &lt;/strong&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;span&gt;
            Go to Step 4 if you are already in the virtual environment
           &lt;/span&gt;&#xD;
    &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;h2&gt;&#xD;
    &lt;span&gt;
           Step 1: Open the Terminal in VS Code
          &lt;/span&gt;&#xD;
  &lt;/h2&gt;&#xD;
  &lt;ol&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;span&gt;
            Open your project folder in VS Code.
           &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             Open the integrated terminal by pressing 
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
      &lt;code&gt;
            Ctrl + `
           &lt;/code&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
               (backtick) or going to
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
      &lt;strong&gt;
            Terminal &amp;gt; New Terminal
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             in the top menu.
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
  &lt;/ol&gt;&#xD;
  &lt;h2&gt;&#xD;
    &lt;span&gt;
           Step 2: Create a Virtual Environment
          &lt;/span&gt;&#xD;
  &lt;/h2&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;
           In the terminal, type the following command:
          &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;strong&gt;
           Windows:
          &lt;/strong&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           python -m venv .venv
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;br/&gt;&#xD;
    &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;strong&gt;
           macOS/Linux:
          &lt;/strong&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           python3 -m venv .venv
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;br/&gt;&#xD;
    &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;span&gt;
            This creates a folder named 
           &lt;/span&gt;&#xD;
    &lt;/span&gt;&#xD;
    &lt;code&gt;
           .venv
          &lt;/code&gt;&#xD;
    &lt;span&gt;
             in your project directory which will hold your libraries.
          &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;br/&gt;&#xD;
    &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;h2&gt;&#xD;
    &lt;span&gt;
           Step 3: Select the Environment in VS Code
          &lt;/span&gt;&#xD;
  &lt;/h2&gt;&#xD;
  &lt;ol&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             Press 
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
      &lt;code&gt;
            Ctrl + Shift + P
           &lt;/code&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
               to open the
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
      &lt;strong&gt;
            Command Palette
           &lt;/strong&gt;&#xD;
      &lt;span&gt;
            .
           &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             Type
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
      &lt;strong&gt;
            "Python: Select Interpreter"
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             and click it.
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             Choose the one that says
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
      &lt;strong&gt;
            "Python 3.x.x ('.venv': venv)"
           &lt;/strong&gt;&#xD;
      &lt;span&gt;
            . This tells VS Code to use the local environment you just created.
           &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
  &lt;/ol&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;br/&gt;&#xD;
    &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;h2&gt;&#xD;
    &lt;span&gt;
           Step 4: Install the Libraries
          &lt;/span&gt;&#xD;
  &lt;/h2&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;span&gt;
            Now, use 
           &lt;/span&gt;&#xD;
    &lt;/span&gt;&#xD;
    &lt;code&gt;
           pip
          &lt;/code&gt;&#xD;
    &lt;span&gt;
             (Python's package manager) to install the libraries you need. You can install them one by one or all at once.
          &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;strong&gt;
           To install specific libraries as per your needs as shown below:
          &lt;/strong&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;br/&gt;&#xD;
    &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           # Data Analysis
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           pip install pandas numpy matplotlib seaborn
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;br/&gt;&#xD;
    &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           # AI &amp;amp; Machine Learning
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           pip install scikit-learn torch torchvision torchaudio
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;br/&gt;&#xD;
    &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           # Finance
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           pip install yfinance quantlib pandas-ta
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;br/&gt;&#xD;
    &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           # Healthcare
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           pip install pydicom biopython lifelines
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;br/&gt;&#xD;
    &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;h2&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;span&gt;
            Pro Tip: Using a 
           &lt;/span&gt;&#xD;
    &lt;/span&gt;&#xD;
    &lt;code&gt;
           requirements.txt
          &lt;/code&gt;&#xD;
    &lt;span&gt;
             file
          &lt;/span&gt;&#xD;
  &lt;/h2&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;span&gt;
            If you have many libraries, it is best to list them in a text file named 
           &lt;/span&gt;&#xD;
    &lt;/span&gt;&#xD;
    &lt;code&gt;
           requirements.txt
          &lt;/code&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;span&gt;
            .
           &lt;/span&gt;&#xD;
    &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;ol&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             Create a new file in VS Code named 
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
      &lt;code&gt;
            requirements.txt
           &lt;/code&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             .
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;span&gt;
            List your libraries inside:
           &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
  &lt;/ol&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;br/&gt;&#xD;
    &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;ul&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;code&gt;
            pandas
           &lt;/code&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;code&gt;
            scikit-learn
           &lt;/code&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;code&gt;
            yfinance
           &lt;/code&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;code&gt;
            pydicom
           &lt;/code&gt;&#xD;
    &lt;/li&gt;&#xD;
  &lt;/ul&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;br/&gt;&#xD;
    &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;
           3. Run this single command in your terminal:
          &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;ul&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;code&gt;
            pip install -r requirements.txt
           &lt;/code&gt;&#xD;
    &lt;/li&gt;&#xD;
  &lt;/ul&gt;&#xD;
  &lt;h3&gt;&#xD;
    &lt;span&gt;
           Troubleshooting Tips
          &lt;/span&gt;&#xD;
  &lt;/h3&gt;&#xD;
  &lt;ul&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;strong&gt;
            "Pip is not recognized":
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             On Windows, try using 
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
      &lt;code&gt;
            python -m pip install ...
           &lt;/code&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
               instead of just 
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
      &lt;code&gt;
            pip install
           &lt;/code&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             .
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;strong&gt;
            Permissions:
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             If you get a permission error, ensure you have activated your virtual environment. On Windows, run 
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
      &lt;code&gt;
            .venv\Scripts\activate
           &lt;/code&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             ; on Mac/Linux, run 
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
      &lt;code&gt;
            source .venv/bin/activate
           &lt;/code&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             .
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;strong&gt;
            VS Code Extension:
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             Make sure you have the
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
      &lt;strong&gt;
            Python extension by Microsoft
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             installed from the VS Code Marketplace.
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
  &lt;/ul&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;br/&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;h2&gt;&#xD;
    &lt;span&gt;
           Recommendations:
          &lt;/span&gt;&#xD;
  &lt;/h2&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;span&gt;
            Creating a
           &lt;/span&gt;&#xD;
    &lt;/span&gt;&#xD;
    &lt;code&gt;
           requirements.txt
          &lt;/code&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;span&gt;
            file is the best way to ensure your project is reproducible. Below is a comprehensive, categorized template that includes the industry-standard libraries we discussed.
           &lt;/span&gt;&#xD;
    &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;span&gt;
            You can copy this entire block and save it as a file named
           &lt;/span&gt;&#xD;
    &lt;/span&gt;&#xD;
    &lt;code&gt;
           requirements.txt
          &lt;/code&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;span&gt;
            in your VS Code project folder.
           &lt;/span&gt;&#xD;
    &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;
           Plaintext
          &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;br/&gt;&#xD;
    &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           ###############################################################################
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           # 1. DATA ANALYSIS &amp;amp; VISUALIZATION
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           ###############################################################################
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           numpy                 # Numerical computing and arrays
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           pandas                # Data manipulation and DataFrames
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           matplotlib            # Basic 2D plotting
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           seaborn               # Statistical data visualization
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           plotly                # Interactive web-based visualizations
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           scipy                 # Scientific computing and advanced math
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;br/&gt;&#xD;
    &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           ###############################################################################
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           # 2. ARTIFICIAL INTELLIGENCE (AI) &amp;amp; MACHINE LEARNING
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           ###############################################################################
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           scikit-learn          # Traditional ML (Regression, Classification)
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           torch                 # PyTorch - Deep Learning &amp;amp; Neural Networks
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           torchvision           # Computer Vision utilities for PyTorch
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           transformers          # Hugging Face - NLP and Generative AI
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           langchain             # Framework for LLM applications
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           opencv-python         # Computer Vision and image processing
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;br/&gt;&#xD;
    &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           ###############################################################################
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           # 3. WEB DEVELOPMENT
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           ###############################################################################
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           django                # High-level "Batteries-included" web framework
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           flask                 # Lightweight micro-framework
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           fastapi               # High-performance API framework
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           uvicorn               # ASGI server for FastAPI
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           streamlit             # Building data apps quickly
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           beautifulsoup4        # Web scraping and HTML parsing
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;br/&gt;&#xD;
    &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           ###############################################################################
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           # 4. FINANCIAL ANALYSIS &amp;amp; ALGORITHMIC TRADING
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           ###############################################################################
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           yfinance              # Downloading Yahoo Finance market data
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           QuantLib              # Quantitative finance modeling and risk
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           pandas-ta             # Technical analysis indicators
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           backtrader            # Strategy backtesting framework
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           pyportfolioopt        # Portfolio optimization (Mean-Variance)
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;br/&gt;&#xD;
    &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           ###############################################################################
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           # 5. HEALTHCARE &amp;amp; MEDICAL RESEARCH
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           ###############################################################################
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           pydicom               # Handling DICOM medical imaging files
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           biopython             # Bioinformatics and biological computation
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           lifelines             # Survival analysis for clinical trials
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           pyhealth              # Deep learning for healthcare datasets
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;h3&gt;&#xD;
    &lt;br/&gt;&#xD;
  &lt;/h3&gt;&#xD;
  &lt;h3&gt;&#xD;
    &lt;span&gt;
           How to use this file in VS Code:
          &lt;/span&gt;&#xD;
  &lt;/h3&gt;&#xD;
  &lt;ol&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;strong&gt;
            Open your Terminal
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             (
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
      &lt;code&gt;
            Ctrl + `
           &lt;/code&gt;&#xD;
      &lt;span&gt;
            ).
           &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;strong&gt;
            Ensure your Virtual Environment is active
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             (You should see
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
      &lt;code&gt;
            (.venv)
           &lt;/code&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             at the start of your terminal line).
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;strong&gt;
            Run the install command
           &lt;/strong&gt;&#xD;
      &lt;span&gt;
            :
            &lt;br/&gt;&#xD;
      &lt;/span&gt;&#xD;
      &lt;code&gt;
            pip install -r requirements.txt
           &lt;/code&gt;&#xD;
    &lt;/li&gt;&#xD;
  &lt;/ol&gt;&#xD;
  &lt;blockquote&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;span&gt;
            [!TIP]
           &lt;/span&gt;&#xD;
    &lt;/span&gt;&#xD;
    &lt;strong&gt;
           A Note on AI Libraries:
          &lt;/strong&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;span&gt;
            If you have a dedicated NVIDIA GPU, you may need a specific version of
           &lt;/span&gt;&#xD;
    &lt;/span&gt;&#xD;
    &lt;code&gt;
           torch
          &lt;/code&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;span&gt;
            to enable hardware acceleration. If you don't have a GPU, the command above will install the standard CPU version.
           &lt;/span&gt;&#xD;
    &lt;/span&gt;&#xD;
  &lt;/blockquote&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;br/&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;h2&gt;&#xD;
    &lt;span&gt;
           Resources:
          &lt;/span&gt;&#xD;
  &lt;/h2&gt;&#xD;
  &lt;h2&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;br/&gt;&#xD;
    &lt;/span&gt;&#xD;
  &lt;/h2&gt;&#xD;
  &lt;h2&gt;&#xD;
    &lt;span&gt;
           1. Data Analysis &amp;amp; Visualization
          &lt;/span&gt;&#xD;
  &lt;/h2&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;
           These libraries form the "Scientific Python" stack, used for cleaning, manipulating, and visualizing data.
          &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;ul&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;strong&gt;
            Pandas:
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             The industry standard for data manipulation. It provides     
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
      &lt;code&gt;
            DataFrames
           &lt;/code&gt;&#xD;
      &lt;span&gt;
                  for handling tabular data (like Excel/SQL).
           &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;strong&gt;
            NumPy:
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             Essential for numerical computing. It supports large, multi-dimensional arrays and high-level mathematical functions.
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;strong&gt;
            Matplotlib:
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             The foundation for 2D plotting. Best for creating static, high-quality charts and graphs.
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;strong&gt;
            Seaborn:
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             Built on Matplotlib, it makes statistical graphics look much more professional with less code.
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;strong&gt;
            SciPy:
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             Used for scientific and technical computing, including integration, optimization, and signal processing.
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;strong&gt;
            Plotly:
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             Ideal for creating
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
      &lt;strong&gt;
            interactive
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             and web-ready visualizations.
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
  &lt;/ul&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;br/&gt;&#xD;
    &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;h2&gt;&#xD;
    &lt;span&gt;
           2. Artificial Intelligence (AI) &amp;amp; Machine Learning
          &lt;/span&gt;&#xD;
  &lt;/h2&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;
           Python's AI ecosystem is divided into "Traditional ML" and "Deep Learning" (Neural Networks).
          &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;ul&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;strong&gt;
            Scikit-learn:
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             The most important library for traditional machine learning (regression, classification, and clustering).
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;strong&gt;
            PyTorch:
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             Currently the most popular framework for AI research and deep learning, known for its flexibility and "Pythonic" feel.
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;strong&gt;
            TensorFlow / Keras:
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             Developed by Google, this is a robust ecosystem for building and deploying production-scale deep learning models.
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;strong&gt;
            Hugging Face (Transformers):
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             The go-to library for modern
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
      &lt;strong&gt;
            Generative AI
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             and Natural Language Processing (NLP).
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;strong&gt;
            LangChain:
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             A newer framework specifically designed to build applications powered by Large Language Models (like GPT-4 or Llama).
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;strong&gt;
            OpenCV:
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             The standard for
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
      &lt;strong&gt;
            Computer Vision
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             tasks like facial recognition and image processing.
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
  &lt;/ul&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;br/&gt;&#xD;
    &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;h2&gt;&#xD;
    &lt;span&gt;
           3. Web Development
          &lt;/span&gt;&#xD;
  &lt;/h2&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;
           Python offers frameworks for building everything from simple APIs to massive social media platforms.
          &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;ul&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;strong&gt;
            Django:
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             A "batteries-included" framework. It comes with a built-in admin panel, database ORM, and security features. Best for large, complex sites.
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;strong&gt;
            Flask:
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             A "micro-framework." It is lightweight and flexible, making it perfect for smaller apps and beginners.
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;strong&gt;
            FastAPI:
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             The modern choice for building high-performance APIs. It is extremely fast and uses Python type hints for automatic validation.
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;strong&gt;
            Streamlit:
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             Specifically for data scientists. It allows you to turn a data script into a shareable web app in minutes without knowing HTML/CSS.
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;strong&gt;
            Beautiful Soup / Scrapy:
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             Essential for
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
      &lt;strong&gt;
            Web Scraping
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             (collecting data from websites to use in your AI or analysis projects).
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
  &lt;/ul&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;br/&gt;&#xD;
    &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;h2&gt;&#xD;
    &lt;span&gt;
           4. Financial Analysis &amp;amp; Algorithmic Trading
          &lt;/span&gt;&#xD;
  &lt;/h2&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;
           Financial data is unique because it is heavily time-series based and requires extreme precision.
          &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;h3&gt;&#xD;
    &lt;strong&gt;
           Data Retrieval &amp;amp; Market Access
          &lt;/strong&gt;&#xD;
  &lt;/h3&gt;&#xD;
  &lt;ul&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;strong&gt;
            yfinance:
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             The most popular community-driven library for downloading historical market data from Yahoo Finance.
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;strong&gt;
            Alpha Vantage / Quandl (Nasdaq Data Link):
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             APIs used to pull professional-grade financial, economic, and alternative data.
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;strong&gt;
            CCXT:
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             A "must-have" for cryptocurrency traders; it provides a unified way to connect to over 100 different crypto exchanges.
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
  &lt;/ul&gt;&#xD;
  &lt;h3&gt;&#xD;
    &lt;strong&gt;
           Quantitative Modeling &amp;amp; Analytics
          &lt;/strong&gt;&#xD;
  &lt;/h3&gt;&#xD;
  &lt;ul&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;strong&gt;
            QuantLib:
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             An industry-standard library for modeling, trading, and risk management. It is used for complex tasks like pricing derivatives and interest rate modeling.
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;strong&gt;
            PyPortfolioOpt:
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             A specialized library for
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
      &lt;strong&gt;
            Portfolio Optimization
           &lt;/strong&gt;&#xD;
      &lt;span&gt;
            . It helps you calculate the best way to allocate assets to maximize returns for a given level of risk (Mean-Variance Optimization).
           &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;strong&gt;
            Arch:
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             Used for financial econometrics, specifically for modeling volatility (GARCH models) and performing unit root tests.
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
  &lt;/ul&gt;&#xD;
  &lt;h3&gt;&#xD;
    &lt;strong&gt;
           Technical Analysis &amp;amp; Indicators
          &lt;/strong&gt;&#xD;
  &lt;/h3&gt;&#xD;
  &lt;ul&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;strong&gt;
            TA-Lib:
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             The "gold standard" for technical analysis. It includes over 150 indicators like RSI, MACD, and Bollinger Bands.
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;strong&gt;
            Pandas-ta:
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             A more "Pythonic" and easy-to-use alternative to TA-Lib that integrates directly with Pandas DataFrames.
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
  &lt;/ul&gt;&#xD;
  &lt;h3&gt;&#xD;
    &lt;strong&gt;
           Backtesting (Testing Strategies on Past Data)
          &lt;/strong&gt;&#xD;
  &lt;/h3&gt;&#xD;
  &lt;ul&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;strong&gt;
            Backtrader:
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             A powerful framework for testing trading strategies. It allows you to simulate trades, handle commissions, and visualize results on a chart.
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;strong&gt;
            Zipline Reloaded:
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             The engine that originally powered Quantopian. It is an event-driven backtester that is very realistic regarding how trades are executed in the real world.
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;strong&gt;
            VectorBT:
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             A high-performance library that uses NumPy and Numba to backtest millions of strategies at once using "vectorization."
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
  &lt;/ul&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;br/&gt;&#xD;
    &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;h2&gt;&#xD;
    &lt;span&gt;
           5. Healthcare &amp;amp; Medical Research
          &lt;/span&gt;&#xD;
  &lt;/h2&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;
           These libraries are specialized for medical data standards, bioinformatics, and clinical diagnostics.
          &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;h3&gt;&#xD;
    &lt;strong&gt;
           Medical Imaging
          &lt;/strong&gt;&#xD;
  &lt;/h3&gt;&#xD;
  &lt;ul&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;strong&gt;
            Pydicom:
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             The primary library for handling
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
      &lt;strong&gt;
            DICOM
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             files (the standard format for X-rays, MRIs, and CT scans). It allows you to read, modify, and write medical image metadata.
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;strong&gt;
            SimpleITK / ITK:
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             Used for image segmentation and registration. It’s essential for tasks like identifying a tumor in an organ or overlaying two different scans.
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;strong&gt;
            Nibabel:
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             Specifically designed for neuroimaging, it helps in reading and writing common formats like NiFTI used in brain research.
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
  &lt;/ul&gt;&#xD;
  &lt;h3&gt;&#xD;
    &lt;strong&gt;
           Bioinformatics &amp;amp; Genomics
          &lt;/strong&gt;&#xD;
  &lt;/h3&gt;&#xD;
  &lt;ul&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;strong&gt;
            Biopython:
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             The gold standard for biological computation. It provides tools for sequence analysis (DNA/RNA), protein structure modeling, and accessing online biological databases like NCBI.
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;strong&gt;
            Scanpy:
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             A specialized library for analyzing
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
      &lt;strong&gt;
            single-cell gene expression
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             data, used heavily in modern cancer and immunology research.
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;strong&gt;
            Pysam:
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             A wrapper for SAMtools, used to manipulate high-throughput sequencing data (BAM/SAM/VCF files).
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
  &lt;/ul&gt;&#xD;
  &lt;h3&gt;&#xD;
    &lt;strong&gt;
           Interoperability &amp;amp; Health Data Standards
          &lt;/strong&gt;&#xD;
  &lt;/h3&gt;&#xD;
  &lt;ul&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;strong&gt;
            FHIRCraft / fhir.resources:
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             These libraries help developers work with
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
      &lt;strong&gt;
            FHIR
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             (Fast Healthcare Interoperability Resources), the modern global standard for exchanging electronic health records.
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;strong&gt;
            python-hl7:
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             A simple library used to parse and send
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
      &lt;strong&gt;
            HL7 v2.x
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             messages, which is the legacy messaging standard still used by most hospital machines and lab systems.
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
  &lt;/ul&gt;&#xD;
  &lt;h3&gt;&#xD;
    &lt;strong&gt;
           Clinical AI &amp;amp; EHR Analysis
          &lt;/strong&gt;&#xD;
  &lt;/h3&gt;&#xD;
  &lt;ul&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;strong&gt;
            PyHealth:
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             A comprehensive deep learning library designed specifically for healthcare AI. It helps researchers build predictive models for tasks like mortality prediction or medication recommendation using clinical datasets (like MIMIC-III).
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;strong&gt;
            Ehrapy:
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             Built for exploratory analysis of
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
      &lt;strong&gt;
            Electronic Health Records
           &lt;/strong&gt;&#xD;
      &lt;span&gt;
            . it treats EHR data similarly to genomic data, allowing for advanced clustering and survival analysis.
           &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;strong&gt;
            Lifelines:
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             The go-to library for
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
      &lt;strong&gt;
            Survival Analysis
           &lt;/strong&gt;&#xD;
      &lt;span&gt;
            , used in clinical trials to estimate the time until a specific event (like patient recovery or relapse) occurs.
           &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
  &lt;/ul&gt;&#xD;
  &lt;h3&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;br/&gt;&#xD;
    &lt;/span&gt;&#xD;
  &lt;/h3&gt;&#xD;
&lt;/div&gt;</content:encoded>
      <pubDate>Wed, 24 Dec 2025 18:58:56 GMT</pubDate>
      <guid>https://www.pmiscs.com/install python libraries for specific needs</guid>
      <g-custom:tags type="string" />
    </item>
    <item>
      <title>Install Visual Code and Create Virtual Environment</title>
      <link>https://www.pmiscs.com/install-visual-code-and-create-virtual-environment</link>
      <description />
      <content:encoded>&lt;div data-rss-type="text"&gt;&#xD;
  &lt;h3&gt;&#xD;
    &lt;span&gt;
           Install Visual Code and Create Virtual Environment
          &lt;/span&gt;&#xD;
  &lt;/h3&gt;&#xD;
&lt;/div&gt;&lt;div&gt;&#xD;
  &lt;img src="https://cdn.website-editor.net/md/dmtmpl/dms3rep/multi/blog_post_image.png"/&gt;&#xD;
&lt;/div&gt;&lt;div data-rss-type="text"&gt;&#xD;
  &lt;ol&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;a href="https://code.visualstudio.com/" target="_blank"&gt;
            Install Visual Code: https://code.visualstudio.com/
           &lt;/a&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;span&gt;
            Install the Python Extension(
           &lt;/span&gt;&#xD;
      &lt;strong&gt;
            in case this was not installed when installing Visual Code
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             )
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;span&gt;
            Open VS Code.
           &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;span&gt;
            Click the Extensions icon on the left sidebar (it looks like four squares).
           &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;span&gt;
            Search for "Python" and install the one provided by Microsoft.
           &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;span&gt;
            Open Your Project Folder
           &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;span&gt;
            Create a folder on your computer (e.g., Documents/my_project).
           &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;span&gt;
            In VS Code, go to File &amp;gt; Open Folder and select that folder.
           &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;span&gt;
            Open a new Terminal by going to Terminal &amp;gt; New Terminal at the top menu.
           &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;span&gt;
            Create and Activate the Virtual Environment
           &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             In the terminal window at the bottom of your screen, type these commands:                         
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
      &lt;strong&gt;
            python -m venv .venv
           &lt;/strong&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;span&gt;
            Wait a moment; you'll see a folder named .venv appear in your file explorer.
           &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;span&gt;
            Activate the environment:
           &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;strong&gt;
            .venv\Scripts\activate
           &lt;/strong&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;strong&gt;
            Note:
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             You should now see (.venv) in green text at the start of your command line.
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;span&gt;
            Install the libraries in the Virtual Environment
           &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
  &lt;/ol&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;br/&gt;&#xD;
    &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;strong&gt;
           Note:
          &lt;/strong&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;span&gt;
            Windows sets the default execution policy to
           &lt;/span&gt;&#xD;
    &lt;/span&gt;&#xD;
    &lt;code&gt;
           Restricted
          &lt;/code&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;span&gt;
            to prevent malicious scripts from running in the background. Since the 
           &lt;/span&gt;&#xD;
    &lt;/span&gt;&#xD;
    &lt;code&gt;
           .venv\Scripts\Activate.ps1
          &lt;/code&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;span&gt;
            file is technically a script, Windows blocks it until you explicitly tell it that you trust the scripts in your current process.
           &lt;/span&gt;&#xD;
    &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;br/&gt;&#xD;
    &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;span&gt;
            To make this change permanent so you never have to deal with that error again, you need to change the Execution Policy for your
           &lt;/span&gt;&#xD;
    &lt;/span&gt;&#xD;
    &lt;strong&gt;
           Current User
          &lt;/strong&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;span&gt;
            rather than just the "Process."
           &lt;/span&gt;&#xD;
    &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;
           Here is how to do it safely:
          &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;h3&gt;&#xD;
    &lt;span&gt;
           1. Open PowerShell as Administrator
          &lt;/span&gt;&#xD;
  &lt;/h3&gt;&#xD;
  &lt;ol&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             Click the
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
      &lt;strong&gt;
            Windows Start button
           &lt;/strong&gt;&#xD;
      &lt;span&gt;
            .
           &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             Type
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
      &lt;strong&gt;
            PowerShell
           &lt;/strong&gt;&#xD;
      &lt;span&gt;
            .
           &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             Right-click on
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
      &lt;strong&gt;
            Windows PowerShell
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             and select
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
      &lt;strong&gt;
            Run as Administrator
           &lt;/strong&gt;&#xD;
      &lt;span&gt;
            . (This is important because changing system-wide policies requires extra permissions).
           &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
  &lt;/ol&gt;&#xD;
  &lt;h3&gt;&#xD;
    &lt;span&gt;
           2. Run the Permanent Command
          &lt;/span&gt;&#xD;
  &lt;/h3&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;span&gt;
            In the blue window that opens, type (or paste) the following command and press
           &lt;/span&gt;&#xD;
    &lt;/span&gt;&#xD;
    &lt;strong&gt;
           Enter
          &lt;/strong&gt;&#xD;
    &lt;span&gt;
           :
          &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;
           PowerShell
          &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;br/&gt;&#xD;
    &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;h3&gt;&#xD;
    &lt;span&gt;
           3. Confirm the Change
          &lt;/span&gt;&#xD;
  &lt;/h3&gt;&#xD;
  &lt;ul&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;span&gt;
            PowerShell will ask for confirmation.
           &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             Type
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
      &lt;strong&gt;
            Y
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             (for Yes) and press
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
      &lt;strong&gt;
            Enter
           &lt;/strong&gt;&#xD;
      &lt;span&gt;
            .
           &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
  &lt;/ul&gt;&#xD;
  &lt;h3&gt;&#xD;
    &lt;span&gt;
           Why this is the "Sweet Spot" for Security
          &lt;/span&gt;&#xD;
  &lt;/h3&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;span&gt;
            By setting it to 
           &lt;/span&gt;&#xD;
    &lt;/span&gt;&#xD;
    &lt;code&gt;
           RemoteSigned
          &lt;/code&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;span&gt;
              for the 
           &lt;/span&gt;&#xD;
    &lt;/span&gt;&#xD;
    &lt;code&gt;
           CurrentUser
          &lt;/code&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;span&gt;
            :
           &lt;/span&gt;&#xD;
    &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;ul&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;strong&gt;
            Local scripts:
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             Any script you create on your own computer (like the 
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
      &lt;code&gt;
            .venv
           &lt;/code&gt;&#xD;
      &lt;span&gt;
              activation script) will run freely.
           &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;strong&gt;
            Internet scripts:
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             Any script downloaded from the internet must be "signed" by a trusted publisher to run, which keeps you protected from most malicious files.
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
  &lt;/ul&gt;&#xD;
  &lt;h3&gt;&#xD;
    &lt;span&gt;
           Pro-Tip: Let VS Code Auto-Activate
          &lt;/span&gt;&#xD;
  &lt;/h3&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;
           Now that the permissions are fixed, VS Code can actually do the work for you.
          &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;ol&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             In VS Code, press 
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
      &lt;code&gt;
            Ctrl + Shift + P
           &lt;/code&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             .
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             Type
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
      &lt;strong&gt;
            "Python: Select Interpreter"
           &lt;/strong&gt;&#xD;
      &lt;span&gt;
            .
           &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             Select the one that points to your virtual environment (it should look like
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
      &lt;code&gt;
            .\.venv\Scripts\python.exe
           &lt;/code&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             ).
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             Now,
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
      &lt;strong&gt;
            whenever you open a new terminal
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             in this project folder, VS Code will automatically run the activation script for you! You’ll see 
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
      &lt;code&gt;
            (.venv)
           &lt;/code&gt;&#xD;
      &lt;span&gt;
              pop up without you typing a single word.
           &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
  &lt;/ol&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;br/&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;br/&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;strong&gt;
           Next step:
          &lt;/strong&gt;&#xD;
    &lt;a href="/python-libraries-categorized-by-specific-needs"&gt;
           Install Python libraries for specific needs
          &lt;/a&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;br/&gt;&#xD;
    &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
&lt;/div&gt;</content:encoded>
      <pubDate>Wed, 17 Dec 2025 23:41:37 GMT</pubDate>
      <guid>https://www.pmiscs.com/install-visual-code-and-create-virtual-environment</guid>
      <g-custom:tags type="string" />
    </item>
    <item>
      <title>Install Python and Virtual Environment</title>
      <link>https://www.pmiscs.com/install-python-and-virtual-environment</link>
      <description />
      <content:encoded>&lt;div data-rss-type="text"&gt;&#xD;
  &lt;h3&gt;&#xD;
    &lt;strong&gt;
           Install Python and create virtual environment
          &lt;/strong&gt;&#xD;
  &lt;/h3&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;span&gt;
            Here’s how you can create a
           &lt;/span&gt;&#xD;
    &lt;/span&gt;&#xD;
    &lt;strong&gt;
           Python virtual environment
          &lt;/strong&gt;&#xD;
    &lt;span&gt;
           step by step:
          &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
&lt;/div&gt;&lt;div&gt;&#xD;
  &lt;img src="https://cdn.website-editor.net/md/dmtmpl/dms3rep/multi/blog_post_image.png"/&gt;&#xD;
&lt;/div&gt;&lt;div data-rss-type="text"&gt;&#xD;
  &lt;h3&gt;&#xD;
    &lt;strong&gt;
           Step 1: Download Python
          &lt;/strong&gt;&#xD;
  &lt;/h3&gt;&#xD;
  &lt;ol&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             Go to the official website:
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
      &lt;a href="https://www.python.org/downloads/windows/" target="_blank"&gt;
            Python Downloads
           &lt;/a&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             Download the latest
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
      &lt;strong&gt;
            Python 3.x (64-bit installer)
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             (most common for Windows).
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
  &lt;/ol&gt;&#xD;
  &lt;h3&gt;&#xD;
    &lt;strong&gt;
           Step 2: Install Python (Important Settings)
          &lt;/strong&gt;&#xD;
  &lt;/h3&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;
           When the installer opens:
          &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;strong&gt;
           Check these boxes before clicking "Install":
          &lt;/strong&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;ul&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;strong&gt;
            Add Python to PATH
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             (so you can use 
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
      &lt;code&gt;
            python 
           &lt;/code&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             from Command Prompt).
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             Choose
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
      &lt;strong&gt;
            Customize Installation
           &lt;/strong&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
             if you want, otherwise click
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
      &lt;strong&gt;
            Install Now
           &lt;/strong&gt;&#xD;
      &lt;span&gt;
            .
           &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
  &lt;/ul&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;
           This ensures Windows knows where to find Python.
          &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;h3&gt;&#xD;
    &lt;strong&gt;
           Step 3: Verify Python Installed
          &lt;/strong&gt;&#xD;
  &lt;/h3&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;
           Press Win + R, type 
          &lt;/span&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/span&gt;&#xD;
    &lt;code&gt;
           cmd
          &lt;/code&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/span&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;span&gt;
            (for Command Prompt) or
           &lt;/span&gt;&#xD;
    &lt;/span&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/span&gt;&#xD;
    &lt;code&gt;
           powershell
          &lt;/code&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;span&gt;&#xD;
      &lt;/span&gt;&#xD;
    &lt;/span&gt;&#xD;
    &lt;span&gt;
           , and hit Enter
          &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;span&gt;
            Type: 
           &lt;/span&gt;&#xD;
    &lt;/span&gt;&#xD;
    &lt;code&gt;
           python --version
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;span&gt;
            or: 
           &lt;/span&gt;&#xD;
    &lt;/span&gt;&#xD;
    &lt;code&gt;
           py --version
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;strong&gt;
           Expected:
          &lt;/strong&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           Python 3.12.x
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;h3&gt;&#xD;
    &lt;strong&gt;
           Step 4: Verify pip Installed
          &lt;/strong&gt;&#xD;
  &lt;/h3&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;span&gt;
            Press Win + R, type 
           &lt;/span&gt;&#xD;
    &lt;/span&gt;&#xD;
    &lt;code&gt;
           cmd
          &lt;/code&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;span&gt;
              (for Command Prompt) or 
           &lt;/span&gt;&#xD;
    &lt;/span&gt;&#xD;
    &lt;code&gt;
           powershell
          &lt;/code&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;span&gt;
            , and hit Enter
           &lt;/span&gt;&#xD;
    &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;span&gt;
            Type: 
           &lt;/span&gt;&#xD;
    &lt;/span&gt;&#xD;
    &lt;code&gt;
           pip --version
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;strong&gt;
           Expected:
          &lt;/strong&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           pip 24.x from C:\Users\YourName\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip (python 3.12)
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;br/&gt;&#xD;
    &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;span&gt;
            If pip isn’t found, install it with: 
           &lt;/span&gt;&#xD;
    &lt;/span&gt;&#xD;
    &lt;code&gt;
           python -m ensurepip --upgrade
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;h3&gt;&#xD;
    &lt;strong&gt;
           Step 5: Navigate to Your Project Folder
          &lt;/strong&gt;&#xD;
  &lt;/h3&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;span&gt;
            In the command line, use 
           &lt;/span&gt;&#xD;
    &lt;/span&gt;&#xD;
    &lt;code&gt;
           cd
          &lt;/code&gt;&#xD;
    &lt;span&gt;
             to move into the folder where you want the environment:
          &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;h3&gt;&#xD;
    &lt;code&gt;
           cd path\to\your\project
          &lt;/code&gt;&#xD;
  &lt;/h3&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;
           Example:
          &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;h3&gt;&#xD;
    &lt;code&gt;
           cd C:\Users\YourName\Projects\MyApp
          &lt;/code&gt;&#xD;
  &lt;/h3&gt;&#xD;
  &lt;h3&gt;&#xD;
    &lt;strong&gt;
           Step 6: Create the Virtual Environment
          &lt;/strong&gt;&#xD;
  &lt;/h3&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;
           In the command line type:
          &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;h3&gt;&#xD;
    &lt;code&gt;
           python -m venv myenv
          &lt;/code&gt;&#xD;
  &lt;/h3&gt;&#xD;
  &lt;ul&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;code&gt;
            python
           &lt;/code&gt;&#xD;
      &lt;span&gt;
                      → Calls Python installed on your system.
           &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;code&gt;
            -m venv
           &lt;/code&gt;&#xD;
      &lt;span&gt;&#xD;
        &lt;span&gt;
                      → Uses the built-in         
            &lt;/span&gt;&#xD;
      &lt;/span&gt;&#xD;
      &lt;code&gt;
            venv
           &lt;/code&gt;&#xD;
      &lt;span&gt;
                      module.
           &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
    &lt;li&gt;&#xD;
      &lt;code&gt;
            myenv
           &lt;/code&gt;&#xD;
      &lt;span&gt;
                      → Name of the virtual environment folder (you can choose any name).
           &lt;/span&gt;&#xD;
    &lt;/li&gt;&#xD;
  &lt;/ul&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;&#xD;
      &lt;span&gt;
            This will create a folder called         
           &lt;/span&gt;&#xD;
    &lt;/span&gt;&#xD;
    &lt;code&gt;
           myenv
          &lt;/code&gt;&#xD;
    &lt;span&gt;
                     in your project directory.
          &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;h3&gt;&#xD;
    &lt;strong&gt;
           Step 7: Activate the Virtual Environment
          &lt;/strong&gt;&#xD;
  &lt;/h3&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;
           In the command line type:
          &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;h3&gt;&#xD;
    &lt;code&gt;
           myenv\Scripts\activate
          &lt;/code&gt;&#xD;
  &lt;/h3&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;
           If successful, you’ll see the environment name at the start of your command line, for example:
          &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;h3&gt;&#xD;
    &lt;code&gt;
           (myenv) C:\Users\YourName\Projects\MyApp&amp;gt;
          &lt;/code&gt;&#xD;
  &lt;/h3&gt;&#xD;
  &lt;h3&gt;&#xD;
    &lt;strong&gt;
           Step 8: Install Jupyter Notebook and packages
          &lt;/strong&gt;&#xD;
  &lt;/h3&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;code&gt;
           In the virtual environment:
          &lt;/code&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;
           Type to intall and run Jupyter Notebook:
          &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;h3&gt;&#xD;
    &lt;span&gt;
           pip install jupyter notebook
          &lt;/span&gt;&#xD;
  &lt;/h3&gt;&#xD;
  &lt;h3&gt;&#xD;
    &lt;span&gt;
           jupyter notebook
          &lt;/span&gt;&#xD;
  &lt;/h3&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;br/&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;
           Type to install packages for your application:
          &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;h3&gt;&#xD;
    &lt;code&gt;
           pip install package_name
          &lt;/code&gt;&#xD;
    &lt;span&gt;
                
          &lt;/span&gt;&#xD;
  &lt;/h3&gt;&#xD;
  &lt;h3&gt;&#xD;
    &lt;strong&gt;
           Step 9: Deactivate When Finished
          &lt;/strong&gt;&#xD;
  &lt;/h3&gt;&#xD;
  &lt;p&gt;&#xD;
    &lt;span&gt;
           To exit the virtual environment, just type in the command line:
          &lt;/span&gt;&#xD;
  &lt;/p&gt;&#xD;
  &lt;h3&gt;&#xD;
    &lt;code&gt;
           deactivate
          &lt;/code&gt;&#xD;
  &lt;/h3&gt;&#xD;
&lt;/div&gt;</content:encoded>
      <pubDate>Sun, 24 Aug 2025 20:39:35 GMT</pubDate>
      <guid>https://www.pmiscs.com/install-python-and-virtual-environment</guid>
      <g-custom:tags type="string" />
    </item>
  </channel>
</rss>
