-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
58 lines (50 loc) · 1.46 KB
/
setup.sh
File metadata and controls
58 lines (50 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/bash
# QR Code Maker - Setup Script
# Automatically installs dependencies
echo "========================================="
echo "QR Code Maker - Setup"
echo "========================================="
echo ""
# Check if Python is installed
if ! command -v python3 &> /dev/null; then
echo "❌ Python 3 is not installed!"
echo "Please install Python 3.8 or higher from https://www.python.org/downloads/"
exit 1
fi
echo "✅ Python found: $(python3 --version)"
echo ""
# Check if pip is installed
if ! command -v pip3 &> /dev/null; then
echo "❌ pip is not installed!"
echo "Please install pip before continuing"
exit 1
fi
echo "✅ pip found: $(pip3 --version)"
echo ""
# Install dependencies
echo "📦 Installing dependencies..."
echo "This may take a minute..."
echo ""
pip3 install qrcode[pil] --break-system-packages
if [ $? -eq 0 ]; then
echo ""
echo "✅ Installation successful!"
echo ""
echo "========================================="
echo "Next Steps:"
echo "========================================="
echo ""
echo "1. To run the GUI:"
echo " python3 qr_code_maker.py"
echo ""
echo "2. To generate from command line:"
echo " python3 qr_code_maker.py --text 'Hello World' --output my_qr.png"
echo ""
echo "========================================="
else
echo ""
echo "❌ Installation failed!"
echo "Please try manually:"
echo " pip install qrcode[pil]"
exit 1
fi