ModuleNotFoundError: No module named 'scipy.special._ufuncs'












0














I already installed scipy on Python3.6:



sudo apt-get install python3-scipy
pip3 install scipy


But, it does not work with this error.:



ModuleNotFoundError: No module named 'scipy.special._ufuncs'


How can I do?



Thanks very much for your help.










share|improve this question



























    0














    I already installed scipy on Python3.6:



    sudo apt-get install python3-scipy
    pip3 install scipy


    But, it does not work with this error.:



    ModuleNotFoundError: No module named 'scipy.special._ufuncs'


    How can I do?



    Thanks very much for your help.










    share|improve this question

























      0












      0








      0







      I already installed scipy on Python3.6:



      sudo apt-get install python3-scipy
      pip3 install scipy


      But, it does not work with this error.:



      ModuleNotFoundError: No module named 'scipy.special._ufuncs'


      How can I do?



      Thanks very much for your help.










      share|improve this question













      I already installed scipy on Python3.6:



      sudo apt-get install python3-scipy
      pip3 install scipy


      But, it does not work with this error.:



      ModuleNotFoundError: No module named 'scipy.special._ufuncs'


      How can I do?



      Thanks very much for your help.







      python python-3.x scipy






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 12 '18 at 3:05









      hayeon

      64




      64
























          2 Answers
          2






          active

          oldest

          votes


















          0














          In general, don't use sudo pip.
          Best use a virtualenv, and install everything into it.
          What you see is a sign of a broken install, best reinstall from scratch --- or activate a virtualenv.






          share|improve this answer





























            -1














            The ufuncs (aka Universal Functions) is part of the NumPy framework. When working with SciPy, it is necessary to install NumPy first as it's a dependency. You are getting this ModuleNotFoundError is likely due to the unavailability of NumPy package.



            Before you try anything, list the currently installed packages:



            pip3 list



            If NumPy isn't installed then try installing it:



            pip3 install numpy



            Edit:



            It seems that you had tried install scipy using ubuntu package installer. That's why your scipy version is 0.17. Sometimes it is possible that some ubuntu packages are outdated. Therefore, it's better to use the official package managers, like PyPI in case of Python.



            First uninstall the scipy installed by the package manager:



            sudo apt-get purge python3-scipy



            When uninstalled successfully, reinstall it using PyPI:



            pip3 install scipy



            This will install the latest version (1.1.0) from python package index.



            If all goes well, you should be able to run your code without any errors.






            share|improve this answer























            • I used pip3 list. Numpy 1.15.1 is already installed. And I attempted pip3 install --upgrade scipy But, this phrase appears. Collecting scipy Using cached files.pythonhosted.org/packages/a8/0b/… Requirement already satisfied, skipping upgrade: numpy>=1.8.2 in /usr/local/lib/python3.6/dist-packages (from scipy) (1.15.1) Installing collected packages: scipy Found existing installation: scipy 0.17.0
              – hayeon
              Nov 12 '18 at 14:04












            • Cannot uninstall 'scipy'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall. You are using pip version 18.0, however version 18.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command.
              – hayeon
              Nov 12 '18 at 14:08












            • It is probably a pip issue. Try reinstalling scipy instead, using pip3 install --ignore-installed scipy
              – Dhruv Joshi
              Nov 13 '18 at 4:21










            • Also your scipy installation is too old, and I see where it is coming from. I'll edit the answer to incorporate the changes.
              – Dhruv Joshi
              Nov 13 '18 at 4:39










            • The comment about ufuncs is wrong, sorry. The message is about a part of scipy.special package, which also ships several ufuncs.
              – ev-br
              Nov 13 '18 at 8:44











            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%2f53255471%2fmodulenotfounderror-no-module-named-scipy-special-ufuncs%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














            In general, don't use sudo pip.
            Best use a virtualenv, and install everything into it.
            What you see is a sign of a broken install, best reinstall from scratch --- or activate a virtualenv.






            share|improve this answer


























              0














              In general, don't use sudo pip.
              Best use a virtualenv, and install everything into it.
              What you see is a sign of a broken install, best reinstall from scratch --- or activate a virtualenv.






              share|improve this answer
























                0












                0








                0






                In general, don't use sudo pip.
                Best use a virtualenv, and install everything into it.
                What you see is a sign of a broken install, best reinstall from scratch --- or activate a virtualenv.






                share|improve this answer












                In general, don't use sudo pip.
                Best use a virtualenv, and install everything into it.
                What you see is a sign of a broken install, best reinstall from scratch --- or activate a virtualenv.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 13 '18 at 8:43









                ev-br

                14.6k34166




                14.6k34166

























                    -1














                    The ufuncs (aka Universal Functions) is part of the NumPy framework. When working with SciPy, it is necessary to install NumPy first as it's a dependency. You are getting this ModuleNotFoundError is likely due to the unavailability of NumPy package.



                    Before you try anything, list the currently installed packages:



                    pip3 list



                    If NumPy isn't installed then try installing it:



                    pip3 install numpy



                    Edit:



                    It seems that you had tried install scipy using ubuntu package installer. That's why your scipy version is 0.17. Sometimes it is possible that some ubuntu packages are outdated. Therefore, it's better to use the official package managers, like PyPI in case of Python.



                    First uninstall the scipy installed by the package manager:



                    sudo apt-get purge python3-scipy



                    When uninstalled successfully, reinstall it using PyPI:



                    pip3 install scipy



                    This will install the latest version (1.1.0) from python package index.



                    If all goes well, you should be able to run your code without any errors.






                    share|improve this answer























                    • I used pip3 list. Numpy 1.15.1 is already installed. And I attempted pip3 install --upgrade scipy But, this phrase appears. Collecting scipy Using cached files.pythonhosted.org/packages/a8/0b/… Requirement already satisfied, skipping upgrade: numpy>=1.8.2 in /usr/local/lib/python3.6/dist-packages (from scipy) (1.15.1) Installing collected packages: scipy Found existing installation: scipy 0.17.0
                      – hayeon
                      Nov 12 '18 at 14:04












                    • Cannot uninstall 'scipy'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall. You are using pip version 18.0, however version 18.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command.
                      – hayeon
                      Nov 12 '18 at 14:08












                    • It is probably a pip issue. Try reinstalling scipy instead, using pip3 install --ignore-installed scipy
                      – Dhruv Joshi
                      Nov 13 '18 at 4:21










                    • Also your scipy installation is too old, and I see where it is coming from. I'll edit the answer to incorporate the changes.
                      – Dhruv Joshi
                      Nov 13 '18 at 4:39










                    • The comment about ufuncs is wrong, sorry. The message is about a part of scipy.special package, which also ships several ufuncs.
                      – ev-br
                      Nov 13 '18 at 8:44
















                    -1














                    The ufuncs (aka Universal Functions) is part of the NumPy framework. When working with SciPy, it is necessary to install NumPy first as it's a dependency. You are getting this ModuleNotFoundError is likely due to the unavailability of NumPy package.



                    Before you try anything, list the currently installed packages:



                    pip3 list



                    If NumPy isn't installed then try installing it:



                    pip3 install numpy



                    Edit:



                    It seems that you had tried install scipy using ubuntu package installer. That's why your scipy version is 0.17. Sometimes it is possible that some ubuntu packages are outdated. Therefore, it's better to use the official package managers, like PyPI in case of Python.



                    First uninstall the scipy installed by the package manager:



                    sudo apt-get purge python3-scipy



                    When uninstalled successfully, reinstall it using PyPI:



                    pip3 install scipy



                    This will install the latest version (1.1.0) from python package index.



                    If all goes well, you should be able to run your code without any errors.






                    share|improve this answer























                    • I used pip3 list. Numpy 1.15.1 is already installed. And I attempted pip3 install --upgrade scipy But, this phrase appears. Collecting scipy Using cached files.pythonhosted.org/packages/a8/0b/… Requirement already satisfied, skipping upgrade: numpy>=1.8.2 in /usr/local/lib/python3.6/dist-packages (from scipy) (1.15.1) Installing collected packages: scipy Found existing installation: scipy 0.17.0
                      – hayeon
                      Nov 12 '18 at 14:04












                    • Cannot uninstall 'scipy'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall. You are using pip version 18.0, however version 18.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command.
                      – hayeon
                      Nov 12 '18 at 14:08












                    • It is probably a pip issue. Try reinstalling scipy instead, using pip3 install --ignore-installed scipy
                      – Dhruv Joshi
                      Nov 13 '18 at 4:21










                    • Also your scipy installation is too old, and I see where it is coming from. I'll edit the answer to incorporate the changes.
                      – Dhruv Joshi
                      Nov 13 '18 at 4:39










                    • The comment about ufuncs is wrong, sorry. The message is about a part of scipy.special package, which also ships several ufuncs.
                      – ev-br
                      Nov 13 '18 at 8:44














                    -1












                    -1








                    -1






                    The ufuncs (aka Universal Functions) is part of the NumPy framework. When working with SciPy, it is necessary to install NumPy first as it's a dependency. You are getting this ModuleNotFoundError is likely due to the unavailability of NumPy package.



                    Before you try anything, list the currently installed packages:



                    pip3 list



                    If NumPy isn't installed then try installing it:



                    pip3 install numpy



                    Edit:



                    It seems that you had tried install scipy using ubuntu package installer. That's why your scipy version is 0.17. Sometimes it is possible that some ubuntu packages are outdated. Therefore, it's better to use the official package managers, like PyPI in case of Python.



                    First uninstall the scipy installed by the package manager:



                    sudo apt-get purge python3-scipy



                    When uninstalled successfully, reinstall it using PyPI:



                    pip3 install scipy



                    This will install the latest version (1.1.0) from python package index.



                    If all goes well, you should be able to run your code without any errors.






                    share|improve this answer














                    The ufuncs (aka Universal Functions) is part of the NumPy framework. When working with SciPy, it is necessary to install NumPy first as it's a dependency. You are getting this ModuleNotFoundError is likely due to the unavailability of NumPy package.



                    Before you try anything, list the currently installed packages:



                    pip3 list



                    If NumPy isn't installed then try installing it:



                    pip3 install numpy



                    Edit:



                    It seems that you had tried install scipy using ubuntu package installer. That's why your scipy version is 0.17. Sometimes it is possible that some ubuntu packages are outdated. Therefore, it's better to use the official package managers, like PyPI in case of Python.



                    First uninstall the scipy installed by the package manager:



                    sudo apt-get purge python3-scipy



                    When uninstalled successfully, reinstall it using PyPI:



                    pip3 install scipy



                    This will install the latest version (1.1.0) from python package index.



                    If all goes well, you should be able to run your code without any errors.







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Nov 13 '18 at 4:49

























                    answered Nov 12 '18 at 4:48









                    Dhruv Joshi

                    6415




                    6415












                    • I used pip3 list. Numpy 1.15.1 is already installed. And I attempted pip3 install --upgrade scipy But, this phrase appears. Collecting scipy Using cached files.pythonhosted.org/packages/a8/0b/… Requirement already satisfied, skipping upgrade: numpy>=1.8.2 in /usr/local/lib/python3.6/dist-packages (from scipy) (1.15.1) Installing collected packages: scipy Found existing installation: scipy 0.17.0
                      – hayeon
                      Nov 12 '18 at 14:04












                    • Cannot uninstall 'scipy'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall. You are using pip version 18.0, however version 18.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command.
                      – hayeon
                      Nov 12 '18 at 14:08












                    • It is probably a pip issue. Try reinstalling scipy instead, using pip3 install --ignore-installed scipy
                      – Dhruv Joshi
                      Nov 13 '18 at 4:21










                    • Also your scipy installation is too old, and I see where it is coming from. I'll edit the answer to incorporate the changes.
                      – Dhruv Joshi
                      Nov 13 '18 at 4:39










                    • The comment about ufuncs is wrong, sorry. The message is about a part of scipy.special package, which also ships several ufuncs.
                      – ev-br
                      Nov 13 '18 at 8:44


















                    • I used pip3 list. Numpy 1.15.1 is already installed. And I attempted pip3 install --upgrade scipy But, this phrase appears. Collecting scipy Using cached files.pythonhosted.org/packages/a8/0b/… Requirement already satisfied, skipping upgrade: numpy>=1.8.2 in /usr/local/lib/python3.6/dist-packages (from scipy) (1.15.1) Installing collected packages: scipy Found existing installation: scipy 0.17.0
                      – hayeon
                      Nov 12 '18 at 14:04












                    • Cannot uninstall 'scipy'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall. You are using pip version 18.0, however version 18.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command.
                      – hayeon
                      Nov 12 '18 at 14:08












                    • It is probably a pip issue. Try reinstalling scipy instead, using pip3 install --ignore-installed scipy
                      – Dhruv Joshi
                      Nov 13 '18 at 4:21










                    • Also your scipy installation is too old, and I see where it is coming from. I'll edit the answer to incorporate the changes.
                      – Dhruv Joshi
                      Nov 13 '18 at 4:39










                    • The comment about ufuncs is wrong, sorry. The message is about a part of scipy.special package, which also ships several ufuncs.
                      – ev-br
                      Nov 13 '18 at 8:44
















                    I used pip3 list. Numpy 1.15.1 is already installed. And I attempted pip3 install --upgrade scipy But, this phrase appears. Collecting scipy Using cached files.pythonhosted.org/packages/a8/0b/… Requirement already satisfied, skipping upgrade: numpy>=1.8.2 in /usr/local/lib/python3.6/dist-packages (from scipy) (1.15.1) Installing collected packages: scipy Found existing installation: scipy 0.17.0
                    – hayeon
                    Nov 12 '18 at 14:04






                    I used pip3 list. Numpy 1.15.1 is already installed. And I attempted pip3 install --upgrade scipy But, this phrase appears. Collecting scipy Using cached files.pythonhosted.org/packages/a8/0b/… Requirement already satisfied, skipping upgrade: numpy>=1.8.2 in /usr/local/lib/python3.6/dist-packages (from scipy) (1.15.1) Installing collected packages: scipy Found existing installation: scipy 0.17.0
                    – hayeon
                    Nov 12 '18 at 14:04














                    Cannot uninstall 'scipy'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall. You are using pip version 18.0, however version 18.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command.
                    – hayeon
                    Nov 12 '18 at 14:08






                    Cannot uninstall 'scipy'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall. You are using pip version 18.0, however version 18.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command.
                    – hayeon
                    Nov 12 '18 at 14:08














                    It is probably a pip issue. Try reinstalling scipy instead, using pip3 install --ignore-installed scipy
                    – Dhruv Joshi
                    Nov 13 '18 at 4:21




                    It is probably a pip issue. Try reinstalling scipy instead, using pip3 install --ignore-installed scipy
                    – Dhruv Joshi
                    Nov 13 '18 at 4:21












                    Also your scipy installation is too old, and I see where it is coming from. I'll edit the answer to incorporate the changes.
                    – Dhruv Joshi
                    Nov 13 '18 at 4:39




                    Also your scipy installation is too old, and I see where it is coming from. I'll edit the answer to incorporate the changes.
                    – Dhruv Joshi
                    Nov 13 '18 at 4:39












                    The comment about ufuncs is wrong, sorry. The message is about a part of scipy.special package, which also ships several ufuncs.
                    – ev-br
                    Nov 13 '18 at 8:44




                    The comment about ufuncs is wrong, sorry. The message is about a part of scipy.special package, which also ships several ufuncs.
                    – ev-br
                    Nov 13 '18 at 8:44


















                    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.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • 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%2f53255471%2fmodulenotfounderror-no-module-named-scipy-special-ufuncs%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

                    Full-time equivalent

                    さくらももこ

                    13 indicted, 8 arrested in Calif. drug cartel investigation