Repository navigation
Expand file tree
/
Copy pathwindows_setup.txt
More file actions
111 lines (91 loc) · 2.39 KB
/
Copy pathwindows_setup.txt
File metadata and controls
111 lines (91 loc) · 2.39 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
@echo off
title Professional Cryptocurrency Wallet Setup
color 0A
echo.
echo ================================================
echo Professional Cryptocurrency Wallet Setup
echo ================================================
echo.
REM Check if Python is installed
python --version >nul 2>&1
if errorlevel 1 (
echo ❌ Python is not installed or not in PATH
echo.
echo Please install Python 3.8+ from https://python.org
echo Make sure to check "Add Python to PATH" during installation
echo.
pause
exit /b 1
)
echo ✅ Python found
python --version
echo.
echo 📦 Installing dependencies...
echo.
REM Install required packages
pip install web3==6.15.1
if errorlevel 1 goto :error
pip install eth-account==0.10.0
if errorlevel 1 goto :error
pip install eth-utils==2.3.1
if errorlevel 1 goto :error
pip install cryptography==41.0.7
if errorlevel 1 goto :error
pip install ecdsa==0.18.0
if errorlevel 1 goto :error
pip install mnemonic==0.21
if errorlevel 1 goto :error
pip install requests==2.31.0
if errorlevel 1 goto :error
pip install qrcode[pil]==7.4.2
if errorlevel 1 goto :error
pip install Pillow==10.1.0
if errorlevel 1 goto :error
echo.
echo ✅ All dependencies installed successfully!
echo.
REM Test import
echo 🔍 Testing installation...
python -c "import tkinter, web3, eth_account, cryptography, ecdsa, mnemonic, requests, qrcode, PIL; print('✅ All modules imported successfully')"
if errorlevel 1 goto :import_error
echo.
echo 🎉 Setup completed successfully!
echo.
echo You can now run the wallet with:
echo python crypto_wallet.py
echo.
set /p launch="Would you like to launch the wallet now? (y/n): "
if /i "%launch%"=="y" (
echo.
echo 🚀 Launching Crypto Wallet...
start python crypto_wallet.py
echo ✅ Wallet launched!
) else if /i "%launch%"=="yes" (
echo.
echo 🚀 Launching Crypto Wallet...
start python crypto_wallet.py
echo ✅ Wallet launched!
)
echo.
pause
exit /b 0
:error
echo.
echo ❌ Failed to install dependencies!
echo.
echo Please check your internet connection and try again.
echo If the problem persists, try running:
echo pip install --upgrade pip
echo pip install -r requirements.txt
echo.
pause
exit /b 1
:import_error
echo.
echo ❌ Some modules failed to import!
echo.
echo This might be due to missing system dependencies.
echo Please check the README.md for troubleshooting steps.
echo.
pause
exit /b 1