python 3.7 on Ubuntu 16.04












1















I have tried to install python 3.7 on my ubuntu 16.04 via this link. It is
Installing it without any error and it returns :



which python3.7
/usr/local/bin/python3.7


Also I have other python versions (3.5 and 2.7), when I run :



which python
/usr/bin/python


but I can not import numpy in 3.7 :



python3.7
Python 3.7.2 (default, Feb 19 2019, 13:25:43)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'numpy'
>>>


I have tried to install numpy :



python-numpy is already installed at the requested version (1:1.11.0-1ubuntu1)


Furthermore, I don't have this issue in 3.5 :



python3.5
Python 3.5.2 (default, Nov 12 2018, 13:43:14)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>>


Can someone tell me what is wrong here ?!!! and how could I fix this?










share|improve this question



























    1















    I have tried to install python 3.7 on my ubuntu 16.04 via this link. It is
    Installing it without any error and it returns :



    which python3.7
    /usr/local/bin/python3.7


    Also I have other python versions (3.5 and 2.7), when I run :



    which python
    /usr/bin/python


    but I can not import numpy in 3.7 :



    python3.7
    Python 3.7.2 (default, Feb 19 2019, 13:25:43)
    [GCC 5.4.0 20160609] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import numpy
    Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    ModuleNotFoundError: No module named 'numpy'
    >>>


    I have tried to install numpy :



    python-numpy is already installed at the requested version (1:1.11.0-1ubuntu1)


    Furthermore, I don't have this issue in 3.5 :



    python3.5
    Python 3.5.2 (default, Nov 12 2018, 13:43:14)
    [GCC 5.4.0 20160609] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import numpy
    >>>


    Can someone tell me what is wrong here ?!!! and how could I fix this?










    share|improve this question

























      1












      1








      1


      1






      I have tried to install python 3.7 on my ubuntu 16.04 via this link. It is
      Installing it without any error and it returns :



      which python3.7
      /usr/local/bin/python3.7


      Also I have other python versions (3.5 and 2.7), when I run :



      which python
      /usr/bin/python


      but I can not import numpy in 3.7 :



      python3.7
      Python 3.7.2 (default, Feb 19 2019, 13:25:43)
      [GCC 5.4.0 20160609] on linux
      Type "help", "copyright", "credits" or "license" for more information.
      >>> import numpy
      Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      ModuleNotFoundError: No module named 'numpy'
      >>>


      I have tried to install numpy :



      python-numpy is already installed at the requested version (1:1.11.0-1ubuntu1)


      Furthermore, I don't have this issue in 3.5 :



      python3.5
      Python 3.5.2 (default, Nov 12 2018, 13:43:14)
      [GCC 5.4.0 20160609] on linux
      Type "help", "copyright", "credits" or "license" for more information.
      >>> import numpy
      >>>


      Can someone tell me what is wrong here ?!!! and how could I fix this?










      share|improve this question














      I have tried to install python 3.7 on my ubuntu 16.04 via this link. It is
      Installing it without any error and it returns :



      which python3.7
      /usr/local/bin/python3.7


      Also I have other python versions (3.5 and 2.7), when I run :



      which python
      /usr/bin/python


      but I can not import numpy in 3.7 :



      python3.7
      Python 3.7.2 (default, Feb 19 2019, 13:25:43)
      [GCC 5.4.0 20160609] on linux
      Type "help", "copyright", "credits" or "license" for more information.
      >>> import numpy
      Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      ModuleNotFoundError: No module named 'numpy'
      >>>


      I have tried to install numpy :



      python-numpy is already installed at the requested version (1:1.11.0-1ubuntu1)


      Furthermore, I don't have this issue in 3.5 :



      python3.5
      Python 3.5.2 (default, Nov 12 2018, 13:43:14)
      [GCC 5.4.0 20160609] on linux
      Type "help", "copyright", "credits" or "license" for more information.
      >>> import numpy
      >>>


      Can someone tell me what is wrong here ?!!! and how could I fix this?







      16.04 server python pip numpy






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 19 at 12:47









      user9112767user9112767

      1083




      1083






















          1 Answer
          1






          active

          oldest

          votes


















          2














          Python 3.7 installed from source in Ubuntu 16.04 cannot make use of the numpy version from the Ubuntu package system.



          You should be able to install it via pip3.7:



          pip3.7 install numpy


          See also this answer on ServerFault.






          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            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%2faskubuntu.com%2fquestions%2f1119514%2fpython-3-7-on-ubuntu-16-04%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









            2














            Python 3.7 installed from source in Ubuntu 16.04 cannot make use of the numpy version from the Ubuntu package system.



            You should be able to install it via pip3.7:



            pip3.7 install numpy


            See also this answer on ServerFault.






            share|improve this answer




























              2














              Python 3.7 installed from source in Ubuntu 16.04 cannot make use of the numpy version from the Ubuntu package system.



              You should be able to install it via pip3.7:



              pip3.7 install numpy


              See also this answer on ServerFault.






              share|improve this answer


























                2












                2








                2







                Python 3.7 installed from source in Ubuntu 16.04 cannot make use of the numpy version from the Ubuntu package system.



                You should be able to install it via pip3.7:



                pip3.7 install numpy


                See also this answer on ServerFault.






                share|improve this answer













                Python 3.7 installed from source in Ubuntu 16.04 cannot make use of the numpy version from the Ubuntu package system.



                You should be able to install it via pip3.7:



                pip3.7 install numpy


                See also this answer on ServerFault.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Feb 19 at 12:54









                RoVoRoVo

                7,9481943




                7,9481943






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • 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%2faskubuntu.com%2fquestions%2f1119514%2fpython-3-7-on-ubuntu-16-04%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

                    How to reconfigure Docker Trusted Registry 2.x.x to use CEPH FS mount instead of NFS and other traditional...

                    is 'sed' thread safe

                    How to make a Squid Proxy server?