amueller / introduction_to_ml_with_python

Notebooks and code for the book "Introduction to Machine Learning with Python"

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

can't install mglearn

redleafnew opened this issue · comments

can't install mglearn

(base) C:\Users\Wens>conda install mglearn
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.

PackagesNotFoundError: The following packages are not available from current channels:

  • mglearn

Current channels:

To search for alternate channels that may provide the conda package you're
looking for, navigate to

https://anaconda.org

and use the search bar at the top of the page.

when I copy the downloaded mglearn to sit-package directory and import mglearn,
it prompt me:
d:\Anaconda3\lib\site-packages\sklearn\externals\six.py:31: FutureWarning: The module is deprecated in version 0.21 and will be removed in version 0.23 since we've dropped support for Python 2.7. Please rely on the official version of six (https://pypi.org/project/six/).
"(https://pypi.org/project/six/).", FutureWarning)

Please see the instructions, they say pip install mglearn.
You can ignore the warning about six being deprecated for now.

pip install mglearn shows the following message:-
Traceback (most recent call last):
File "C:\Users\Shivam Shandilya\anaconda3\Scripts\pip-script.py", line 6, in
from pip._internal.cli.main import main
ModuleNotFoundError: No module named 'pip._internal.cli.main'

@shivamshan please check out pypa/pip#5373

thank you @amueller the issue is fixed...i just had to update my pip version