I installed virtual environment using (pip3 install virtualenv
). it was installed but when I check. This comes up.
faculty@Facultys-MacBook-Pro ~ % virtualenv --version
zsh: command not found: virtualenv
I installed virtual environment using (pip3 install virtualenv
). it was installed but when I check. This comes up.
faculty@Facultys-MacBook-Pro ~ % virtualenv --version
zsh: command not found: virtualenv
I believe you might not have you python libs in your path. which is why it is not found by zsh.
I believe you can go with:
python3 -m virtualenv <name of the virtual env>
This should hopefully work and create your virtualenv
in the current folder you are in.
Some smarter people already went through this issue have a look pip installs packages successfully, but executables not found from command line
You need to make sure the following thing:
virtualenv has been only installed in the folder you used to run the pip commmand. There should be a new directory called venv
now. Try opening the terminal inside the venv folder bin
and type the command again.