How anaconda jupyter is different from normal jupyter editor ?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How anaconda jupyter is different from normal jupyter editor ??

I have copy pasted the same code from jupyter editor to anaconda jupyter editor , the program is not executing

16th Dec 2018, 6:10 PM
sai
5 Answers
0
Maybe the problem is not in the version of jupyter? What code did you try and what error occured?
16th Dec 2018, 9:19 PM
Vladislav Riabets
Vladislav Riabets - avatar
0
import urllib2,re f = urllib2.urlopen("URLxxxx.com") s =f.read() dict ={} for i in s: dict[i] =s.count(i) print dict this is the code I'm trying
17th Dec 2018, 6:10 AM
sai
0
And what error does it show when you try run it in anaconda juputer?
17th Dec 2018, 12:58 PM
Vladislav Riabets
Vladislav Riabets - avatar
0
error : no module named urllib2
18th Dec 2018, 4:14 AM
sai
0
I think the problem may be that the package urllib2 for python is not installed in virtual evironment that was created by anaconda and where this copy of jypiter works. You can try to install it in terminal using command: conda install urllib2 If it won't work see this: https://conda.io/docs/user-guide/tasks/manage-pkgs.html
18th Dec 2018, 9:05 AM
Vladislav Riabets
Vladislav Riabets - avatar