3. Installation¶
3.1. Installation into Environment¶
To install the Capital Analyzer, first download the entire source.
In the example, the directory will be saved in D:\capital_analyzer.
You must adjust the commands to your respective download location.
Open an Anaconda Prompt (Start –> Anaconda 3 –> Anaconda Prompt) and load the desired environment:
conda activate env_name
Replace env_name with the name of the desired environment. Before
running the installation command, change to the capital_analyzer directory:
D:
cd capital_analyzer
Now, enter the following command:
python setup.py install
This will install the capital analyzer. It can now be imported in the following way:
from capital_analyzer.analyze_trades import run_analyze
# ...
3.2. Usage without Installation¶
You can also use the Capital Analyzer without installtion. For this, add the following lines to your Python script (before importing modules from the Capital Analyzer).
import site
site.addsitedir('D:\capital_analyzer\python')
from capital_analyzer.analyze_trades import run_analyze
# ...
Adjust the path to the python directory in the site.addssitedir()
command.