Pip installation warning message

I pip-installed pyqt5 and got the following warning:

WARNING: The scripts pylupdate5, pyrcc5 and pyuic5 are installed in '/home/zeno/.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.

I googled and found this answer, but I don’t know how to do it… where am I supposed to add the line PATH=$PATH:/home/[MYUSER]/.local/bin;export $PATH to create the symlink?

Thanks!

.bashrc normally.

2 Likes

That’s what I thought, but where? This is my .bashrc:

# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
	. /etc/bashrc
fi

# User specific environment
if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]
then
    PATH="$HOME/.local/bin:$HOME/bin:$PATH"
fi
export PATH

# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=

# User specific aliases and functions

echo $PATH
In a terminal

it should already be there.

1 Like
$~ echo $PATH
$~ /usr/lib64/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/home/zeno/bin

Are you using bash?

Can you see if there is anything related to path in .bash_profile or a .profile file?

Thanks

1 Like

There is nothing in the .bashrc_profile:

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
	. ~/.bashrc
fi

# User specific environment and startup programs

echo $SHELL

$~ echo $SHELL
$~ /usr/bin/zsh

I’m using zsh, as you can see :blush:

.zshenv

Seems like I don’t have that one…

You can check if it’s been set in .zshrc, .zprofile or .profile?

The way I’ve set my path in .zshenv
typset -U path
path+=("$HOME/.local/bin" “$HOME/bin”)
export PATH

1 Like

I don’t have these and my .zshrc does not contain what you wrote under.

from your home directory

tee .zshenv << EOF
typset -U path
path+=("\$HOME/.local/bin")
EOF

That should create the zshenv file. Log out/in afterwards and verify.

2 Likes

Done. I have opened and checked that the file contains the parameters.

Is $PATH correct ?

1 Like

So it seems! Thanks a lot :smiley: :smiley:

$~ echo $PATH
$~ /usr/lib64/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/home/zeno/.local/bin:/home/zeno/bin

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.