Python console_scripts doesn't work when pip install --user

后端 未结 1 1227
陌清茗
陌清茗 2021-01-27 01:00

I wrapped my code into python package and now I want it to be also runnable from the command line (linux). So I added console_scripts tag to setup.py and all seems to be working

相关标签:
1条回答
  • 2021-01-27 01:25

    pip installs the scripts under ~/.local/bin. You need to add this to your PATH with:

    export PATH=~/.local/bin:$PATH
    
    0 讨论(0)
提交回复
热议问题