8000 GitHub - Tony1106/data-analysis
[go: up one dir, main page]

Skip to content

Tony1106/data-analysis

Repository files navigation

Data Analysis Project Setup Guide

This guide will help you set up and run the project on both Windows and Mac. It includes steps for complete beginners who may not have Git or Python installed.


1. Prerequisites

For Beginners (First-Time Setup)

Install Git

  • Windows:
    1. Download from git-scm.com and run the installer.
    2. Follow the default options.
  • Mac:
    1. Open Terminal and run: xcode-select --install (or install from git-scm.com)

Install Python 3.11+

  • Windows:
    1. Download from python.org.
    2. Run the installer. Check the box that says "Add Python to PATH".
  • Mac:
    1. Open Terminal and run: brew install python (if you have Homebrew), or download from python.org.

Install pip (Python package manager)

  • Usually comes with Python. To check, run: pip --version

(Optional but recommended) Install a code editor


2. Clone the Project

Open Terminal (Mac) or Command Prompt (Windows) and run:

git clone <your-repo-url>
cd data-analysis

3. Set Up a Virtual Environment

Windows

python -m venv .venv
.venv\Scripts\activate

Mac

python3 -m venv .venv
source .venv/bin/activate

4. Install Dependencies

With the virtual environment activated, run:

pip install -r requirements.txt

5. Run the Project

The entry file is main.py. To start the project, run:

Windows

uv run main.py

Mac

uv run main.py

If you do not have uv installed, install it with:

pip install uv

6. Open the App

After running the command above, the app will start. Open your browser and go to the address shown in the terminal (usually http://127.0.0.1:8050).


7. Common Issues

  • If you get a ModuleNotFoundError, make sure you activated your virtual environment and installed all dependencies.
  • If you have permission errors, try running your terminal as administrator (Windows) or use sudo (Mac, only if needed).

8. Useful Commands

  • Deactivate virtual environment: deactivate
  • Update dependencies: pip install --upgrade -r requirements.txt
  • Check Python version: python --version or python3 --version

9. Resources


If you have any issues, please ask your team for help!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0