I'm trying to install gfootball on a server. Im getting error while running this command.
python3 -m pip install gfootball
The commands I'd run before this.
sudo apt-get install git cmake build-essential libgl1-mesa-dev libsdl2-dev \
libsdl2-image-dev libsdl2-ttf-dev libsdl2-gfx-dev libboost-all-dev \
libdirectfb-dev libst-dev mesa-utils xvfb x11vnc python3-pip
python3 -m pip install --upgrade pip setuptools psutil wheel
Error -
ll_engine/vcpkg_manifests/py3.6
creating build/lib.linux-x86_64-cpython-313/gfootball_engine/vcpkg_manifests/py3.7
copying third_party/gfootball_engine/vcpkg_manifests/py3.7/vcpkg.json -> build/lib.linux-x86_64-cpython-313/gfootball_engine/vcpkg_manifests/py3.7
creating build/lib.linux-x86_64-cpython-313/gfootball_engine/vcpkg_manifests/py3.8
copying third_party/gfootball_engine/vcpkg_manifests/py3.8/vcpkg.json -> build/lib.linux-x86_64-cpython-313/gfootball_engine/vcpkg_manifests/py3.8
creating build/lib.linux-x86_64-cpython-313/gfootball_engine/vcpkg_manifests/py3.9
copying third_party/gfootball_engine/vcpkg_manifests/py3.9/vcpkg.json -> build/lib.linux-x86_64-cpython-313/gfootball_engine/vcpkg_manifests/py3.9
running build_ext
Traceback (most recent call last):
File "<string>", line 1, in <module>
import psutil; import multiprocessing as mp; print(int(max(1,min((psutil.virtual_memory().available/1000000000-1)/0.5, mp.cpu_count()))))
^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'psutil'
error: Google Research Football compilation failed
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for gfootball
Failed to build gfootball
error: failed-wheel-build-for-install
× Failed to build installable wheels for some pyproject.toml based projects
╰─> gfootball
I'm trying to install gfootball on a server. Im getting error while running this command.
python3 -m pip install gfootballThe commands I'd run before this.
Error -