import error: 'No module named' *does* exist

前端 未结 11 1675
星月不相逢
星月不相逢 2020-11-29 04:30

I am getting this stack trace when I start pyramid pserve:

% python $(which pserve) ../etc/development.ini
Traceback         


        
11条回答
  •  死守一世寂寞
    2020-11-29 04:54

    I set the PYTHONPATH to '.' and that solved it for me.

    export PYTHONPATH='.'
    

    For a one-liner you could as easily do:

    PYTHONPATH='.' your_python_script
    

    These commands are expected to be run in a terminal

提交回复
热议问题