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

Not able to set up Executorch(Error: Could not find a version that satisfies the requirement torch==2.3.0) #3670

Open
CannoChen opened this issue May 18, 2024 · 10 comments
Labels
triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Comments

@CannoChen
Copy link

I followed the guidelines on the tutorial(https://pytorch.org/executorch/stable/getting-started-setup) to set up my development environment. But it always shows an error:
ERROR: Could not find a version that satisfies the requirement torch==2.3.0 (from executorch) (from versions: 1.11.0, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 2.0.0, 2.0.1, 2.1.0, 2.1.1, 2.1.2, 2.2.0, 2.2.1, 2.2.2)
ERROR: No matching distribution found for torch==2.3

My environment info:

  • platform: macOS(m3)
  • python version: 3.10.0
  • pip version: 24.0
  • torch version: 2.2.2

How to solve this problem?

@CannoChen CannoChen reopened this May 18, 2024
@CannoChen
Copy link
Author

supplement info:
mac os version: 14.3

@kirklandsign kirklandsign added the triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module label May 20, 2024
@kirklandsign
Copy link
Contributor

Hi @CannoChen do you use a new conda environment?

2.3 should be in pypi: https://pypi.org/project/torch/

@CannoChen
Copy link
Author

Hi @CannoChen do you use a new conda environment?

2.3 should be in pypi: https://pypi.org/project/torch/

Yes, all the steps are following the tutorial.

@mergennachin
Copy link
Contributor

@CannoChen can you try upgrading pip

pip install --upgrade pip

@CannoChen
Copy link
Author

@mergennachin I tried everything i can do. But this issue cant solved. So i exchange my os to Ubuntu20.04. It works!

it look like a bug for macos.

@jktaotao
Copy link

same problem in my env
platform: macOs 12.7.2
python version: 3.11
pip version: 24.0

@mergennachin
Copy link
Contributor

@jktaotao

Is your Mac x86 based by any chance? If so, pytorch stopped publishing prebuilt pip packages since pytorch 2.3

pytorch/pytorch#114602

I'd recommend installing the pytorch 2.3 from source

@CannoChen
Copy link
Author

CannoChen commented May 30, 2024

@mergennachin

Why would you think installing pytorch yourself would work? The fact is that we need a clean virtual environment if we follow the executorch tutorial. If pytorch is installed in the environment beforehand, some errors will occur!!! This is what I've learned through practice.

On the other hand. When we run git submodule update --init, it reinstalls pytorch for our environment, regardless of whether our environment contains it or not. This is what triggers the error.

@keenborder786
Copy link

I am also facing the same issue. I am on Mac OS 11.0.1

@infung
Copy link

infung commented Jun 11, 2024

same issue. NEED HELP 😿

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Projects
None yet
Development

No branches or pull requests

6 participants