i tried to install django, the installation was succeeded but i couldn't create new project. so i uninstalled and try to install again and this message showed up(didn't see it the first time):
WARNING: The script django-admin.exe is installed in 'C:\Users\ASUS\AppData\Roaming\Python\Python39\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.
so i look up online and people said used sys.path.append to fix but when i used it:
sys.path.append('C:\Users\ASUS\AppData\Roaming\Python\Python39\Scripts')
following message appeared
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape. please help, i'm still new to Python and Django.
\are used to escape stuff in strings in python, hence you need to escape them too:sys.path.append('C:\\Users\\ASUS\\AppData\\Roaming\\Python\\Python39\\Scripts'), note instead of using that just set your environment variables and add it to the path therer"C:\Users..."– however, modifyingsys.pathin the first place is a bad idea.