Hi Robert:
    I followed your advice, and found my problem of not finding sfepy module was using the windows cmd instead of anaconda cmd. If I use anaconda cmd, the simple.py can be found. And the first problem(not finding module) was solved~
For the second problem of using Ipython console .What I use is the latest Anaconda 5.0.1, python 3.6 version,64bit. I can find the other terms except the "c = get_config()". And after I modified the "~/.ipython/profile_sfepy/ipython_config.py" accordingly, I tried the "ipython --profile=sfepy" in anaconda cmd. And it returns the error "no module named "wx".
And in spyder ipython console, when I typed "ipython --profile=sfepy". The error was "SyntaxError: can't assign to operator".I guess I shoud use another command in the spyder ipython console to set the sfepy profile.Do you know what is the command for setting the sfepy profile in spyder after modifying the "ipython_config.py" file?
The directory structure of the in-house built sfepy folder is different from the sfepy package folder installed from anaconda. As I want to play with the code, I both installed sfepy in anaconda and cloned the latest git repository and built the extension modules in place. Is that OK?
Many thanks to your answers and best wishes!
Yifan
 
2017-11-16
oilbox

发件人:Robert Cimrman <cimrman3@ntc.zcu.cz>
发送时间:2017-11-14 15:45
主题:[sfepy] Re: Errors in running the primer example and setting the ipython profile of sfepy
收件人:"sfepy"<sfepy@python.org>
抄送:
 
Hi Yifan, 
 
On 11/13/2017 04:17 PM, 董一帆 wrote: 
> Dear developer of sfepy: 
> My name is Yifan Dong.I installed sfepy using Anaconda3  on windows 7. And I tried to follow the guide in the primer to run the its2D_1.py test. But the error is No module named sfepy. How can I solve that?Do I need to add enviroment viriables? 
 
When using sfepy from anaconda, you need to use the "installed build" versions  
of commands found in the docs. Does sfepy-run command work (see [1])? If not,  
add C:\ProgramData\Anaconda3\Lib\site-packages\sfepy\script to PATH (the search  
path for executable files). 
 
[1] http://sfepy.org/doc-devel/installation.html#running-automated-test-suite 
 
> I also tried to run it using spyder with ipython console.But when I follow the instructions, it is told that can't find the text"get_config()".Do you know what is the problem? 
 
I guess your ipython is newer than the one used when writing the instructions.  
What is your version? Can you find the exec_lines list in ipython_config.py? 
 
> I know they are basic questions. But I am a newbie in python and sfepy and have tried for several days. So I have to ask for help. Do you have any suggestions on finding the answers of such basic qustions.I've read several books on python but am still confused in linking different python files. Because they are all talking about small programs and not big programs like sfepy. Python is different from matlab and c++ at linking files. 
 
No problem, feel free to ask! 
 
r. 
 
> Thanks! And best wishes! 
> Yifan 
> 2017-11-13 
>  
>  
> 董一帆 
>  
>  
>  
> _______________________________________________ 
> SfePy mailing list 
> sfepy@python.org 
> https://mail.python.org/mm3/mailman3/lists/sfepy.python.org/ 
>  
_______________________________________________ 
SfePy mailing list 
sfepy@python.org 
https://mail.python.org/mm3/mailman3/lists/sfepy.python.org/