python 3.6 module 'cmath' is not found









up vote
0
down vote

favorite












I have just installed Ubuntu 18.04 LTS. After running a python script, I'm receiving this error:




ModuleNotFoundError: No module named 'cmath'




I know that cmath should be already installed. I have found this question Python 3.7 cmath module import error but it's related to python 3.7 . Does it also affects python 3.6? Do you have any ideas how to fix it? Thank you!



Python version is 3.6.5










share|improve this question























  • cmath is a built-in and should import correctly with a standard CPython install. How did you install python 3.6?
    – Matt Messersmith
    Nov 9 at 16:37










  • It has been already installed with Ubuntu.
    – Vladyslav Moisieienkov
    Nov 9 at 16:39










  • Oh. Have you tried reinstalling it? You can either do that using apt-get, or alternatively just use Anaconda. I'd highly recommend Anaconda, it has a lot of nice additionally features that are nice if you're going to be doing a lot of Python development.
    – Matt Messersmith
    Nov 9 at 16:41










  • I have fixed it. I have just reinstalled Python to version 3.6.6 and everything works. Thanks for helping.
    – Vladyslav Moisieienkov
    Nov 10 at 9:43














up vote
0
down vote

favorite












I have just installed Ubuntu 18.04 LTS. After running a python script, I'm receiving this error:




ModuleNotFoundError: No module named 'cmath'




I know that cmath should be already installed. I have found this question Python 3.7 cmath module import error but it's related to python 3.7 . Does it also affects python 3.6? Do you have any ideas how to fix it? Thank you!



Python version is 3.6.5










share|improve this question























  • cmath is a built-in and should import correctly with a standard CPython install. How did you install python 3.6?
    – Matt Messersmith
    Nov 9 at 16:37










  • It has been already installed with Ubuntu.
    – Vladyslav Moisieienkov
    Nov 9 at 16:39










  • Oh. Have you tried reinstalling it? You can either do that using apt-get, or alternatively just use Anaconda. I'd highly recommend Anaconda, it has a lot of nice additionally features that are nice if you're going to be doing a lot of Python development.
    – Matt Messersmith
    Nov 9 at 16:41










  • I have fixed it. I have just reinstalled Python to version 3.6.6 and everything works. Thanks for helping.
    – Vladyslav Moisieienkov
    Nov 10 at 9:43












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have just installed Ubuntu 18.04 LTS. After running a python script, I'm receiving this error:




ModuleNotFoundError: No module named 'cmath'




I know that cmath should be already installed. I have found this question Python 3.7 cmath module import error but it's related to python 3.7 . Does it also affects python 3.6? Do you have any ideas how to fix it? Thank you!



Python version is 3.6.5










share|improve this question















I have just installed Ubuntu 18.04 LTS. After running a python script, I'm receiving this error:




ModuleNotFoundError: No module named 'cmath'




I know that cmath should be already installed. I have found this question Python 3.7 cmath module import error but it's related to python 3.7 . Does it also affects python 3.6? Do you have any ideas how to fix it? Thank you!



Python version is 3.6.5







python python-3.x ubuntu-18.04






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 9 at 16:33









Madhur Bhaiya

16.4k52136




16.4k52136










asked Nov 9 at 16:30









Vladyslav Moisieienkov

331210




331210











  • cmath is a built-in and should import correctly with a standard CPython install. How did you install python 3.6?
    – Matt Messersmith
    Nov 9 at 16:37










  • It has been already installed with Ubuntu.
    – Vladyslav Moisieienkov
    Nov 9 at 16:39










  • Oh. Have you tried reinstalling it? You can either do that using apt-get, or alternatively just use Anaconda. I'd highly recommend Anaconda, it has a lot of nice additionally features that are nice if you're going to be doing a lot of Python development.
    – Matt Messersmith
    Nov 9 at 16:41










  • I have fixed it. I have just reinstalled Python to version 3.6.6 and everything works. Thanks for helping.
    – Vladyslav Moisieienkov
    Nov 10 at 9:43
















  • cmath is a built-in and should import correctly with a standard CPython install. How did you install python 3.6?
    – Matt Messersmith
    Nov 9 at 16:37










  • It has been already installed with Ubuntu.
    – Vladyslav Moisieienkov
    Nov 9 at 16:39










  • Oh. Have you tried reinstalling it? You can either do that using apt-get, or alternatively just use Anaconda. I'd highly recommend Anaconda, it has a lot of nice additionally features that are nice if you're going to be doing a lot of Python development.
    – Matt Messersmith
    Nov 9 at 16:41










  • I have fixed it. I have just reinstalled Python to version 3.6.6 and everything works. Thanks for helping.
    – Vladyslav Moisieienkov
    Nov 10 at 9:43















cmath is a built-in and should import correctly with a standard CPython install. How did you install python 3.6?
– Matt Messersmith
Nov 9 at 16:37




cmath is a built-in and should import correctly with a standard CPython install. How did you install python 3.6?
– Matt Messersmith
Nov 9 at 16:37












It has been already installed with Ubuntu.
– Vladyslav Moisieienkov
Nov 9 at 16:39




It has been already installed with Ubuntu.
– Vladyslav Moisieienkov
Nov 9 at 16:39












Oh. Have you tried reinstalling it? You can either do that using apt-get, or alternatively just use Anaconda. I'd highly recommend Anaconda, it has a lot of nice additionally features that are nice if you're going to be doing a lot of Python development.
– Matt Messersmith
Nov 9 at 16:41




Oh. Have you tried reinstalling it? You can either do that using apt-get, or alternatively just use Anaconda. I'd highly recommend Anaconda, it has a lot of nice additionally features that are nice if you're going to be doing a lot of Python development.
– Matt Messersmith
Nov 9 at 16:41












I have fixed it. I have just reinstalled Python to version 3.6.6 and everything works. Thanks for helping.
– Vladyslav Moisieienkov
Nov 10 at 9:43




I have fixed it. I have just reinstalled Python to version 3.6.6 and everything works. Thanks for helping.
– Vladyslav Moisieienkov
Nov 10 at 9:43












1 Answer
1






active

oldest

votes

















up vote
0
down vote



accepted










I have just reinstalled Python version to 3.6.6 (using apt-get) and everything is working fine.






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',
    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%2f53229683%2fpython-3-6-module-cmath-is-not-found%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








    up vote
    0
    down vote



    accepted










    I have just reinstalled Python version to 3.6.6 (using apt-get) and everything is working fine.






    share|improve this answer
























      up vote
      0
      down vote



      accepted










      I have just reinstalled Python version to 3.6.6 (using apt-get) and everything is working fine.






      share|improve this answer






















        up vote
        0
        down vote



        accepted







        up vote
        0
        down vote



        accepted






        I have just reinstalled Python version to 3.6.6 (using apt-get) and everything is working fine.






        share|improve this answer












        I have just reinstalled Python version to 3.6.6 (using apt-get) and everything is working fine.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 10 at 19:03









        Vladyslav Moisieienkov

        331210




        331210



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53229683%2fpython-3-6-module-cmath-is-not-found%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







            這個網誌中的熱門文章

            How to read a connectionString WITH PROVIDER in .NET Core?

            Node.js Script on GitHub Pages or Amazon S3

            Museum of Modern and Contemporary Art of Trento and Rovereto