Updated Windows installation doc, refined logging
This commit is contained in:
@@ -5,6 +5,20 @@ We **strongly** recommend that Windows users use [Docker](docker_quickstart.md)
|
|||||||
If that is not possible, try using the Windows Linux subsystem (WSL) - for which the Ubuntu instructions should work.
|
If that is not possible, try using the Windows Linux subsystem (WSL) - for which the Ubuntu instructions should work.
|
||||||
Otherwise, please follow the instructions below.
|
Otherwise, please follow the instructions below.
|
||||||
|
|
||||||
|
## Install freqtrade automatically
|
||||||
|
|
||||||
|
### Using Invoke-WebRequest
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/freqtrade/freqtrade/stable/setup.ps1" -UseBasicParsing | Invoke-Expression
|
||||||
|
```
|
||||||
|
|
||||||
|
### Or using curl
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
curl -sSL "https://raw.githubusercontent.com/freqtrade/freqtrade/stable/setup.ps1" | powershell -c -
|
||||||
|
```
|
||||||
|
|
||||||
## Install freqtrade manually
|
## Install freqtrade manually
|
||||||
|
|
||||||
!!! Note "64bit Python version"
|
!!! Note "64bit Python version"
|
||||||
|
|||||||
@@ -119,12 +119,12 @@ function Test-PythonExecutable {
|
|||||||
|
|
||||||
$DeactivateVenv = Join-Path $VenvDir "Scripts\Deactivate.bat"
|
$DeactivateVenv = Join-Path $VenvDir "Scripts\Deactivate.bat"
|
||||||
if (Test-Path $DeactivateVenv) {
|
if (Test-Path $DeactivateVenv) {
|
||||||
Write-Host "Deactivating virtual environment..."
|
Write-Host "Deactivating virtual environment..." 2>&1 | Out-File $LogFilePath -Append
|
||||||
& $DeactivateVenv
|
& $DeactivateVenv
|
||||||
Write-Host "Virtual environment deactivated."
|
Write-Host "Virtual environment deactivated." 2>&1 | Out-File $LogFilePath -Append
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Write-Host "Deactivation script not found: $DeactivateVenv"
|
Write-Host "Deactivation script not found: $DeactivateVenv" 2>&1 | Out-File $LogFilePath -Append
|
||||||
}
|
}
|
||||||
|
|
||||||
$PythonCmd = Get-Command $PythonExecutable -ErrorAction SilentlyContinue
|
$PythonCmd = Get-Command $PythonExecutable -ErrorAction SilentlyContinue
|
||||||
@@ -165,7 +165,7 @@ function Main {
|
|||||||
# Exit on lower versions than Python 3.9 or when Python executable not found
|
# Exit on lower versions than Python 3.9 or when Python executable not found
|
||||||
$PythonExecutable = Find-PythonExecutable
|
$PythonExecutable = Find-PythonExecutable
|
||||||
if ($null -eq $PythonExecutable) {
|
if ($null -eq $PythonExecutable) {
|
||||||
Write-Host "Error: No suitable Python executable found. Please ensure that Python 3.9 or higher is installed and available in the system PATH."
|
Write-Log "No suitable Python executable found. Please ensure that Python 3.9 or higher is installed and available in the system PATH." -Level 'ERROR'
|
||||||
Exit 1
|
Exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -190,7 +190,7 @@ function Main {
|
|||||||
& $ActivateVenv 2>&1 | Out-File $LogFilePath -Append
|
& $ActivateVenv 2>&1 | Out-File $LogFilePath -Append
|
||||||
# Check if virtual environment is activated
|
# Check if virtual environment is activated
|
||||||
if ($env:VIRTUAL_ENV) {
|
if ($env:VIRTUAL_ENV) {
|
||||||
Write-Host "Virtual environment is activated at: $($env:VIRTUAL_ENV)"
|
Write-Log "Virtual environment is activated at: $($env:VIRTUAL_ENV)"
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Write-Log "Failed to activate virtual environment." -Level 'ERROR'
|
Write-Log "Failed to activate virtual environment." -Level 'ERROR'
|
||||||
|
|||||||
Reference in New Issue
Block a user