- When i tried to CREATE the env folder by using this command
python -m venv .venv
, like you see in in the tutorial 6:25 | Python Virtual Environment and pip for Beginners, so to create the venv folder, it works BUT ✋ it DOESN'T CREATE the SCRIPTS folder that also comes within the .venv folder, 🟥 this script folder is important because it comes with some activation files
In the beginning i thought the problem had something to do with this warning i was getting every time i try to install something using PIP:
WARNING: The script virtualenv is installed in '/home/myComputer/.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.
1. 🔶 Open your shell configuration file (~/.bashrc for Bash or ~/.zshrc for Zsh)
in a text editor ubuntu terminal etc.... For example:
nano ~/.bashrc
export PATH="$HOME/.local/bin:$PATH"
source ~/.bashrc
This command reloads the shell configuration file and updates your current PATH.
To verify that ~/.local/bin
has been successfully added to your PATH, you can run:
echo $PATH