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

Wrong pip install command #2

Open
ilianAZZ opened this issue Jun 11, 2024 · 0 comments
Open

Wrong pip install command #2

ilianAZZ opened this issue Jun 11, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@ilianAZZ
Copy link
Collaborator

if __name__ == "__main__":
    print("Getting MATLAB version... Please wait.")
    matlab_version = get_matlab_version()
    
    major_version = re.search(r"(\d+\.\d+)\.\d+\.\d+", matlab_version.decode("utf-8")).group(1)
    
    if matlab_version:
        print("MATLAB version found:", matlab_version)
        print("Run the following command in the terminal to install the required version:")
        major = int(major_version.split(".")[0])
        minor = int(major_version.split(".")[1])
        print(f"pip install matlabengine>={major}.{minor}.0,<{major+1}.0.0")

It should be '<{major}.{minor+1}.0"

@ilianAZZ ilianAZZ added the bug Something isn't working label Jun 11, 2024
@ilianAZZ ilianAZZ self-assigned this Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant