After having tackled some installation difficulties on my Linux Fedora 35 with @avnishn and @sven1977, we decided to put the results here in form of a longer support thread to give users who want to contribute some guidance.
There are some steps that are needed in addition to a simple installation as metioned here and here.
Linux Fedora 35 - Install Ray
Thanks to Avnish and Sven!
Preparations
Install (upgrade) the core-plugins:
sudo dnf install dnf-plugins-core -y
Install (upgrade) the dependencies:
sudo dnf install gcc openssl-devel bzip2-devel libffi-devel zlib-devel wget make -y
Create a virtual environment
python -m venv .venv
Activate it:
source ./venv/bin/activate
And upgrade pip
:
python -m pip install --upgrade pip
Fork and clone the ray repo
Follow the documentation on GitHub. Then navigate into the cloned repo.
Ray installation
Install the last release:
python -m pip install -U --no-cache-dir ray
Remove the bazel directory from the repo
rm -rf bazel
Setup development links
Execute
python python/ray/setup-dev.py
IMPORTANT: And after saying yes to
rllib
exit byCTRL+C
.
Requirements
Here it becomes usually tricky and the way I found is to use the latest wheel for the following four packages:
scikit-learn
tensorflow
llvm-lite
scipy
Use vim
to directly erase the version specifications. Then install the requirements:
python -m pip install -U --no-cache-dir python/requirements.txt
python -m pip install -U --no-cache-dir python/requirements_linters.txt
Testing installation
Run the linting by calling
./ci/travis/format.sh
Bring repo up-to-date
First repair the python/requirements.txt
:
git checkout master -- python/requirements.txt
Then pull the newest changes:
git pull upstream master
NOTE: This
git
command should suffice when adding the newest changes to your local repo. There can be some differences that have to be taken care of (when you changed a file and some other contributor did). The usuallygit fetch upstream; git pull --rebase upstream master; git pull
can and should be neglected here.
How to get support?
Reply in this thread, if you have installation problem