Bài viết
Kho tài liệu và bài viết được chia sẻ, đánh giá bởi cộng đồng
Nội dung bài viết
- C:\Users\SONY>pip --version
- C:\Users\SONY>pip install virtualenvwrapper-win
- C:\Users\SONY>python -m pip install --upgrade pip
- C:\Users\SONY>virtualenv test
- C:\Users\SONY>mkvirtualenv test
- (test) C:\Users\SONY>python mange.py runserver
- (test) C:\Users\SONY>pip install Django==3.2.5
- (test) C:\Users\SONY>cd PROJECTS
- (test) C:\Users\SONY>mkdir projects
- (test) C:\Users\SONY>cd projects
- (test) C:\Users\SONY\projects>django-admin startproject PHAMGIA
- (test) C:\Users\SONY\projects>cd PHAMGIA
- (test) C:\Users\SONY\projects\PHAMGIA>dir
- C:\Users\SONY\projects\PHAMGIA
- (test) C:\Users\SONY\projects\PHAMGIA>python manage.py runserver
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\SONY>python --version
Python 3.8.2
C:\Users\SONY>pip --version
pip 19.2.3 from c:\program files\python38\lib\site-packages\pip (python 3.8)
C:\Users\SONY>pip install virtualenvwrapper-win
Collecting virtualenvwrapper-win
Downloading https://files.pythonhosted.org/packages/d3/07/7599a80e13e58e0bb561ed03c55a2a84872b64ae50cbc40d9bf7ebabbdd9/virtualenvwrapper-win-1.2.6.tar.gz
Collecting virtualenv (from virtualenvwrapper-win)
Using cached https://files.pythonhosted.org/packages/03/08/f819421002e85a71d58368f7bffbe0b1921325e0e8ca7857cb5fb0e1f7c1/virtualenv-20.4.7-py2.py3-none-any.whl
Collecting distlib<1,>=0.3.1 (from virtualenv->virtualenvwrapper-win)
Using cached https://files.pythonhosted.org/packages/87/26/f6a23dd3e578132cf924e0dd5d4e055af0cd4ab43e2a9f10b7568bfb39d9/distlib-0.3.2-py2.py3-none-any.whl
Collecting appdirs<2,>=1.4.3 (from virtualenv->virtualenvwrapper-win)
Using cached https://files.pythonhosted.org/packages/3b/00/2344469e2084fb287c2e0b57b72910309874c3245463acd6cf5e3db69324/appdirs-1.4.4-py2.py3-none-any.whl
Collecting filelock<4,>=3.0.0 (from virtualenv->virtualenvwrapper-win)
Using cached https://files.pythonhosted.org/packages/93/83/71a2ee6158bb9f39a90c0dea1637f81d5eef866e188e1971a1b1ab01a35a/filelock-3.0.12-py3-none-any.whl
Collecting six<2,>=1.9.0 (from virtualenv->virtualenvwrapper-win)
Using cached https://files.pythonhosted.org/packages/d9/5a/e7c31adbe875f2abbb91bd84cf2dc52d792b5a01506781dbcf25c91daf11/six-1.16.0-py2.py3-none-any.whl
Installing collected packages: distlib, appdirs, filelock, six, virtualenv, virtualenvwrapper-win
Running setup.py install for virtualenvwrapper-win ... done
Successfully installed appdirs-1.4.4 distlib-0.3.2 filelock-3.0.12 six-1.16.0 virtualenv-20.4.7 virtualenvwrapper-win-1.2.6
WARNING: You are using pip version 19.2.3, however version 21.1.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
C:\Users\SONY>python -m pip install --upgrade pip
Collecting pip
Using cached https://files.pythonhosted.org/packages/47/ca/f0d790b6e18b3a6f3bd5e80c2ee4edbb5807286c21cdd0862ca933f751dd/pip-21.1.3-py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 19.2.3
Uninstalling pip-19.2.3:
Successfully uninstalled pip-19.2.3
Successfully installed pip-21.1.3
C:\Users\SONY>virtualenv test
created virtual environment CPython3.8.2.final.0-64 in 4731ms
creator CPython3Windows(dest=C:\Users\SONY\test, clear=False, no_vcs_ignore=False, global=False)
seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=C:\Users\SONY\AppData\Local\pypa\virtualenv)
added seed packages: pip==21.1.2, setuptools==57.0.0, wheel==0.36.2
activators BashActivator,BatchActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
C:\Users\SONY>mkvirtualenv test
C:\Users\SONY\Envs is not a directory, creating
created virtual environment CPython3.8.2.final.0-64 in 2895ms
creator CPython3Windows(dest=C:\Users\SONY\Envs\test, clear=False, no_vcs_ignore=False, global=False)
seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=C:\Users\SONY\AppData\Local\pypa\virtualenv)
added seed packages: pip==21.1.2, setuptools==57.0.0, wheel==0.36.2
activators BashActivator,BatchActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
(test) C:\Users\SONY>python mange.py runserver
c:\program files\python38\python.exe: can't open file 'mange.py': [Errno 2] No such file or directory
(test) C:\Users\SONY>pip install Django==3.2.5
Django-3.2.5 asgiref-3.4.1 pytz-2021.1 sqlparse-0.4.1
WARNING: You areCollecting Django==3.2.5
Using cached Django-3.2.5-py3-none-any.whl (7.9 MB)
Collecting asgiref<4,>=3.3.2
Using cached asgiref-3.4.1-py3-none-any.whl (25 kB)
Collecting pytz
Using cached pytz-2021.1-py2.py3-none-any.whl (510 kB)
Collecting sqlparse>=0.2.2
Using cached sqlparse-0.4.1-py3-none-any.whl (42 kB)
Installing collected packages: sqlparse, pytz, asgiref, Django
Successfully installed using pip version 21.1.2; however, version 21.1.3 is available.
You should consider upgrading via the 'C:\Users\SONY\Envs\test\Scripts\python.exe -m pip install --upgrade pip' command.
(test) C:\Users\SONY>cd PROJECTS
The system cannot find the path specified.
(test) C:\Users\SONY>cd projects
The system cannot find the path specified.
(test) C:\Users\SONY>mkdir projects
(test) C:\Users\SONY>cd projects
(test) C:\Users\SONY\projects>django-admin startproject PHAMGIA
(test) C:\Users\SONY\projects>cd PHAMGIA
(test) C:\Users\SONY\projects\PHAMGIA>dir
Volume in drive C has no label.
Volume Serial Number is 7EC1-047E
C:\Users\SONY\projects\PHAMGIA
07/11/2021 05:51 PM <DIR> .
07/11/2021 05:51 PM <DIR> ..
07/11/2021 05:51 PM 685 manage.py
07/11/2021 05:51 PM <DIR> PHAMGIA
1 File(s) 685 bytes
3 Dir(s) 1,323,503,616 bytes free
(test) C:\Users\SONY\projects\PHAMGIA>python manage.py runserver
Watching for file changes with StatReloader
Performing system checks...
System check identified no issues (0 silenced).
You have 18 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.
Run 'python manage.py migrate' to apply them.
July 11, 2021 - 18:02:56
Django version 3.2.5, using settings 'PHAMGIA.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
Nội dung bài viết
- C:\Users\SONY>pip --version
- C:\Users\SONY>pip install virtualenvwrapper-win
- C:\Users\SONY>python -m pip install --upgrade pip
- C:\Users\SONY>virtualenv test
- C:\Users\SONY>mkvirtualenv test
- (test) C:\Users\SONY>python mange.py runserver
- (test) C:\Users\SONY>pip install Django==3.2.5
- (test) C:\Users\SONY>cd PROJECTS
- (test) C:\Users\SONY>mkdir projects
- (test) C:\Users\SONY>cd projects
- (test) C:\Users\SONY\projects>django-admin startproject PHAMGIA
- (test) C:\Users\SONY\projects>cd PHAMGIA
- (test) C:\Users\SONY\projects\PHAMGIA>dir
- C:\Users\SONY\projects\PHAMGIA
- (test) C:\Users\SONY\projects\PHAMGIA>python manage.py runserver
Bài viết hay quá, cảm ơn bạn đã chia sẻ :(