Trying to create Conda environment via YAML results in PIP dependency conflicts and “Could not find a version” errors
For context, I’m currently using a MacBook to run a lot of machine learning experiments using the MPS backend. This means that when I install PyTorch, I can’t download any of the stable version and must resort to the 2.1.0.dev version. In addition to this, I currently use Python 3.10 and this is specified in my environment.yml file via:
- python=3.10.11=h218abb5_2
but when I try to run conda create env --file environment.yml I get the following errors:
Pip subprocess error:
ERROR: Ignored the following versions that require a different python version: 1.6.2 Requires-Python >=3.7,<3.10; 1.6.3 Requires-Python >=3.7,<3.10; 1.7.0 Requires-Python >=3.7,<3.10; 1.7.0rc1 Requires-Python >=3.7,<3.10; 1.7.0rc2 Requires-Python >=3.7,<3.10; 1.7.1 Requires-Python >=3.7,<3.10
ERROR: Could not find a version that satisfies the requirement torch==2.1.0.dev20230422 (from versions: 1.11.0, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 2.0.0)
ERROR: No matching distribution found for torch==2.1.0.dev20230422
failed
CondaEnvException: Pip failed
My questions are:
- How is it that if my Python version is 3.10 those other packages that seem to require < 3.10 are running? And why the sudden conflicts when trying to create the Conda environment?
- Is there any way that I can install PyTorch automatically via
conda createrather than having to install a separate command?
Read more here: Source link
