It's not a big story, but I was addicted to it for about an hour, so I made a note as a memorandum. What I tried this time was when I got a request to debug a program using Mayavi, so when preparing the environment I was addicted to the need to install wxPython.
The environment used by pyenv can be switched. The environment this time is Anaconda-2.4.4.0.
I installed it by simply hitting the following command to install Mayavi.
python
conda install -c anaconda mayavi
First of all, I got Mayavi itself, but an error occurred in a module called Traits. The reason is that there are not enough modules. I had no choice but to look for the missing module and it was wxPython, so I installed it with the following command.
python
conda install -c anaconda wxpython
Well, does this work? When I thought about it, the following error message was displayed.
This program needs access to the screen. Please run with a Framework build of python, and only when you are logged in on the main display of your Mac.
Hmmm, the path is normal, and I can confirm that it is included in the conda list
, and what is this? I asked Google Sensei and looked at everyone's Q & A, but none of them came to a solution ...
I finally found the exchange in the Google group.
Here, the answer from Travis Oliphant is as follows.
Anaconda is not a Framework build of python. However, you should be able to still run the program using "pythonw" which runs python with the correct options to run the GUI.
pythonw simple.py
It should be on your PATH
Is that so. It seems that there is no such thing as'Framework build of python'on Anaconda.
So, if you want to move it, you need to run it with python w
.
And
python
pythonw main.py
When I moved it as, it worked properly (∩ ・ ∀ ・) ∩
Recommended Posts