Environment
Configuring environment
These instructions assume your computer is brand new and has no Python or other development tools installed. Feel free to skip any steps that you have already completed.
Using Anaconda
Install Anaconda Navigator:
Go to the Anaconda download page.
Download the version of Anaconda Navigator that corresponds to your operating system.
Follow the installation instructions for your operating system.
Install Git:
Go to the Git download page.
Download the version of Git that corresponds to your operating system.
Follow the installation instructions for your operating system.
Clone the GitHub repository:
Open a terminal or command prompt.
Navigate to the directory where you want to clone the repository.
Run the following command:
git clone https://github.com/nathanramoscfa/etradebot.git
Create an environment using an environment.yml file:
Navigate to the cloned repository directory.
Run the following command to create the environment:
conda env create -f environment.yml
This will create an environment with the name specified in the
environment.ymlfile.
Activate the environment:
Run the following command to activate the environment:
conda activate etradebot
Verify the environment:
Run the following command to verify that the environment was created successfully:
conda env list
This will list all of the environments that are currently available.
The environment you created should be listed.
Using venv
Install Git:
Go to the Git download page.
Download the version of Git that corresponds to your operating system.
Follow the installation instructions for your operating system.
Clone the GitHub repository:
Open a terminal or command prompt.
Navigate to the directory where you want to clone the repository.
Run the following command:
git clone https://github.com/nathanramoscfa/etradebot.git
Create a virtual environment:
Navigate to the cloned repository directory.
Run the following command to create a new virtual environment:
python3 -m venv etradebot
This will create a new virtual environment named
envin the current directory.
Activate the virtual environment:
Run the following command to activate the virtual environment:
source etradebot/bin/activate
Install dependencies:
With the virtual environment activated, run the following command to install the dependencies from the
requirements.txtfile:
pip install -r requirements.txt
This will install all the required packages listed in the
requirements.txtfile.
Verify the installation:
Run the following command to verify that the packages were installed correctly:
pip listThis will list all the installed packages.