简体   繁体   中英

I tried to install django using pip install django, later i get error to upgrade pip, i done upgrade pip, but still got error as below i mentioned

enter image description here WARNING: The script sqlformat.exe is installed in 'C:\\Users\\Easwar Sai Prasad\\AppData\\Roaming\\Python\\Python38\\Scripts' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. WARNING: The script django-admin.exe is installed in 'C:\\Users\\Easwar Sai Prasad\\AppData\\Roaming\\Python\\Python38\\Scripts' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

From what I understand is you are using a Windows machine and are trying to install django, and it's dependencies in an environment.

You can do that but a much better way is to use Virtual Environments. With virtual environments you don't need to set any variables, you just have to activate your VEnv and install dependencies like normal pip3 install django

Follow this guide https://docs.python.org/3/tutorial/venv.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM