ModuleNotFoundError: No module named 'rnn_base'Calling a function of a module by using its name (a string)How to import a module given its name?Python error “ImportError: No module named”Proper way to declare custom exceptions in modern Python?Python and pip, list all versions of a package that's available?No module named pkg_resourcesHow to fix “Attempted relative import in non-package” even with __init__.pypg_config executable not foundFailed to install Python Cryptography package with PIP and setup.pyError after upgrading pip: cannot import name 'main'
How likely is fragmentation on a table with 40000 products likely to affect performance
Struggling with cyclical dependancies in unit tests
Can I change the license of a forked project to the MIT if the license of the parent project has changed from the GPL to the MIT?
Why would anyone ever invest in a cash-only etf?
If an arcane trickster rogue uses his mage hand and makes it invisible, does that mean anything the hand picks up is also invisible?
Why is the Apollo LEM ladder so far from the ground?
Composing fill in the blanks
Exploiting the delay when a festival ticket is scanned
Why didn’t Christianity spread southwards from Ethiopia in the Middle Ages?
reconstruction filter - How does it actually work?
Did the Americans trade destroyers in the "destroyer deal" that they would later need themselves?
Copying an existing HTML page and use it, is that against any copyright law?
Do 3/8 (37.5%) of Quadratics Have No x-Intercepts?
Finding the Maximum of a Continuous Function over a Closed Interval
How did the Sinclair compare on price with the C64 in the UK?
Why force the nose of 737 Max down in the first place?
Examples of simultaneous independent breakthroughs
How do you pronounce "Hain"?
How can I say in Russian "I am not afraid to write anything"?
Incrementing add under condition in pandas
How can religions be structured in ways that allow inter-faith councils to work?
Are the named pipe created by `mknod` and the FIFO created by `mkfifo` equivalent?
Did Vladimir Lenin have a cat?
What happens when a flying sword is killed?
ModuleNotFoundError: No module named 'rnn_base'
Calling a function of a module by using its name (a string)How to import a module given its name?Python error “ImportError: No module named”Proper way to declare custom exceptions in modern Python?Python and pip, list all versions of a package that's available?No module named pkg_resourcesHow to fix “Attempted relative import in non-package” even with __init__.pypg_config executable not foundFailed to install Python Cryptography package with PIP and setup.pyError after upgrading pip: cannot import name 'main'
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I am trying to run this python code but I will get the following error:
import rnn_base as rnn
ModuleNotFoundError: No module named 'rnn_base'
the problem is none of conda install rnn_base
or pip install rnn_base
can't find any package with name rnn_base
to install.
Then can you please guide me how I should install this package on my python?
python python-3.x pip conda miniconda
add a comment |
I am trying to run this python code but I will get the following error:
import rnn_base as rnn
ModuleNotFoundError: No module named 'rnn_base'
the problem is none of conda install rnn_base
or pip install rnn_base
can't find any package with name rnn_base
to install.
Then can you please guide me how I should install this package on my python?
python python-3.x pip conda miniconda
2
rnn_base
is a python file and not a package. Have you tried adding the location of these files to your system path?
– Nivii1406
Mar 26 at 20:02
@Nivii1406 thank you so much. it solve my problem :)
– Reza Amya
Mar 26 at 20:19
add a comment |
I am trying to run this python code but I will get the following error:
import rnn_base as rnn
ModuleNotFoundError: No module named 'rnn_base'
the problem is none of conda install rnn_base
or pip install rnn_base
can't find any package with name rnn_base
to install.
Then can you please guide me how I should install this package on my python?
python python-3.x pip conda miniconda
I am trying to run this python code but I will get the following error:
import rnn_base as rnn
ModuleNotFoundError: No module named 'rnn_base'
the problem is none of conda install rnn_base
or pip install rnn_base
can't find any package with name rnn_base
to install.
Then can you please guide me how I should install this package on my python?
python python-3.x pip conda miniconda
python python-3.x pip conda miniconda
edited Mar 26 at 19:56
Reza Amya
asked Mar 26 at 19:31
Reza AmyaReza Amya
4177 silver badges21 bronze badges
4177 silver badges21 bronze badges
2
rnn_base
is a python file and not a package. Have you tried adding the location of these files to your system path?
– Nivii1406
Mar 26 at 20:02
@Nivii1406 thank you so much. it solve my problem :)
– Reza Amya
Mar 26 at 20:19
add a comment |
2
rnn_base
is a python file and not a package. Have you tried adding the location of these files to your system path?
– Nivii1406
Mar 26 at 20:02
@Nivii1406 thank you so much. it solve my problem :)
– Reza Amya
Mar 26 at 20:19
2
2
rnn_base
is a python file and not a package. Have you tried adding the location of these files to your system path?– Nivii1406
Mar 26 at 20:02
rnn_base
is a python file and not a package. Have you tried adding the location of these files to your system path?– Nivii1406
Mar 26 at 20:02
@Nivii1406 thank you so much. it solve my problem :)
– Reza Amya
Mar 26 at 20:19
@Nivii1406 thank you so much. it solve my problem :)
– Reza Amya
Mar 26 at 20:19
add a comment |
1 Answer
1
active
oldest
votes
Add the following code to your python:
import sys
sys.path.append ('C:\DIRECTORY\OF\PLACE\WHERE\rnn_base\FILE\IS')
please note that you should point to the directory, not the file itself. and also use \
instead of
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
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',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55364956%2fmodulenotfounderror-no-module-named-rnn-base%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Add the following code to your python:
import sys
sys.path.append ('C:\DIRECTORY\OF\PLACE\WHERE\rnn_base\FILE\IS')
please note that you should point to the directory, not the file itself. and also use \
instead of
add a comment |
Add the following code to your python:
import sys
sys.path.append ('C:\DIRECTORY\OF\PLACE\WHERE\rnn_base\FILE\IS')
please note that you should point to the directory, not the file itself. and also use \
instead of
add a comment |
Add the following code to your python:
import sys
sys.path.append ('C:\DIRECTORY\OF\PLACE\WHERE\rnn_base\FILE\IS')
please note that you should point to the directory, not the file itself. and also use \
instead of
Add the following code to your python:
import sys
sys.path.append ('C:\DIRECTORY\OF\PLACE\WHERE\rnn_base\FILE\IS')
please note that you should point to the directory, not the file itself. and also use \
instead of
answered Mar 26 at 20:23
Reza AmyaReza Amya
4177 silver badges21 bronze badges
4177 silver badges21 bronze badges
add a comment |
add a comment |
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55364956%2fmodulenotfounderror-no-module-named-rnn-base%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
2
rnn_base
is a python file and not a package. Have you tried adding the location of these files to your system path?– Nivii1406
Mar 26 at 20:02
@Nivii1406 thank you so much. it solve my problem :)
– Reza Amya
Mar 26 at 20:19