Python Virtual Environment Package Install Issue
Solution 1:
In most situations the best solution is to rely on the so-called "user site" location by running:
pip install --user package_name
If that doesn't work, you need the admin rights. So just run the cmd as an administrator.
Or better yet create a virtualenv and then install. Instructions can be found on: https://virtualenv.pypa.io/en/stable/installation/
Solution 2:
You didn't actually active your virtual-env, and your error information show as:
C:\Users\xxxx\AppData\Local\Temp\pip-unpack- kc0_p8wh\Django-2.1-py3-none-any.whl
Nothing about venv/xxx/path
, so you should active by.
FOR Linux
source venv\Scripts\activate
first. and then try install again.
FOR WIN
Thanks for @metatoaster remind at the comments below.
But it depends on where are you virtualenv
path.
C:\Venv\Scripts>activate
To make sure whether you are in virtual-env , just check whether you have a special subfix at the begin of command line. something like:
(my_venv)landpacks
Post a Comment for "Python Virtual Environment Package Install Issue"