I was trying to install pipenv and creating virtual environment on my linux machine. but pipenv seems to doesn't work. First It said command not found then I updated PATH and now it says permission denied.
Here are some info related to python , pip and pipenv
>>> python3 --version
Python 3.10.5
>>> pip install pipenv
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: pipenv in ./.local/lib/python3.10/site-packages (2022.7.24)
Requirement already satisfied: pip>=22.0.4 in /usr/lib/python3.10/site-packages (from pipenv) (22.2)
Requirement already satisfied: certifi in /usr/lib/python3.10/site-packages (from pipenv) (2022.6.15)
Requirement already satisfied: setuptools>=36.2.1 in /usr/lib/python3.10/site-packages (from pipenv) (61.3.1)
Requirement already satisfied: virtualenv-clone>=0.2.5 in ./.local/lib/python3.10/site-packages (from pipenv) (0.5.7)
Requirement already satisfied: virtualenv in ./.local/lib/python3.10/site-packages (from pipenv) (20.16.2)
Requirement already satisfied: distlib<1,>=0.3.1 in /usr/lib/python3.10/site-packages (from virtualenv->pipenv) (0.3.5)
Requirement already satisfied: filelock<4,>=3.2 in ./.local/lib/python3.10/site-packages (from virtualenv->pipenv) (3.7.1)
Requirement already satisfied: platformdirs<3,>=2 in /usr/lib/python3.10/site-packages (from virtualenv->pipenv) (2.5.1)
>>> pipenv --venv
zsh: permission denied: pipenv
>>> sudo pipenv --venv
sudo: pipenv: command not found
>>> whereis python3
python3: /usr/bin/python3 /usr/share/man/man1/python3.1.gz
>>> which python
/usr/bin/python
Here is my PATH variable defined in .zshrc
export PATH="$HOME/.local/lib/python3.10/site-packages:$PATH"
Here is the screenshot of all available Python interpreter in my system