C:\Users\Christian>pip install wxPython
Collecting wxPython
Using cached https://files.pythonhosted.org/packages/bd/6e/ce469293cf6f7e391c11ec31161a9d6d0f2acffd05da2fb27bb3b3d81d1e/wxPython-4.0.4-cp37-cp37m-win_amd64.whl
Requirement already satisfied: six in c:\users\christian\appdata\local\programs\python\python37\lib\site-packages (from wxPython) (1.12.0)
Requirement already satisfied: Pillow in c:\users\christian\appdata\local\programs\python\python37\lib\site-packages (from wxPython) (6.0.0)
Installing collected packages: wxPython
Successfully installed wxPython-4.0.4
import wx
app = wx.App()
frame = wx.Frame(parent=None, title='Hello World')
frame.Show()
app.MainLoop()
Traceback (most recent call last):
File "C:\Users\Christian\Desktop\The Summoning\Test.py", line 1, in <module>
import wx
ModuleNotFoundError: No module named 'wx'
"cmd": ["C:\\Users\\Christian\\AppData\\Local\\Programs\\Python\\Python37\\python.exe", "-u", "$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python"
C:\Users\Christian\AppData\Local\Programs\Python\Python37\Scripts
@mike
When I try runnning the script in Python 3.7 Shell for some reason it cant find the module.
Traceback (most recent call last):
File "C:\Users\Christian\Desktop\The Summoning\Test.py", line 1, in <module>
import wx
ModuleNotFoundError: No module named 'wx'
@ Robin Dunn Im pretty sure it is the same python.Sublime build file:
"cmd": ["C:\\Users\\Christian\\AppData\\Local\\Programs\\Python\\Python37\\python.exe", "-u", "$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python"Environment Path variable:
C:\Users\Christian\AppData\Local\Programs\Python\Python37\Scripts
C:\Windows\system32>C:\Users\Christian\AppData\Local\Programs\Python\Python37\python.exe -m pip install wxPython
Requirement already satisfied: wxPython in c:\users\christian\appdata\local\programs\python\python37\lib\site-packages (4.0.4)
Requirement already satisfied: six in c:\users\christian\appdata\local\programs\python\python37\lib\site-packages (from wxPython) (1.12.0)
Requirement already satisfied: Pillow in c:\users\christian\appdata\local\programs\python\python37\lib\site-packages (from wxPython) (6.0.0)
C:\Windows\system32>C:\Users\Christian\AppData\Local\Programs\Python\Python37\python.exe -x "import wx; print(wx.version())"
C:\Users\Christian\AppData\Local\Programs\Python\Python37\python.exe: can't open file 'import wx; print(wx.version())': [Errno 2] No such file or directory
.......python.exe -x "....."
.......python.exe -c "......"
C:\Windows\system32>C:\Users\Christian\AppData\Local\Programs\Python\Python37\python.exe -m pip install wxPython
Requirement already satisfied: wxPython in c:\users\christian\appdata\local\programs\python\python37\lib\site-packages (4.0.4)
Requirement already satisfied: Pillow in c:\users\christian\appdata\local\programs\python\python37\lib\site-packages (from wxPython) (6.0.0)
Requirement already satisfied: six in c:\users\christian\appdata\local\programs\python\python37\lib\site-packages (from wxPython) (1.12.0)
C:\Windows\system32>C:\Users\Christian\AppData\Local\Programs\Python\Python37\python.exe -c "import wx; print(wx.version())"
4.0.4 msw (phoenix) wxWidgets 3.0.5
I have uninstalled 3.7 and tried using wxPython with 3.6 however I still havnt been able to get a frame to show.
--
You received this message because you are subscribed to the Google Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxPython-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wxPython-dev/72297872-7247-4670-bada-8ea8c24c2790%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
What do you get when running "python" from a terminal ?
You should get something like this but with Python 3.7.x
Python 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 18:41:36) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
Le 19/05/2019 à 04:55, Christian O. a écrit :
I have uninstalled 3.7 and tried using wxPython with 3.6 however I still havnt been able to get a frame to show.--
You received this message because you are subscribed to the Google Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxPyth...@googlegroups.com.
I have uninstalled 3.7 and tried using wxPython with 3.6 however I still havnt been able to get a frame to show.
pip
install wxPython
", you pip is run in a Python
3.7 environment (see your first message).To unsubscribe from this group and stop receiving emails from it, send an email to wxPython-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wxPython-dev/42034103-4017-410c-a958-ca8221f9bd85%40googlegroups.com.
{
"cmd": ["C:\\Python\\Python 3.6.8\\python.exe", "-u", "$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python"
}
import wx
app = wx.App()
frame = wx.Frame(None)
frame.Show()
app.MainLoop()
"shell": "true"
{
"shell": "true",
"cmd": ["python", "-u", "$file"],