Starter files to initialize the smart sales project.
Since we use external packages, follow these steps carefully:
- Pull any recent changes from GitHub.
- Create a virtual environment.
- Activate the
.venv
. - Install base tools.
- Install external packages from
requirements.txt
. - Run
scripts/data_prep.py
.
- Your raw data files must be in the
data/raw
directory. See Module 1 for more. - See pro-analytics-01 for detailed instructions on professional Python projects workflow.
- For a complete setup guide, visit pro-analytics-01.
- See
requirements.txt
for a concise version of the professional setup workflow.
- Run all commands from a terminal in the root project folder.
- Run each command one at a time and wait for it to finish before continuing.
Open your smart sales repository in VS Code. Run all commands from a terminal in the root project folder.
git pull
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install --upgrade pip setuptools wheel
python3 -m pip install --upgrade -r requirements.txt --timeout 100
python3 scripts/data_prep.py
Open your smart sales repository in VS Code. Run all commands from a PowerShell terminal in the root project folder.
git pull
py -m venv .venv
.venv\Scripts\activate
py -m pip install --upgrade pip setuptools wheel
py -m pip install --upgrade -r requirements.txt --timeout 100
py scripts/data_prep.py
Once you’ve verified the script ran successfully, git add, commit, and push changes to your GitHub repository.
git add .
git commit -m "ran initial data_prep.py"
git push -u origin main
For best results, git add-commit-push frequently after making any useful progress.