Skip to content

Wrong pip install command #2

@ilianAZZ

Description

@ilianAZZ
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"

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions