mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 00:23:07 +00:00
Update docs about suing .venv instead of .env
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
This page explains the different parameters of the bot and how to run it.
|
This page explains the different parameters of the bot and how to run it.
|
||||||
|
|
||||||
!!! Note
|
!!! Note
|
||||||
If you've used `setup.sh`, don't forget to activate your virtual environment (`source .env/bin/activate`) before running freqtrade commands.
|
If you've used `setup.sh`, don't forget to activate your virtual environment (`source .venv/bin/activate`) before running freqtrade commands.
|
||||||
|
|
||||||
!!! Warning "Up-to-date clock"
|
!!! Warning "Up-to-date clock"
|
||||||
The clock on the system running the bot must be accurate, synchronized to a NTP server frequently enough to avoid problems with communication to the exchanges.
|
The clock on the system running the bot must be accurate, synchronized to a NTP server frequently enough to avoid problems with communication to the exchanges.
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ For this to work, first activate your virtual environment and run the following
|
|||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
# Activate virtual environment
|
# Activate virtual environment
|
||||||
source .env/bin/activate
|
source .venv/bin/activate
|
||||||
|
|
||||||
pip install ipykernel
|
pip install ipykernel
|
||||||
ipython kernel install --user --name=freqtrade
|
ipython kernel install --user --name=freqtrade
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ Running the bot with `freqtrade trade --config config.json` shows the output `fr
|
|||||||
This could be caused by the following reasons:
|
This could be caused by the following reasons:
|
||||||
|
|
||||||
* The virtual environment is not active.
|
* The virtual environment is not active.
|
||||||
* Run `source .env/bin/activate` to activate the virtual environment.
|
* Run `source .venv/bin/activate` to activate the virtual environment.
|
||||||
* The installation did not complete successfully.
|
* The installation did not complete successfully.
|
||||||
* Please check the [Installation documentation](installation.md).
|
* Please check the [Installation documentation](installation.md).
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ The docker-image includes hyperopt dependencies, no further action needed.
|
|||||||
### Easy installation script (setup.sh) / Manual installation
|
### Easy installation script (setup.sh) / Manual installation
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
source .env/bin/activate
|
source .venv/bin/activate
|
||||||
pip install -r requirements-hyperopt.txt
|
pip install -r requirements-hyperopt.txt
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -143,11 +143,11 @@ If you are on Debian, Ubuntu or MacOS, freqtrade provides the script to install
|
|||||||
|
|
||||||
### Activate your virtual environment
|
### Activate your virtual environment
|
||||||
|
|
||||||
Each time you open a new terminal, you must run `source .env/bin/activate` to activate your virtual environment.
|
Each time you open a new terminal, you must run `source .venv/bin/activate` to activate your virtual environment.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# then activate your .env
|
# activate virtual environment
|
||||||
source ./.env/bin/activate
|
source ./.venv/bin/activate
|
||||||
```
|
```
|
||||||
|
|
||||||
### Congratulations
|
### Congratulations
|
||||||
@@ -172,7 +172,7 @@ With this option, the script will install the bot and most dependencies:
|
|||||||
You will need to have git and python3.8+ installed beforehand for this to work.
|
You will need to have git and python3.8+ installed beforehand for this to work.
|
||||||
|
|
||||||
* Mandatory software as: `ta-lib`
|
* Mandatory software as: `ta-lib`
|
||||||
* Setup your virtualenv under `.env/`
|
* Setup your virtualenv under `.venv/`
|
||||||
|
|
||||||
This option is a combination of installation tasks and `--reset`
|
This option is a combination of installation tasks and `--reset`
|
||||||
|
|
||||||
@@ -225,11 +225,11 @@ rm -rf ./ta-lib*
|
|||||||
You will run freqtrade in separated `virtual environment`
|
You will run freqtrade in separated `virtual environment`
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# create virtualenv in directory /freqtrade/.env
|
# create virtualenv in directory /freqtrade/.venv
|
||||||
python3 -m venv .env
|
python3 -m venv .venv
|
||||||
|
|
||||||
# run virtualenv
|
# run virtualenv
|
||||||
source .env/bin/activate
|
source .venv/bin/activate
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Install python dependencies
|
#### Install python dependencies
|
||||||
@@ -411,8 +411,8 @@ If you used (1)`Script` or (2)`Manual` installation, you need to run the bot in
|
|||||||
# if:
|
# if:
|
||||||
bash: freqtrade: command not found
|
bash: freqtrade: command not found
|
||||||
|
|
||||||
# then activate your .env
|
# then activate your virtual environment
|
||||||
source ./.env/bin/activate
|
source ./.venv/bin/activate
|
||||||
```
|
```
|
||||||
|
|
||||||
### MacOS installation error
|
### MacOS installation error
|
||||||
|
|||||||
@@ -31,8 +31,8 @@ Other versions must be downloaded from the above link.
|
|||||||
|
|
||||||
``` powershell
|
``` powershell
|
||||||
cd \path\freqtrade
|
cd \path\freqtrade
|
||||||
python -m venv .env
|
python -m venv .venv
|
||||||
.env\Scripts\activate.ps1
|
.venv\Scripts\activate.ps1
|
||||||
# optionally install ta-lib from wheel
|
# optionally install ta-lib from wheel
|
||||||
# Eventually adjust the below filename to match the downloaded wheel
|
# Eventually adjust the below filename to match the downloaded wheel
|
||||||
pip install --find-links build_helpers\ TA-Lib -U
|
pip install --find-links build_helpers\ TA-Lib -U
|
||||||
|
|||||||
Reference in New Issue
Block a user