wxpython error on setup - ModuleNotFound: no module named 'wx'Calling a function of a module by using its name (a string)How to import a module given the full path?Python error “ImportError: No module named”Getting the class name of an instance?Import error: No module name urllib2EnableAlternateRowColours Example would help a lotDerived panel classes in wxpythonwxpython - Erase background erases non-background componentsRaspberry Pie 3 Why do I get an error when installing wxpython?ModuleNotFoundError: No module named 'pyvjoy'

Python π = 1 + (1/2) + (1/3) + (1/4) - (1/5) + (1/6) + (1/7) + (1/8) + (1/9) - (1/10) ...1748 Euler

Can the additional attack from a Samurai's Rapid Strike have advantage?

Can birds evolve without trees?

What is my clock telling me to do?

How to derive trigonometric Cartesian equation from parametric

How to innovate in OR

How to structure presentation to avoid getting questions that will be answered later in the presentation?

Why is “deal 6 damage” a legit phrase?

For attacks with ranged weapons, is the attacker's Dexterity bonus added to the damage roll?

Should students have access to past exams or an exam bank?

What to expect in a jazz audition

Applications of pure mathematics in operations research

Change data format in QGIS field calculator using format_date

How does Asimov's second law deal with contradictory orders from different people?

If I buy and download a game through second Nintendo account do I own it on my main account too?

Oath of redemption: Does Emmissary of Peace reflect damage taken from Aura of the Guardian?

Is this popular optical illusion made of a grey-scale image with coloured lines?

"Will flex for food". What does this phrase mean?

The grades of the students in a class

Just how much information should you share with a former client?

Conflict between senior and junior members

How do I safety check that there is no light in Darkroom / Darkbag?

Has the US government provided details on plans to deal with AIDS and childhood cancer?

Is Norway in the Single Market?



wxpython error on setup - ModuleNotFound: no module named 'wx'


Calling a function of a module by using its name (a string)How to import a module given the full path?Python error “ImportError: No module named”Getting the class name of an instance?Import error: No module name urllib2EnableAlternateRowColours Example would help a lotDerived panel classes in wxpythonwxpython - Erase background erases non-background componentsRaspberry Pie 3 Why do I get an error when installing wxpython?ModuleNotFoundError: No module named 'pyvjoy'






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








1















I'm having some trouble getting wxpython working on my mac. Here is a link to a tutorial that I am using: https://realpython.com/python-gui-with-wxpython/#getting-started-with-wxpython



