linux的pip3 install之后出现not foud command解决PATH-泓源视野

linux的pip3 install之后出现not foud command解决PATH

Installing collected packages: numpy
WARNING: The scripts f2py, f2py3 and f2py3.8 are installed in '/root/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

解决方法很简单
首先echo $PATH
然后添加软件安装的PATH路径
export PATH=/usr/local/bin
或 export PATH=/usr/local/bin:$PATH

linux的pip3 install之后出现not foud command解决PATH插图

kali2020默认PATH

echo $PATH

返回 /usr/bin:/bin

ubuntu20默认PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

添加PATH 使用命令 export PATH=$PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

本文由 泓源视野 作者:admin 发表,其版权均为 泓源视野 所有,文章内容系作者个人观点,不代表 泓源视野 对观点赞同或支持。如需转载,请注明文章来源。
5

发表评论

Protected with IP Blacklist CloudIP Blacklist Cloud
您是第8236052 位访客, 您的IP是:[172.69.63.56]