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

Unable to install package #135

Open
wuduxunran opened this issue Nov 12, 2023 · 2 comments
Open

Unable to install package #135

wuduxunran opened this issue Nov 12, 2023 · 2 comments

Comments

@wuduxunran
Copy link

Dear:

I am installing the package, however, get the following error:

ERROR: Ignored the following versions that require a different python version: 0.27.3 Requires-Python >=3.7, !=3.11.*
ERROR: Could not find a version that satisfies the requirement torch<2.0,>=1.13 (from auton-survival) (from versions: 2.0.0, 2.0.1, 2.1.0)
ERROR: No matching distribution found for torch<2.0,>=1.13

Is this package not suitable for python3.11 and torch2.0? If not, is there a suitable version for python3.11 and torch2.0?

@matteo4diani
Copy link
Contributor

Hi @wuduxunran, thanks for reaching out 🙂 we're working on this issue #136, as you can see allowing torch v2 creates some problems in <3.11 builds: I need to understand how to handle this with poetry.

In the meantime, if you want to try using auton-survival with torch 2, you can use the following pyproject.toml (or install with pip as a VCS dependency):

[tool.poetry]
name = "your-package"
version = "0.1.0"
description = ""
authors = ["Name Surname <[email protected]>"]
readme = "README.md"
packages = [{include = "your_package"}]

[tool.poetry.dependencies]
python = "~3.11"
auton-survival = {git = "https://github.com/matteo4diani/auton-survival.git", rev = "dev-mfordiani-135-torch-2"}


[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

@wuduxunran
Copy link
Author

Thank you for your valuable response, your assistance was incredibly helpful in resolving this question.

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