The scripts xxx are installed in '/home/zhou/.local/bin' which is not on PATH. Consider adding this directory to PATH
问题描述
由于我之前使用的别人的anaconda进行初始化,所以安装到自己目录下的包不能正常识别。
pip安装好包以后弹出以上警告。
使用包的时候报错command not found
解决方法
编辑.bashrc文件:vim ~/.bashrc
在最后面添加export PATH="/home/jyzhou/.local/bin:$PATH"(报错的那个路径,要带引号)
重新运行.bashrc文件:source ~/.bashrc
注意这只是在自己的用户下加入了路径,不要瞎改别人用户的.bashrc文件。

浙公网安备 33010602011771号