install asitop

install asitop 但是找不到

pip3 install asitop

安装成功了,但是显示

1
2
3
Installing collected packages: asitop

WARNING: The script asitop is installed in '/Users/PeppaZhu/Library/Python/3.9/bin' which is not on PATH.

然后无法运行asitop which whereis都找不到

需要添加环境变量

1
echo -e 'export PATH="$PATH:/Users/PeppaZhu/Library/Python/3.9/bin"' >> $HOME/.bash_profile

然后就可以了

然后下次打开咋又不行了呢

需要source ~/.bash_profile 使得环境变量生效