跳到主要内容

Windows Installation

We strongly recommend that Windows users use Docker as this will work much easier and smoother (also more secure).

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.

All instructions assume that Python 3.11+ is installed and available.

Clone the Git Repository

First of all clone the repository by running:

git clone https://github.com/freqtrade/freqtrade.git

Now, choose your installation method, either automatically via script (recommended) or manually following the corresponding instructions.

Install Freqtrade Automatically

Run the Installation Script

The script will ask you a few questions to determine which parts should be installed.

Set-ExecutionPolicy -ExecutionPolicy Bypass
cd freqtrade
. .\setup.ps1

Install Freqtrade Manually

64-bit Python Version

Please make sure to use 64-bit Windows and 64-bit Python to avoid problems with backtesting or hyperopt due to the memory constraints 32-bit applications have under Windows.

32-bit python versions are no longer supported under Windows.

Anaconda Distribution

Using the Anaconda Distribution under Windows can greatly help with installation problems. Check out the Anaconda installation section in the documentation for more information.

Install TA-Lib

Install TA-Lib according to the TA-Lib documentation.

As compiling from source on Windows has heavy dependencies (requires a partial Visual Studio installation), Freqtrade provides these dependencies (in the binary wheel format) for the latest 3 Python versions (3.11, 3.12 and 3.13) and for 64-bit Windows.

These wheels are also used by CI running on Windows, and are therefore tested together with Freqtrade.

Other versions must be downloaded from the above link.

cd \path\freqtrade
python -m venv .venv
.venv\Scripts\activate.ps1
# optionally install ta-lib from wheel
# Eventually adjust the below filename to match the downloaded wheel
pip install --find-links build_helpers\ TA-Lib -U
pip install -r requirements.txt
pip install -e .
freqtrade
Use PowerShell

The above installation script assumes you're using PowerShell on a 64-bit Windows. Commands for the legacy CMD Windows console may differ.

Error During Installation on Windows

error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools

Unfortunately, many packages requiring compilation don't provide a pre-built wheel. It is therefore mandatory to have a C/C++ compiler installed and available for your Python environment to use.

You can download the Visual C++ build tools from here and install "Desktop development with C++" in its default configuration. Unfortunately, this is a heavy download/dependency so you might want to consider WSL2 or Docker Compose first.

Windows installation

Next Steps

After successful installation:

  1. Configuration - Set up your bot configuration
  2. Docker Quickstart - Alternative Docker setup
  3. Bot Basics - Learn the fundamentals
  4. Strategy Development - Create your first strategy

Troubleshooting

Common Windows Issues

PowerShell Execution Policy:

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

Path Issues:

  • Ensure Python is in your PATH
  • Use full paths if commands are not found
  • Restart PowerShell after installation

Permission Errors:

  • Run PowerShell as Administrator if needed
  • Check antivirus software interference
  • Ensure write permissions in installation directory

Getting Help