cognitive-toolkit-docs icon indicating copy to clipboard operation
cognitive-toolkit-docs copied to clipboard

CNTK.sample_installer uses pip.main, which is no longer supported on pip version 10>

Open Code-ScottLe opened this issue 7 years ago • 0 comments

Traceback (most recent call last):
  File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\cntk\sample_installer.py", line 101, in <module>
    install_samples(options.url, options.directory, options.quiet)
  File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\cntk\sample_installer.py", line 79, in install_samples
    pip.main(['install', '-r', requirements_file])
AttributeError: module 'pip' has no attribute 'main'

A quick search reveal that they dropped support for this since version 10. Please either note this , or change the example

https://github.com/pypa/pip/issues/5240

Code-ScottLe avatar Oct 25 '18 20:10 Code-ScottLe