“SpecNotFound: Invalid name, try the format: user/package” in Creating new Conda env with yml file (Windows 10)

We Are Going To Discuss About “SpecNotFound: Invalid name, try the format: user/package” in Creating new Conda env with yml file (Windows 10). So lets Start this Python Article.

“SpecNotFound: Invalid name, try the format: user/package” in Creating new Conda env with yml file (Windows 10)

  1. How to solve “SpecNotFound: Invalid name, try the format: user/package” in Creating new Conda env with yml file (Windows 10)

    drop the “env” in “conda env create” it's just “conda create …”

  2. “SpecNotFound: Invalid name, try the format: user/package” in Creating new Conda env with yml file (Windows 10)

    drop the “env” in “conda env create” it's just “conda create …”

Solution 1

drop the “env” in “conda env create” it’s just “conda create …”

Original Author Chris Of This Content

Solution 2

issue solved by changing contents of Python 310.yml and renaming yml file to Python310.yml. Here is the final .yml file content:

name: Python3.9 
channels:
  - defaults
dependencies:
  - numpy
  - pandas
  - matplotlib
  - pip
  - python=3.9.*      
  - python-dateutil
  - pytz
  - scikit-learn
  - scipy
  - statsmodels
  - xlrd
  - openpyxl
  - lxml
  - html5lib
  - beautifulsoup4
  - jupyter
  - pip:
    - pmdarima        
    - tensorflow
    - keras
prefix: C:\Users\Shayan\Anaconda3\envs\Python3.9

Original Author edited Dec 3, 2021 at 13:59 Of This Content

Solution 3

The other answer says to:

drop the “env” in “conda env create” it’s just “conda create …”

This did not fix it for me by itself, but it did work after trying that and then after that trying the whole

conda env create -n myenv-dev --file my_env.yml

command again.

Original Author stm Of This Content

Solution 4

You can use conda create -f Python 310.yml.

Original Author Fauzan Azhar Of This Content

Conclusion

So This is all About This Tutorial. Hope This Tutorial Helped You. Thank You.

Also Read,

ittutorial team

I am an Information Technology Engineer. I have Completed my MCA And I have 4 Year Plus Experience, I am a web developer with knowledge of multiple back-end platforms Like PHP, Node.js, Python and frontend JavaScript frameworks Like Angular, React, and Vue.

Leave a Comment