1

Vineeth Sai indicated in this that with the following code:

pip install cntk 

the problem is solved. However, I am getting the error shown in attached image:

enter image description here

Ethan
  • 1,625
  • 8
  • 23
  • 39

2 Answers2

0

Keeping your latest edit in mind, the error in your screenshot is actually just a recommendation to upgrade pip. As suggested, please run pip install --upgrade pip, and it shall upgrade pip package in your environment and shall not re-appear unless a new version of pip get released later on.

Random Nerd
  • 402
  • 2
  • 12
  • It did not work, and so I asked the corresponding question here: https://datascience.stackexchange.com/questions/43110/problem-upgrading-pip-command-in-azure-jupyter-notebook – Hermes Morales Dec 24 '18 at 18:23
  • In your [screenshot](https://i.stack.imgur.com/ayg9c.jpg), I see that you've added an additional `!` before `pip install --upgrade pip`, which isn't required. If it still doesn't work, try `sudo pip install --upgrade pip` as well & share error screenshot if it fails. Please note that ideally pip upgrade won't impact CNTK installation but nevertheless it is a better idea to keep packages upgraded. – Random Nerd Dec 25 '18 at 08:47
  • 1
    When I try with the sudo pip install --upgrade pip it asked me for a password nbuser. I insert my azure notebook password but it does not function – Hermes Morales Dec 25 '18 at 21:56
  • I have already tried without the !. I understand that I should be able to import CNTK even without upgrading pip. What I now discover is that is a problem with a particular notebook, because from other notebooks I can import CNTK without any problem. – Hermes Morales Dec 25 '18 at 22:22
  • If you're able to import CNTK in other notebooks, then it seems the notebook in question is being launched from some other directory where CNTK isn't installed. You may like to run `pwd` in Input cell of both the notebooks to be sure that those are getting launched from same directory (where CNTK is installed). Optionally, you may also like to refresh kernel for the notebook in question. – Random Nerd Dec 26 '18 at 13:53
  • It was some problem with this specific notebook that I was not able to identify. I verified that it was on the right directory, but finally I substitute it with an equivalent file and it worked. – Hermes Morales Dec 30 '18 at 11:30
0

Try with:

sudo pip install cntk

or:

sudo su [type admin password]
pip install cntk  
fuwiak
  • 1,355
  • 8
  • 13
  • 26