Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Machine Learning Machine Learning Basics Writing a Classifier Installing scikit-learn using Anaconda

everytime I try to create an environment with the provided .yml file, I am told that the resource does not exist.

ResolvePackageNotFound:

  • libcxx==4.0.1=h579ed51_0
  • mkl==2018.0.1=hfbd8650_4
  • zlib==1.2.11=hf3cbc9b_2
  • numpy==1.14.0=py36h8a80b8c_1
  • wheel==0.30.0=py36h5eb2c71_1
  • scipy==1.0.0=py36h1de22e9_0
  • tk==8.6.7=h35a86e2_3
  • sqlite==3.21.0=h3efe00b_0
  • pip==9.0.1=py36h1555ced_4
  • libffi==3.2.1=h475c297_4
  • readline==7.0=hc1231fa_4
  • libedit==3.1=hb4e282d_0
  • libcxxabi==4.0.1=hebd6815_0
  • ca-certificates==2017.08.26=ha1e5d58_0
  • ncurses==6.0=hd04f020_2
  • libgfortran==3.0.1=h93005f0_2
  • python==3.6.4=hc167b69_1
  • openssl==1.0.2n=hdbc3d79_0
  • intel-openmp==2018.0.0=h8158457_8
  • xz==5.2.3=h0278029_2
  • scikit-learn==0.19.1=py36hffbff8c_0
Steven Parker
Steven Parker
231,268 Points

:mailbox_with_mail: HI, I got your request but it looks like Seth already has you covered. Happy coding!

1 Answer

Seth Kroger
Seth Kroger
56,413 Points

I ran into the same issue on Windows 10 as well. The enviroment.yml includes checksums for specific versions of the packages which are probably the OSX versions. Removing the checksums in a text editor fixes some but not all the errors, because not all packages have versions for every OS.

I've found the project will run just fine under the "base" environment which includes scikit-learn.

You can also create a new Python environment in Anaconda Navigator then install scikit-learn to it. It will take care of all the dependencies for you and provide a paired down environment to run the examples.