pipx在隔离环境中安装并且运行Python应用

文档 https://github.com/pipxproject/pipx

Install and Run Python Applications in Isolated Environments
在隔离环境中安装并且运行Python应用

安装

$ brew install pipx
$ pipx ensurepath

$ vim ~/.bash_profile

export PATH=/Users/hina/.local/bin:$PATH

$ source ~/.bash_profile

$ pipx ensurepath

使用示例

$ pipx install pycowsay
$ pipx install --python python3.6 pycowsay

$ pipx list

$ pycowsay hi

  --
< hi >
  --
   \   ^__^
    \  (oo)\_______
       (__)\       )\/\
           ||----w |
           ||     ||
发布了1488 篇原创文章 · 获赞 454 · 访问量 158万+

猜你喜欢

转载自blog.csdn.net/mouday/article/details/105381885