I'm building a Python project requiring Django. I have created a project directory and virtual environment using virtualenv. But I can't install django using PIP and I have to use easy_install in order to install it into the virtual environment.
Note - I only have this problem with Django. I am able to successfully install other packages into the virtual environment using PIP without issues.
I'm running the following sequence...
cd projectfolder
virtualenv venv
venv\Scripts\activate
pip install django
And I get the following error message:
Could not install packages due to an EnvironmentError: [WinError 5] Access
is denied: 'C:\\Users\\xxxx\\AppData\\Local\\Temp\\pip-unpack-
kc0_p8wh\\Django-2.1-py3-none-any.whl'
Consider using the `--user` option or check the permissions.
Again - if I run the same block of code, but end it with:
easy_install django
Then the package installs fine.
Any thoughts?