Closed amrirasyidi closed 4 months ago
The error message indicates that the installation of the detectree2
package failed due to an issue building the detectron2
package, which is a dependency. The specific problem is related to the absence of the g++
compiler, which is required to build the detectron2
package.
The error message Command '['which', 'g++']' returned non-zero exit status 1
suggests that g++
is not installed or not available in the system's PATH.
To resolve this issue, you need to install the g++
compiler. Here are the steps to do this:
g++
:
sudo apt-get update
sudo apt-get install g++
g++
:
sudo yum install gcc-c++
xcode-select --install
g++
:Try running the pip install command again:
pip install git+https://github.com/PatBall1/detectree2.git
If the error persists, you may need to install additional dependencies for detectron2
or check for specific installation instructions provided in the detectron2
repository. Here is the general process to follow for installing detectron2
:
Install the required dependencies:
pip install cython
pip install -U setuptools
Clone the detectron2
repository and install it manually:
git clone https://github.com/facebookresearch/detectron2.git
cd detectron2
python -m pip install -e .
After successfully installing detectron2
, you can proceed with installing detectree2
again.
Works like a charm, thanks!
Hi, I tried to follow the installation instruction in #145, but I failed on the last
pip install
Is there any workaround for this? Thanks