79708125

Date: 2025-07-20 15:25:45
Score: 0.5
Natty:
Report link

In the OP, the cause is that the file name is not correctly quoted i.e. it should be conda env create -f "Python 310.yml"—the quote is needed here because the file name contains a space.

However, this specific error message

SpecNotFound: Invalid name, try the format: user/package

can be raised by a number of reasons.

See conda env create gives confusing message if environment file does not exist and name is given · Issue #11839 · conda/conda (only for old conda versions):

If you want to create an empty environment, refer to Create empty conda environment . In particular, in certain conda versions, conda create -n envname works, which is likely why many users find the top-voted answer helpful.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): get the same error
  • High reputation (-1):
Posted by: user202729