From 7bcae7b6659ee7714eb04fbf30bb7f7d85c1356b Mon Sep 17 00:00:00 2001 From: ASU Date: Sat, 25 Feb 2023 00:26:20 +0200 Subject: [PATCH 1/2] removed redundant dependencies from environment.yml --- environment.yml | 76 ++++--------------------------------------------- 1 file changed, 6 insertions(+), 70 deletions(-) diff --git a/environment.yml b/environment.yml index 5b039e7f7..5193947cf 100644 --- a/environment.yml +++ b/environment.yml @@ -3,73 +3,9 @@ channels: - conda-forge # - defaults dependencies: -# 1/4 req main - - python>=3.8,<=3.10 - - numpy - - pandas - - pip - - - py-find-1st - - aiohttp - - SQLAlchemy - - python-telegram-bot<20.0.0 - - arrow - - cachetools - - requests - - urllib3 - - jsonschema - - TA-Lib - - tabulate - - jinja2 - - blosc - - sdnotify - - fastapi - - uvicorn - - pyjwt - - aiofiles - - psutil - - colorama - - questionary - - prompt-toolkit - - schedule - - python-dateutil - - joblib - - pyarrow - - - # ============================ - # 2/4 req dev - - - coveralls - - flake8 - - mypy - - pytest - - pytest-asyncio - - pytest-cov - - pytest-mock - - isort - - nbconvert - - # ============================ - # 3/4 req hyperopt - - - scipy - - scikit-learn - - filelock - - scikit-optimize - - progressbar2 - # ============================ - # 4/4 req plot - - - plotly - - jupyter - - - pip: - - pycoingecko - # - py_find_1st - - tables - - pytest-random-order - - ccxt - - flake8-tidy-imports - - -e . - # - python-rapidjso + - python>=3.8,<=3.10 + - pip + - libta-lib=0.4.0 # this is required for ta-lib from requirements.txt + - pip: + - -r requirements.txt + - -e . From 32ce819889c776192e12c975a4e3c507ab572843 Mon Sep 17 00:00:00 2001 From: ASU Date: Sat, 25 Feb 2023 18:23:07 +0200 Subject: [PATCH 2/2] Removed environment.yml and updated documentation --- docs/installation.md | 18 +++++++----------- environment.yml | 11 ----------- 2 files changed, 7 insertions(+), 22 deletions(-) delete mode 100644 environment.yml diff --git a/docs/installation.md b/docs/installation.md index 1c0aed7ba..6e8488b9f 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -290,10 +290,8 @@ cd freqtrade #### Freqtrade install: Conda Environment -Prepare conda-freqtrade environment, using file `environment.yml`, which exist in main freqtrade directory - ```bash -conda env create -n freqtrade-conda -f environment.yml +conda create --name freqtrade python=3.10 ``` !!! Note "Creating Conda Environment" @@ -302,12 +300,9 @@ conda env create -n freqtrade-conda -f environment.yml ```bash # choose your own packages conda env create -n [name of the environment] [python version] [packages] - - # point to file with packages - conda env create -n [name of the environment] -f [file] ``` -#### Enter/exit freqtrade-conda environment +#### Enter/exit freqtrade environment To check available environments, type @@ -319,7 +314,7 @@ Enter installed environment ```bash # enter conda environment -conda activate freqtrade-conda +conda activate freqtrade # exit conda environment - don't do it now conda deactivate @@ -329,6 +324,7 @@ Install last python dependencies with pip ```bash python3 -m pip install --upgrade pip +python3 -m pip install -r requirements.txt python3 -m pip install -e . ``` @@ -336,7 +332,7 @@ Patch conda libta-lib (Linux only) ```bash # Ensure that the environment is active! -conda activate freqtrade-conda +conda activate freqtrade cd build_helpers bash install_ta-lib.sh ${CONDA_PREFIX} nosudo @@ -355,8 +351,8 @@ conda env list # activate base environment conda activate -# activate freqtrade-conda environment -conda activate freqtrade-conda +# activate freqtrade environment +conda activate freqtrade #deactivate any conda environments conda deactivate diff --git a/environment.yml b/environment.yml deleted file mode 100644 index 5193947cf..000000000 --- a/environment.yml +++ /dev/null @@ -1,11 +0,0 @@ -name: freqtrade -channels: - - conda-forge -# - defaults -dependencies: - - python>=3.8,<=3.10 - - pip - - libta-lib=0.4.0 # this is required for ta-lib from requirements.txt - - pip: - - -r requirements.txt - - -e .