Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suffering problem when installing dependence using pip install -e . on google colab #36

Open
MichaelPei2003 opened this issue Jun 6, 2023 · 2 comments

Comments

@MichaelPei2003
Copy link

its a problem with flash-attn and got this error

Installing build dependencies ... done
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
Getting requirements to build wheel ... error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

i tried reinstalling wheel and nothing changed.

@AI-Expert-04
Copy link

The error message you encountered suggests that there was an issue with building the wheel for the flash-attn package during installation. This error is often related to missing build dependencies or incompatible package versions.

To resolve this issue, you can try the following steps:

  1. Make sure you have the latest version of pip installed. You can upgrade pip by running the following command:
!pip install --upgrade pip
  1. Check if the necessary build dependencies are installed. Some packages require additional system libraries to be installed. In this case, ensure that the required build dependencies are present. You may need to install the necessary system libraries using the package manager for your operating system. For example, on Ubuntu, you can use the following command to install the build dependencies:
!apt-get install build-essential

3.Try installing the package again, but this time use the --no-cache-dir flag to prevent using any cached files that might be causing conflicts. Run the following command:

!pip install --no-cache-dir -e .

4.If the above steps do not resolve the issue, you can try installing the package without the -e flag. Instead of using the editable mode, install it as a regular package. Run the following command:

!pip install flash-attn

If you continue to experience difficulties, please provide more details about your Python version, the version of the flash-attn package you are trying to install, and any other relevant information.

@Annieliaquat
Copy link

I am too facing this issue while installing object detection API. It was working fine three days ago. I was installing the libraries to continue my work, but now suddenly the error popped out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants