import ibm_db failed with ModuleNotFoundError: No module named 'ibm_db'Calling a function of a module by using its name (a string)error during “import ibm_db”ModuleNotFoundError: No module named 'pyvjoy'ModuleNotFoundError: No module named 'psycopg2'ModuleNotFoundError: No module named 'Crypto'ModuleNotFoundError: No module name 'pip.req'ModuleNotFoundError: No module named 'docx'ModuleNotFoundError: No module named 'mdptoolbox'Package installed but can't be imported : ModuleNotFoundError: No module named

How far did Gandalf and the Balrog drop from the bridge in Moria?

How to disable "Completion time:..." in SQL Server Messages window

What is this 1990s horror game of otherworldly PCs dealing with monsters on modern Earth?

How can this older-style irrigation tee be replaced?

Is this n-speak?

Is there a standardised way to check fake news?

are there an infinite number of primes which are any multiple of n apart?

Graphs for which a calculus student can reasonably compute the arclength

Are 变 and 変 the same?

How much maintenance time did it take to make an F4U Corsair ready for another flight?

Do beef farmed pastures net remove carbon emissions?

AsyncDictionary - Can you break thread safety?

How can Radagast come across Gandalf and Thorin's company?

Why is there a large performance impact when looping over an array over 240 elements?

What are these funnel-looking green things in my yard?

How to take the beginning and end parts of a list with simpler syntax?

Can sampling rate be a floating point number?

Are employers legally allowed to pay employees in goods and services equal to or greater than the minimum wage?

How exactly are corporate bonds priced at issue

Is there a SQL/english like language that lets you define formulations given some data?

Can a PC use the Levitate spell to avoid movement speed reduction from exhaustion?

Heat equation: Squiggly lines

How can God warn people of the upcoming rapture without disrupting society?

Why does the standard fingering / strumming for a D maj chord leave out the 5th string?



import ibm_db failed with ModuleNotFoundError: No module named 'ibm_db'


Calling a function of a module by using its name (a string)error during “import ibm_db”ModuleNotFoundError: No module named 'pyvjoy'ModuleNotFoundError: No module named 'psycopg2'ModuleNotFoundError: No module named 'Crypto'ModuleNotFoundError: No module name 'pip.req'ModuleNotFoundError: No module named 'docx'ModuleNotFoundError: No module named 'mdptoolbox'Package installed but can't be imported : ModuleNotFoundError: No module named






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








0















I am trying to connect to ibm_db through python but it says the error



import ibm_db
Traceback (most recent call last):

File "<ipython-input-1-fe3bb08c8a05>", line 1, in <module>
import ibm_db

ModuleNotFoundError: No module named 'ibm_db'


As suggested in many other sites I tried to re-install using



pip install ibm_db==2.0.8a but that does not install either



import ibm_db
Traceback (most recent call last):

File "<ipython-input-1-fe3bb08c8a05>", line 1, in <module>
import ibm_db

ModuleNotFoundError: No module named 'ibm_db'


I expect the ibm_db to get connected



db I am trying to connect is on the cloud



I am not sure if there is any setting I am missing here.



Any pointers or suggestions will be of great help.



Thanks all.










share|improve this question


























  • Do you have a working IBM Db2 Data server driver installed on your Windows Workstation?

    – mao
    Mar 27 at 9:48












  • Hi Mao, No Is it necessary even though I am trying to connect to DB2 on the cloud?? If yes, Could you please tell me how to install it

    – Pandora-Box
    Mar 27 at 10:05











  • Yes it is necessary. Which cloud service hosts your Db2-database? EDIT your question to add all the missing facts.

    – mao
    Mar 27 at 10:08

















0















I am trying to connect to ibm_db through python but it says the error



import ibm_db
Traceback (most recent call last):

File "<ipython-input-1-fe3bb08c8a05>", line 1, in <module>
import ibm_db

ModuleNotFoundError: No module named 'ibm_db'


As suggested in many other sites I tried to re-install using



pip install ibm_db==2.0.8a but that does not install either



import ibm_db
Traceback (most recent call last):

File "<ipython-input-1-fe3bb08c8a05>", line 1, in <module>
import ibm_db

ModuleNotFoundError: No module named 'ibm_db'


I expect the ibm_db to get connected



db I am trying to connect is on the cloud



I am not sure if there is any setting I am missing here.



Any pointers or suggestions will be of great help.



Thanks all.










share|improve this question


























  • Do you have a working IBM Db2 Data server driver installed on your Windows Workstation?

    – mao
    Mar 27 at 9:48












  • Hi Mao, No Is it necessary even though I am trying to connect to DB2 on the cloud?? If yes, Could you please tell me how to install it

    – Pandora-Box
    Mar 27 at 10:05











  • Yes it is necessary. Which cloud service hosts your Db2-database? EDIT your question to add all the missing facts.

    – mao
    Mar 27 at 10:08













0












0








0








I am trying to connect to ibm_db through python but it says the error



import ibm_db
Traceback (most recent call last):

File "<ipython-input-1-fe3bb08c8a05>", line 1, in <module>
import ibm_db

ModuleNotFoundError: No module named 'ibm_db'


As suggested in many other sites I tried to re-install using



pip install ibm_db==2.0.8a but that does not install either



import ibm_db
Traceback (most recent call last):

File "<ipython-input-1-fe3bb08c8a05>", line 1, in <module>
import ibm_db

ModuleNotFoundError: No module named 'ibm_db'


I expect the ibm_db to get connected



db I am trying to connect is on the cloud



I am not sure if there is any setting I am missing here.



Any pointers or suggestions will be of great help.



Thanks all.










share|improve this question
















I am trying to connect to ibm_db through python but it says the error



import ibm_db
Traceback (most recent call last):

File "<ipython-input-1-fe3bb08c8a05>", line 1, in <module>
import ibm_db

ModuleNotFoundError: No module named 'ibm_db'


As suggested in many other sites I tried to re-install using



pip install ibm_db==2.0.8a but that does not install either



import ibm_db
Traceback (most recent call last):

File "<ipython-input-1-fe3bb08c8a05>", line 1, in <module>
import ibm_db

ModuleNotFoundError: No module named 'ibm_db'


I expect the ibm_db to get connected



db I am trying to connect is on the cloud



I am not sure if there is any setting I am missing here.



Any pointers or suggestions will be of great help.



Thanks all.







python db2






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 27 at 9:38









Rich

4187 silver badges28 bronze badges




4187 silver badges28 bronze badges










asked Mar 27 at 8:16









Pandora-BoxPandora-Box

34 bronze badges




34 bronze badges















  • Do you have a working IBM Db2 Data server driver installed on your Windows Workstation?

    – mao
    Mar 27 at 9:48












  • Hi Mao, No Is it necessary even though I am trying to connect to DB2 on the cloud?? If yes, Could you please tell me how to install it

    – Pandora-Box
    Mar 27 at 10:05











  • Yes it is necessary. Which cloud service hosts your Db2-database? EDIT your question to add all the missing facts.

    – mao
    Mar 27 at 10:08

















  • Do you have a working IBM Db2 Data server driver installed on your Windows Workstation?

    – mao
    Mar 27 at 9:48












  • Hi Mao, No Is it necessary even though I am trying to connect to DB2 on the cloud?? If yes, Could you please tell me how to install it

    – Pandora-Box
    Mar 27 at 10:05











  • Yes it is necessary. Which cloud service hosts your Db2-database? EDIT your question to add all the missing facts.

    – mao
    Mar 27 at 10:08
















Do you have a working IBM Db2 Data server driver installed on your Windows Workstation?

– mao
Mar 27 at 9:48






Do you have a working IBM Db2 Data server driver installed on your Windows Workstation?

– mao
Mar 27 at 9:48














Hi Mao, No Is it necessary even though I am trying to connect to DB2 on the cloud?? If yes, Could you please tell me how to install it

– Pandora-Box
Mar 27 at 10:05





Hi Mao, No Is it necessary even though I am trying to connect to DB2 on the cloud?? If yes, Could you please tell me how to install it

– Pandora-Box
Mar 27 at 10:05













Yes it is necessary. Which cloud service hosts your Db2-database? EDIT your question to add all the missing facts.

– mao
Mar 27 at 10:08





Yes it is necessary. Which cloud service hosts your Db2-database? EDIT your question to add all the missing facts.

– mao
Mar 27 at 10:08












2 Answers
2






active

oldest

votes


















0














What Python version are you using?



If you're using python 3 you should install it using pip3



pip3 install ibm_db==2.0.8a


Give it a shot.






share|improve this answer

























  • Thanks I tried that I got the error LINK : fatal error LNK1181: cannot open input file 'db2cli.lib' error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe' failed with exit status 1181. I am using python 3

    – Pandora-Box
    Mar 27 at 8:25












  • Are you able to install the package with this command? Or when you tried to run this, that's when the error occur?

    – Rich
    Mar 27 at 8:29











  • Hi Rich, The above error occured when I tried this command pip3 install ibm_db==2.0.8a

    – Pandora-Box
    Mar 27 at 8:30











  • Install the pip3 first mate.

    – Rich
    Mar 27 at 8:39











  • Hi Rich,I have installed pip3 yet I am getting the same error fatal error LNK1181: cannot open input file 'db2cli.lib' error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe' failed with exit status 1181

    – Pandora-Box
    Mar 27 at 8:59


















0














pip install ibm-db==3.0.1


here is the link: https://pypi.org/project/ibm-db/3.0.1/






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%2f55372550%2fimport-ibm-db-failed-with-modulenotfounderror-no-module-named-ibm-db%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    What Python version are you using?



    If you're using python 3 you should install it using pip3



    pip3 install ibm_db==2.0.8a


    Give it a shot.






    share|improve this answer

























    • Thanks I tried that I got the error LINK : fatal error LNK1181: cannot open input file 'db2cli.lib' error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe' failed with exit status 1181. I am using python 3

      – Pandora-Box
      Mar 27 at 8:25












    • Are you able to install the package with this command? Or when you tried to run this, that's when the error occur?

      – Rich
      Mar 27 at 8:29











    • Hi Rich, The above error occured when I tried this command pip3 install ibm_db==2.0.8a

      – Pandora-Box
      Mar 27 at 8:30











    • Install the pip3 first mate.

      – Rich
      Mar 27 at 8:39











    • Hi Rich,I have installed pip3 yet I am getting the same error fatal error LNK1181: cannot open input file 'db2cli.lib' error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe' failed with exit status 1181

      – Pandora-Box
      Mar 27 at 8:59















    0














    What Python version are you using?



    If you're using python 3 you should install it using pip3



    pip3 install ibm_db==2.0.8a


    Give it a shot.






    share|improve this answer

























    • Thanks I tried that I got the error LINK : fatal error LNK1181: cannot open input file 'db2cli.lib' error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe' failed with exit status 1181. I am using python 3

      – Pandora-Box
      Mar 27 at 8:25












    • Are you able to install the package with this command? Or when you tried to run this, that's when the error occur?

      – Rich
      Mar 27 at 8:29











    • Hi Rich, The above error occured when I tried this command pip3 install ibm_db==2.0.8a

      – Pandora-Box
      Mar 27 at 8:30











    • Install the pip3 first mate.

      – Rich
      Mar 27 at 8:39











    • Hi Rich,I have installed pip3 yet I am getting the same error fatal error LNK1181: cannot open input file 'db2cli.lib' error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe' failed with exit status 1181

      – Pandora-Box
      Mar 27 at 8:59













    0












    0








    0







    What Python version are you using?



    If you're using python 3 you should install it using pip3



    pip3 install ibm_db==2.0.8a


    Give it a shot.






    share|improve this answer













    What Python version are you using?



    If you're using python 3 you should install it using pip3



    pip3 install ibm_db==2.0.8a


    Give it a shot.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Mar 27 at 8:20









    RichRich

    4187 silver badges28 bronze badges




    4187 silver badges28 bronze badges















    • Thanks I tried that I got the error LINK : fatal error LNK1181: cannot open input file 'db2cli.lib' error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe' failed with exit status 1181. I am using python 3

      – Pandora-Box
      Mar 27 at 8:25












    • Are you able to install the package with this command? Or when you tried to run this, that's when the error occur?

      – Rich
      Mar 27 at 8:29











    • Hi Rich, The above error occured when I tried this command pip3 install ibm_db==2.0.8a

      – Pandora-Box
      Mar 27 at 8:30











    • Install the pip3 first mate.

      – Rich
      Mar 27 at 8:39











    • Hi Rich,I have installed pip3 yet I am getting the same error fatal error LNK1181: cannot open input file 'db2cli.lib' error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe' failed with exit status 1181

      – Pandora-Box
      Mar 27 at 8:59

















    • Thanks I tried that I got the error LINK : fatal error LNK1181: cannot open input file 'db2cli.lib' error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe' failed with exit status 1181. I am using python 3

      – Pandora-Box
      Mar 27 at 8:25












    • Are you able to install the package with this command? Or when you tried to run this, that's when the error occur?

      – Rich
      Mar 27 at 8:29











    • Hi Rich, The above error occured when I tried this command pip3 install ibm_db==2.0.8a

      – Pandora-Box
      Mar 27 at 8:30











    • Install the pip3 first mate.

      – Rich
      Mar 27 at 8:39











    • Hi Rich,I have installed pip3 yet I am getting the same error fatal error LNK1181: cannot open input file 'db2cli.lib' error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe' failed with exit status 1181

      – Pandora-Box
      Mar 27 at 8:59
















    Thanks I tried that I got the error LINK : fatal error LNK1181: cannot open input file 'db2cli.lib' error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe' failed with exit status 1181. I am using python 3

    – Pandora-Box
    Mar 27 at 8:25






    Thanks I tried that I got the error LINK : fatal error LNK1181: cannot open input file 'db2cli.lib' error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe' failed with exit status 1181. I am using python 3

    – Pandora-Box
    Mar 27 at 8:25














    Are you able to install the package with this command? Or when you tried to run this, that's when the error occur?

    – Rich
    Mar 27 at 8:29





    Are you able to install the package with this command? Or when you tried to run this, that's when the error occur?

    – Rich
    Mar 27 at 8:29













    Hi Rich, The above error occured when I tried this command pip3 install ibm_db==2.0.8a

    – Pandora-Box
    Mar 27 at 8:30





    Hi Rich, The above error occured when I tried this command pip3 install ibm_db==2.0.8a

    – Pandora-Box
    Mar 27 at 8:30













    Install the pip3 first mate.

    – Rich
    Mar 27 at 8:39





    Install the pip3 first mate.

    – Rich
    Mar 27 at 8:39













    Hi Rich,I have installed pip3 yet I am getting the same error fatal error LNK1181: cannot open input file 'db2cli.lib' error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe' failed with exit status 1181

    – Pandora-Box
    Mar 27 at 8:59





    Hi Rich,I have installed pip3 yet I am getting the same error fatal error LNK1181: cannot open input file 'db2cli.lib' error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe' failed with exit status 1181

    – Pandora-Box
    Mar 27 at 8:59













    0














    pip install ibm-db==3.0.1


    here is the link: https://pypi.org/project/ibm-db/3.0.1/






    share|improve this answer































      0














      pip install ibm-db==3.0.1


      here is the link: https://pypi.org/project/ibm-db/3.0.1/






      share|improve this answer





























        0












        0








        0







        pip install ibm-db==3.0.1


        here is the link: https://pypi.org/project/ibm-db/3.0.1/






        share|improve this answer















        pip install ibm-db==3.0.1


        here is the link: https://pypi.org/project/ibm-db/3.0.1/







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited May 22 at 14:08









        Robert Columbia

        5,7209 gold badges26 silver badges33 bronze badges




        5,7209 gold badges26 silver badges33 bronze badges










        answered May 22 at 14:06









        ElvaElva

        1




        1






























            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%2f55372550%2fimport-ibm-db-failed-with-modulenotfounderror-no-module-named-ibm-db%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