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

pip install -U inverse_optical_flow failed #1

Open
AlexCHENSiyu opened this issue Mar 22, 2024 · 3 comments
Open

pip install -U inverse_optical_flow failed #1

AlexCHENSiyu opened this issue Mar 22, 2024 · 3 comments

Comments

@AlexCHENSiyu
Copy link

Error as follows:

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for inverse_optical_flow
Failed to build inverse_optical_flow
ERROR: Could not build wheels for inverse_optical_flow, which is required to install pyproject.toml-based projects

@ivanstepanovftw
Copy link
Owner

Tried to reproduce in Google Colab without success:

Collecting inverse_optical_flow
  Downloading inverse_optical_flow-0.0.2.tar.gz (10 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy in /usr/local/lib/python3.10/dist-packages (from inverse_optical_flow) (1.25.2)
Building wheels for collected packages: inverse_optical_flow
  Building wheel for inverse_optical_flow (pyproject.toml) ... done
  Created wheel for inverse_optical_flow: filename=inverse_optical_flow-0.0.2-cp310-cp310-linux_x86_64.whl size=75191 sha256=02c6b5c960b969f86b9e90a7f0925e3d40c5b857f79f29c76181cd24250e9be4
  Stored in directory: /root/.cache/pip/wheels/d2/5f/6d/88533d6199b988cbef6587da9efcd221ada52c7434568350d3
Successfully built inverse_optical_flow
Installing collected packages: inverse_optical_flow
Successfully installed inverse_optical_flow-0.0.2
Python 3.10.12
pip 23.1.2 from /usr/local/lib/python3.10/dist-packages/pip (python 3.10)

@ivanstepanovftw
Copy link
Owner

To effectively address the issue you're encountering with the installation of inverse_optical_flow, it's crucial to have more specific details about the error messages that appear before the ones you've provided. These earlier error messages can often give clear indications of what exactly is going wrong during the installation process. Without this information, it's challenging to pinpoint the underlying cause of your problem. However, a common requirement for installing packages like inverse_optical_flow is the presence of a C++ compiler in your system, as these packages typically include components that need to be compiled from C++ source code.

For Ubuntu/Linux Users

If you're using Ubuntu or another Linux distribution, you might not have the C++ compiler installed. You can install the essential build tools, including the C++ compiler, by executing the following command in your terminal:

sudo apt-get update
sudo apt-get install build-essential

This command installs not only the C++ compiler but also other essential tools and libraries required for compiling software.

For Windows Users

If you're on Windows, one of the best ways to get access to a Unix-like environment (which can simplify the process of installing packages like inverse_optical_flow) is through the Windows Subsystem for Linux 2 (WSL2). WSL2 allows you to run a Linux distribution alongside your Windows installation, providing you with the capability to use Linux commands and install Linux software directly on Windows.

To install WSL2, you'll first need to enable it on Windows and then install a Linux distribution of your choice from the Microsoft Store (Ubuntu is a popular choice). Microsoft provides a guide on setting up WSL2, which you can find by searching for "Install WSL2" on the Microsoft website.

Once WSL2 is set up, you can open your Linux distribution via the Start menu and then install the C++ compiler and build essentials by using the same commands provided for Ubuntu/Linux users.

For macOS Users

On macOS, the C++ compiler is part of the Xcode Command Line Tools. To install these tools, open the Terminal and execute the following command:

xcode-select --install

A prompt will appear asking if you want to install the tools. Confirm the installation, and once it's complete, you will have the C++ compiler and other essential build tools installed on your system.

Final Steps

After ensuring that the C++ compiler and necessary build tools are installed on your system, try installing the inverse_optical_flow package again. If you encounter specific error messages or issues during the process, those details can help further diagnose the problem and find a more targeted solution.

@AlexCHENSiyu
Copy link
Author

Thank you for your help and sharing of the project.

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

2 participants