New to running Python in virtual environments, messing with Django, and can't activate a virtual environment.
Spent the last 4 hrs trying to activate a virtual env (venv) on local terminal/VS Code with no luck.
Avoided "sudo pip install virtualenv" as I was trying to avoid installing as root and having different directory path, etc.
"pip install virtualenv" output:
Collecting virtualenv
Using cached virtualenv-20.0.31-py2.py3-none-any.whl (4.9 MB)
Requirement already satisfied: six<2,>=1.9.0 in /Users/garrettpinto/Library/Python/3.8/lib/python/site-packages (from virtualenv) (1.15.0)
Requirement already satisfied: appdirs<2,>=1.4.3 in /Users/garrettpinto/Library/Python/3.8/lib/python/site-packages (from virtualenv) (1.4.4)
Requirement already satisfied: filelock<4,>=3.0.0 in /Users/garrettpinto/Library/Python/3.8/lib/python/site-packages (from virtualenv) (3.0.12)
Requirement already satisfied: distlib<1,>=0.3.1 in /Users/garrettpinto/Library/Python/3.8/lib/python/site-packages (from virtualenv) (0.3.1)
Installing collected packages: virtualenv
Successfully installed virtualenv-20.0.31
"virtualenv venv" output:
created virtual environment CPython3.8.5.final.0-64 in 416ms
creator CPython3Posix(dest=/Users/garrettpinto/Desktop/rp-portfolio/distribution/venv, clear=False, global=False)
seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/Users/garrettpinto/Library/Application Support/virtualenv)
added seed packages: pip==20.2.2, setuptools==49.6.0, wheel==0.35.1
activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
"source venv/bin/activate" returns nothing
"./venv/bin/activate" output:
zsh: permission denied: ./venv/bin/activate
"sudo ./venv/bin/activate" output:
sudo: ./venv/bin/activate: command not found
Thoughts?