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;








-1















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?










share|improve this question





















  • 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

















-1















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?










share|improve this question





















  • 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













-1












-1








-1








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?










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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












  • 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












1 Answer
1






active

oldest

votes


















0














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






share|improve this answer
























    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
    );



    );













    draft saved

    draft discarded


















    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









    0














    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






    share|improve this answer





























      0














      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






      share|improve this answer



























        0












        0








        0







        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






        share|improve this answer













        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







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 26 at 20:23









        Reza AmyaReza Amya

        4177 silver badges21 bronze badges




        4177 silver badges21 bronze badges





















            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.



















            draft saved

            draft discarded
















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

            Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

            Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript