02. Installation - VitalyRomanov/method-embedding GitHub Wiki
Instaling Python Libraries
You need to use conda, create virtual environment SourceCodeTools
with python 3.8
conda create -n SourceCodeTools python=3.8
If you plan to use graphviz
conda install -c conda-forge pygraphviz graphviz
Install CUDA 11.1 if needed
conda install -c nvidia cudatoolkit=11.1
To install SourceCodeTools library run
git clone https://github.com/VitalyRomanov/method-embedding.git
cd method-embedding
pip install -e .
# pip install -e .[gpu]
Install Sourcetrail
You will need to process data using Sourcetrail. You can either use preconfigured docker image, or you will need to have Sourcetrail in your system. Indexing with Sourcetrail work only on Linux. Download a release from Github repo (latest tested version is 2020.1.117). Add Sourcetrail location to PATH
echo 'export PATH=/path/to/Sourcetrail_2020_1_117:$PATH' >> ~/.bashrc