Trying to learn python/django but cant even install django when i do virtualenv .
or use the pip
command, neither of them work on mac. python -V is 2.7.16, python3 -V is 3.8.2.
pip command not found, virtualenv command not found on mac
Trying to learn python/django but cant even install django when i do virtualenv .
or use the pip
command, neither of them work on mac. python -V is 2.7.16, python3 -V is 3.8.2.
pip command not found, virtualenv command not found on mac
I think you haven't install virtual environment:
pip install virtualenv
You can activate your venv, give a try to apt install of pip3 if not found and then use it to install django.
source ./venv/bin/activate
sudo apt install python3-pip
pip3 install django
If your venv is properly configured you should get that venv path like this (here venv = djongo):
djongo/pyvenv.cfg
djongo/bin:
activate activate.ps1 chardetect easy_install ndg_httpclient pip-3.7 python sqlformat wheel-3.7
activate.csh activate_this.py django-admin easy_install3 pip pip3.7 python3 wheel
activate.fish activate.xsh django-admin.py easy_install-3.7 pip3 __pycache__ python3.7 wheel3
djongo/lib:
python3.7