ModuleNotFoundError: No module named 'nltk' after installation on a Windows 10 + Ubuntu 18.04 machine

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;







up vote
1
down vote

favorite












I've been trying to solve this problem for the last couple of hours, without luck.



I'm trying to run a python program that I wrote on my Windows 10 machine on my other machine that has a dual-boot of Windows 10 and Ubuntu 18.04 "Bionic Beaver", if I recall correctly.



This error comes up everytime I run the code using spyder/pycharm, even after trying a lot of suggestions that I found on here and on stackoverflow:



ModuleNotFoundError: No module named 'nltk'


So far, I have tried downloading nltk:



1) using their own website's instructions: sudo pip install -U nltk



2) using anaconda3: conda install -c anaconda nltk



First, it used to show me some permission denied problems, because I guess the anaconda3 folder was set to 'access only', but I used: sudo chown -R usr foldername to solve that.



I even tried updating pip, anaconda and nltk, without positive results.



Could this be connected to the fact of a dual-boot machine? Or maybe the fact that anaconda is installed?



Weird thing is, when I type python in the terminal and then import nltk it shows >> , and no error message. This is really frustrating and I hope someone can help me out!







share|improve this question



















  • It's probably related to using conda. I used it for a very short time, and it was easier for me to just blow it out and install things manually.
    – RobotHumans
    2 days ago
















up vote
1
down vote

favorite












I've been trying to solve this problem for the last couple of hours, without luck.



I'm trying to run a python program that I wrote on my Windows 10 machine on my other machine that has a dual-boot of Windows 10 and Ubuntu 18.04 "Bionic Beaver", if I recall correctly.



This error comes up everytime I run the code using spyder/pycharm, even after trying a lot of suggestions that I found on here and on stackoverflow:



ModuleNotFoundError: No module named 'nltk'


So far, I have tried downloading nltk:



1) using their own website's instructions: sudo pip install -U nltk



2) using anaconda3: conda install -c anaconda nltk



First, it used to show me some permission denied problems, because I guess the anaconda3 folder was set to 'access only', but I used: sudo chown -R usr foldername to solve that.



I even tried updating pip, anaconda and nltk, without positive results.



Could this be connected to the fact of a dual-boot machine? Or maybe the fact that anaconda is installed?



Weird thing is, when I type python in the terminal and then import nltk it shows >> , and no error message. This is really frustrating and I hope someone can help me out!







share|improve this question



















  • It's probably related to using conda. I used it for a very short time, and it was easier for me to just blow it out and install things manually.
    – RobotHumans
    2 days ago












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I've been trying to solve this problem for the last couple of hours, without luck.



I'm trying to run a python program that I wrote on my Windows 10 machine on my other machine that has a dual-boot of Windows 10 and Ubuntu 18.04 "Bionic Beaver", if I recall correctly.



This error comes up everytime I run the code using spyder/pycharm, even after trying a lot of suggestions that I found on here and on stackoverflow:



ModuleNotFoundError: No module named 'nltk'


So far, I have tried downloading nltk:



1) using their own website's instructions: sudo pip install -U nltk



2) using anaconda3: conda install -c anaconda nltk



First, it used to show me some permission denied problems, because I guess the anaconda3 folder was set to 'access only', but I used: sudo chown -R usr foldername to solve that.



I even tried updating pip, anaconda and nltk, without positive results.



Could this be connected to the fact of a dual-boot machine? Or maybe the fact that anaconda is installed?



Weird thing is, when I type python in the terminal and then import nltk it shows >> , and no error message. This is really frustrating and I hope someone can help me out!







share|improve this question











I've been trying to solve this problem for the last couple of hours, without luck.



I'm trying to run a python program that I wrote on my Windows 10 machine on my other machine that has a dual-boot of Windows 10 and Ubuntu 18.04 "Bionic Beaver", if I recall correctly.



This error comes up everytime I run the code using spyder/pycharm, even after trying a lot of suggestions that I found on here and on stackoverflow:



ModuleNotFoundError: No module named 'nltk'


So far, I have tried downloading nltk:



1) using their own website's instructions: sudo pip install -U nltk



2) using anaconda3: conda install -c anaconda nltk



First, it used to show me some permission denied problems, because I guess the anaconda3 folder was set to 'access only', but I used: sudo chown -R usr foldername to solve that.



I even tried updating pip, anaconda and nltk, without positive results.



Could this be connected to the fact of a dual-boot machine? Or maybe the fact that anaconda is installed?



Weird thing is, when I type python in the terminal and then import nltk it shows >> , and no error message. This is really frustrating and I hope someone can help me out!









share|improve this question










share|improve this question




share|improve this question









asked 2 days ago









Waldkamel

61




61











  • It's probably related to using conda. I used it for a very short time, and it was easier for me to just blow it out and install things manually.
    – RobotHumans
    2 days ago
















  • It's probably related to using conda. I used it for a very short time, and it was easier for me to just blow it out and install things manually.
    – RobotHumans
    2 days ago















It's probably related to using conda. I used it for a very short time, and it was easier for me to just blow it out and install things manually.
– RobotHumans
2 days ago




It's probably related to using conda. I used it for a very short time, and it was easier for me to just blow it out and install things manually.
– RobotHumans
2 days ago















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1062144%2fmodulenotfounderror-no-module-named-nltk-after-installation-on-a-windows-10%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1062144%2fmodulenotfounderror-no-module-named-nltk-after-installation-on-a-windows-10%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

Which professions warranted travel in Medieval times?

How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

Trouble downloading packages list due to a “Hash sum mismatch” error