The error message I am receiving is on the import of wx:
|| receiving ModuleNotFoundError: No module named 'wx' ||



  • I have pip installed wxpython and pip3 installed wxpython just for good measure (sidenote: not sure of the difference, I'll google it)
    The package is properly shown in ||pip3 list|| terminal command.

I have also tried import wxpython as wx, in case that was an issue. No luck.



I have done some reading on the wxpython.org gitHub and readme, perhaps I missing some dependencies? Here is the prerequisites page:
https://github.com/wxWidgets/Phoenix/blob/master/README.rst#prerequisites



They mention some sort of a build and wheel here:
https://github.com/wxWidgets/Phoenix/blob/master/README.rst#id2



I consider myself a little more experienced than a beginner at this stuff, but I have never read or heard of such terms above. The most work I have had to do to import some non-standard library was pip3 install x.



import wx
app = wx.App()
frame = wx.Frame(parent=None, title='Hello World')
frame.Show()
app.MainLoop()


Expected result: a blank window with title "Hello World"
Actual result: error on line 1... ModuleNotFoundError: No module named 'wx'










share|improve this question






























    1















    I'm having some trouble getting wxpython working on my mac. Here is a link to a tutorial that I am using: https://realpython.com/python-gui-with-wxpython/#getting-started-with-wxpython



    The error message I am receiving is on the import of wx:
    || receiving ModuleNotFoundError: No module named 'wx' ||



    • I have pip installed wxpython and pip3 installed wxpython just for good measure (sidenote: not sure of the difference, I'll google it)
      The package is properly shown in ||pip3 list|| terminal command.

    I have also tried import wxpython as wx, in case that was an issue. No luck.



    I have done some reading on the wxpython.org gitHub and readme, perhaps I missing some dependencies? Here is the prerequisites page:
    https://github.com/wxWidgets/Phoenix/blob/master/README.rst#prerequisites



    They mention some sort of a build and wheel here:
    https://github.com/wxWidgets/Phoenix/blob/master/README.rst#id2



    I consider myself a little more experienced than a beginner at this stuff, but I have never read or heard of such terms above. The most work I have had to do to import some non-standard library was pip3 install x.



    import wx
    app = wx.App()
    frame = wx.Frame(parent=None, title='Hello World')
    frame.Show()
    app.MainLoop()


    Expected result: a blank window with title "Hello World"
    Actual result: error on line 1... ModuleNotFoundError: No module named 'wx'










    share|improve this question


























      1












      1








      1








      I'm having some trouble getting wxpython working on my mac. Here is a link to a tutorial that I am using: https://realpython.com/python-gui-with-wxpython/#getting-started-with-wxpython



      The error message I am receiving is on the import of wx:
      || receiving ModuleNotFoundError: No module named 'wx' ||



      • I have pip installed wxpython and pip3 installed wxpython just for good measure (sidenote: not sure of the difference, I'll google it)
        The package is properly shown in ||pip3 list|| terminal command.

      I have also tried import wxpython as wx, in case that was an issue. No luck.



      I have done some reading on the wxpython.org gitHub and readme, perhaps I missing some dependencies? Here is the prerequisites page:
      https://github.com/wxWidgets/Phoenix/blob/master/README.rst#prerequisites



      They mention some sort of a build and wheel here:
      https://github.com/wxWidgets/Phoenix/blob/master/README.rst#id2



      I consider myself a little more experienced than a beginner at this stuff, but I have never read or heard of such terms above. The most work I have had to do to import some non-standard library was pip3 install x.



      import wx
      app = wx.App()
      frame = wx.Frame(parent=None, title='Hello World')
      frame.Show()
      app.MainLoop()


      Expected result: a blank window with title "Hello World"
      Actual result: error on line 1... ModuleNotFoundError: No module named 'wx'










      share|improve this question














      I'm having some trouble getting wxpython working on my mac. Here is a link to a tutorial that I am using: https://realpython.com/python-gui-with-wxpython/#getting-started-with-wxpython



      The error message I am receiving is on the import of wx:
      || receiving ModuleNotFoundError: No module named 'wx' ||



      • I have pip installed wxpython and pip3 installed wxpython just for good measure (sidenote: not sure of the difference, I'll google it)
        The package is properly shown in ||pip3 list|| terminal command.

      I have also tried import wxpython as wx, in case that was an issue. No luck.



      I have done some reading on the wxpython.org gitHub and readme, perhaps I missing some dependencies? Here is the prerequisites page:
      https://github.com/wxWidgets/Phoenix/blob/master/README.rst#prerequisites



      They mention some sort of a build and wheel here:
      https://github.com/wxWidgets/Phoenix/blob/master/README.rst#id2



      I consider myself a little more experienced than a beginner at this stuff, but I have never read or heard of such terms above. The most work I have had to do to import some non-standard library was pip3 install x.



      import wx
      app = wx.App()
      frame = wx.Frame(parent=None, title='Hello World')
      frame.Show()
      app.MainLoop()


      Expected result: a blank window with title "Hello World"
      Actual result: error on line 1... ModuleNotFoundError: No module named 'wx'







      python python-3.x user-interface wxpython wxpython-phoenix






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 26 at 23:07









      Ru BaRu Ba

      82 bronze badges




      82 bronze badges

























          1 Answer
          1






          active

          oldest

          votes


















          0














          Uninstall using the same pip / pip3 tools, and then use this:



          $ python -m pip install wxpython


          The -m module syntax ensures that sys.path has the same value during installation as it will at runtime.



          If still no joy, then first figure out where the binary wheel got installed to:



          $ mdfind wx | egrep '/wx$'


          or



          $ find ~/miniconda3 ~ /usr / -name wx


          (Hit CTRL-C once found.)



          Then see if your path is searching in the right place:



          $ echo $PYTHONPATH
          $ which python
          $ python
          >>> import pprint
          >>> import sys
          >>> pprint.pprint(sys.path)
          ...
          >>> import wx
          >>>


          The path is controlled by an env var.
          Consider doing $ export PYTHONPATH=/some/dir before invoking the interpreter.






          share|improve this answer

























          • I appreciate the help! The reinstall using -m syntax worked like a charm. Any place you know where I can learn about those commands? I have seen them, just used them, and I'm not sure what they are called to google and learn more lol

            – Ru Ba
            Mar 27 at 1:22












          • Honestly, I don't really use pip, not if I can help it. I usually throw deps into an environment.yml file and then use The One Command: conda env update, cf docs.conda.io/en/latest (and yes, generally I do wind up with a - pip: section in that file).

            – J_H
            Mar 27 at 1:33











          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%2f55367462%2fwxpython-error-on-setup-modulenotfound-no-module-named-wx%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














          Uninstall using the same pip / pip3 tools, and then use this:



          $ python -m pip install wxpython


          The -m module syntax ensures that sys.path has the same value during installation as it will at runtime.



          If still no joy, then first figure out where the binary wheel got installed to:



          $ mdfind wx | egrep '/wx$'


          or



          $ find ~/miniconda3 ~ /usr / -name wx


          (Hit CTRL-C once found.)



          Then see if your path is searching in the right place:



          $ echo $PYTHONPATH
          $ which python
          $ python
          >>> import pprint
          >>> import sys
          >>> pprint.pprint(sys.path)
          ...
          >>> import wx
          >>>


          The path is controlled by an env var.
          Consider doing $ export PYTHONPATH=/some/dir before invoking the interpreter.






          share|improve this answer

























          • I appreciate the help! The reinstall using -m syntax worked like a charm. Any place you know where I can learn about those commands? I have seen them, just used them, and I'm not sure what they are called to google and learn more lol

            – Ru Ba
            Mar 27 at 1:22












          • Honestly, I don't really use pip, not if I can help it. I usually throw deps into an environment.yml file and then use The One Command: conda env update, cf docs.conda.io/en/latest (and yes, generally I do wind up with a - pip: section in that file).

            – J_H
            Mar 27 at 1:33
















          0














          Uninstall using the same pip / pip3 tools, and then use this:



          $ python -m pip install wxpython


          The -m module syntax ensures that sys.path has the same value during installation as it will at runtime.



          If still no joy, then first figure out where the binary wheel got installed to:



          $ mdfind wx | egrep '/wx$'


          or



          $ find ~/miniconda3 ~ /usr / -name wx


          (Hit CTRL-C once found.)



          Then see if your path is searching in the right place:



          $ echo $PYTHONPATH
          $ which python
          $ python
          >>> import pprint
          >>> import sys
          >>> pprint.pprint(sys.path)
          ...
          >>> import wx
          >>>


          The path is controlled by an env var.
          Consider doing $ export PYTHONPATH=/some/dir before invoking the interpreter.






          share|improve this answer

























          • I appreciate the help! The reinstall using -m syntax worked like a charm. Any place you know where I can learn about those commands? I have seen them, just used them, and I'm not sure what they are called to google and learn more lol

            – Ru Ba
            Mar 27 at 1:22












          • Honestly, I don't really use pip, not if I can help it. I usually throw deps into an environment.yml file and then use The One Command: conda env update, cf docs.conda.io/en/latest (and yes, generally I do wind up with a - pip: section in that file).

            – J_H
            Mar 27 at 1:33














          0












          0








          0







          Uninstall using the same pip / pip3 tools, and then use this:



          $ python -m pip install wxpython


          The -m module syntax ensures that sys.path has the same value during installation as it will at runtime.



          If still no joy, then first figure out where the binary wheel got installed to:



          $ mdfind wx | egrep '/wx$'


          or



          $ find ~/miniconda3 ~ /usr / -name wx


          (Hit CTRL-C once found.)



          Then see if your path is searching in the right place:



          $ echo $PYTHONPATH
          $ which python
          $ python
          >>> import pprint
          >>> import sys
          >>> pprint.pprint(sys.path)
          ...
          >>> import wx
          >>>


          The path is controlled by an env var.
          Consider doing $ export PYTHONPATH=/some/dir before invoking the interpreter.






          share|improve this answer













          Uninstall using the same pip / pip3 tools, and then use this:



          $ python -m pip install wxpython


          The -m module syntax ensures that sys.path has the same value during installation as it will at runtime.



          If still no joy, then first figure out where the binary wheel got installed to:



          $ mdfind wx | egrep '/wx$'


          or



          $ find ~/miniconda3 ~ /usr / -name wx


          (Hit CTRL-C once found.)



          Then see if your path is searching in the right place:



          $ echo $PYTHONPATH
          $ which python
          $ python
          >>> import pprint
          >>> import sys
          >>> pprint.pprint(sys.path)
          ...
          >>> import wx
          >>>


          The path is controlled by an env var.
          Consider doing $ export PYTHONPATH=/some/dir before invoking the interpreter.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 26 at 23:33









          J_HJ_H

          6,0891 gold badge9 silver badges24 bronze badges




          6,0891 gold badge9 silver badges24 bronze badges















          • I appreciate the help! The reinstall using -m syntax worked like a charm. Any place you know where I can learn about those commands? I have seen them, just used them, and I'm not sure what they are called to google and learn more lol

            – Ru Ba
            Mar 27 at 1:22












          • Honestly, I don't really use pip, not if I can help it. I usually throw deps into an environment.yml file and then use The One Command: conda env update, cf docs.conda.io/en/latest (and yes, generally I do wind up with a - pip: section in that file).

            – J_H
            Mar 27 at 1:33


















          • I appreciate the help! The reinstall using -m syntax worked like a charm. Any place you know where I can learn about those commands? I have seen them, just used them, and I'm not sure what they are called to google and learn more lol

            – Ru Ba
            Mar 27 at 1:22












          • Honestly, I don't really use pip, not if I can help it. I usually throw deps into an environment.yml file and then use The One Command: conda env update, cf docs.conda.io/en/latest (and yes, generally I do wind up with a - pip: section in that file).

            – J_H
            Mar 27 at 1:33

















          I appreciate the help! The reinstall using -m syntax worked like a charm. Any place you know where I can learn about those commands? I have seen them, just used them, and I'm not sure what they are called to google and learn more lol

          – Ru Ba
          Mar 27 at 1:22






          I appreciate the help! The reinstall using -m syntax worked like a charm. Any place you know where I can learn about those commands? I have seen them, just used them, and I'm not sure what they are called to google and learn more lol

          – Ru Ba
          Mar 27 at 1:22














          Honestly, I don't really use pip, not if I can help it. I usually throw deps into an environment.yml file and then use The One Command: conda env update, cf docs.conda.io/en/latest (and yes, generally I do wind up with a - pip: section in that file).

          – J_H
          Mar 27 at 1:33






          Honestly, I don't really use pip, not if I can help it. I usually throw deps into an environment.yml file and then use The One Command: conda env update, cf docs.conda.io/en/latest (and yes, generally I do wind up with a - pip: section in that file).

          – J_H
          Mar 27 at 1:33









          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%2f55367462%2fwxpython-error-on-setup-modulenotfound-no-module-named-wx%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

          SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

          용인 삼성생명 블루밍스 목차 통계 역대 감독 선수단 응원단 경기장 같이 보기 외부 링크 둘러보기 메뉴samsungblueminx.comeh선수 명단용인 삼성생명 블루밍스용인 삼성생명 블루밍스ehsamsungblueminx.comeheheheh

          155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해