Vous êtes sur la page 1sur 4

Microsoft Windows [Version 10.0.17763.

316]
(c) 2018 Microsoft Corporation. All rights reserved.

C:\Users\Imat>python
Python 3.7.2 (tags/v3.7.2:9a3ffc0492, Dec 23 2018, 22:20:52) [MSC v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> exit
Use exit() or Ctrl-Z plus Return to exit
>>> exit()

C:\Users\Imat>pip --version
pip 18.1 from c:\users\imat\appdata\local\programs\python\python37-32\lib\site-packages\pip
(python 3.7)

C:\Users\Imat>pip install virtualenv


Collecting virtualenv
Downloading
https://files.pythonhosted.org/packages/33/5d/314c760d4204f64e4a968275182b7751bd5c324909475
7b39ba987dcfb5a/virtualenv-16.4.3-py2.py3-none-any.whl (2.0MB)
100% |████████████████████████████████| 2.0MB 883kB/s
Installing collected packages: virtualenv
Successfully installed virtualenv-16.4.3
You are using pip version 18.1, however version 19.0.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

C:\Users\Imat>pip install -U pip


Collecting pip
Downloading
https://files.pythonhosted.org/packages/d8/f3/413bab4ff08e1fc4828dfc59996d721917df8e8583ea853
85d51125dceff/pip-19.0.3-py2.py3-none-any.whl (1.4MB)
100% |████████████████████████████████| 1.4MB 2.5MB/s
Installing collected packages: pip
Found existing installation: pip 18.1
Uninstalling pip-18.1:
Successfully uninstalled pip-18.1
Could not install packages due to an EnvironmentError: [WinError 5] Access is denied:
'C:\\Users\\Imat\\AppData\\Local\\Temp\\pip-uninstall-
qsulq3vy\\users\\imat\\appdata\\local\\programs\\python\\python37-32\\scripts\\pip.exe'
Consider using the `--user` option or check the permissions.

C:\Users\Imat>pip --version
pip 19.0.3 from c:\users\imat\appdata\local\programs\python\python37-32\lib\site-packages\pip
(python 3.7)

C:\Users\Imat>virtualenv -v
You must provide a DEST_DIR
Usage: virtualenv [OPTIONS] DEST_DIR
Options:
--version show program's version number and exit
-h, --help show this help message and exit
-v, --verbose Increase verbosity.
-q, --quiet Decrease verbosity.
-p PYTHON_EXE, --python=PYTHON_EXE
The Python interpreter to use, e.g.,
--python=python3.5 will use the python3.5 interpreter
to create the new environment. The default is the
interpreter that virtualenv was installed with (c:\use
rs\imat\appdata\local\programs\python\python37-32\pyth
on.exe)
--clear Clear out the non-root install and start from scratch.
--no-site-packages DEPRECATED. Retained only for backward compatibility.
Not having access to global site-packages is now the
default behavior.
--system-site-packages
Give the virtual environment access to the global
site-packages.
--always-copy Always copy files rather than symlinking.
--relocatable Make an EXISTING virtualenv environment relocatable.
This fixes up scripts and makes all .pth files
relative.
--no-setuptools Do not install setuptools in the new virtualenv.
--no-pip Do not install pip in the new virtualenv.
--no-wheel Do not install wheel in the new virtualenv.
--extra-search-dir=DIR
Directory to look for setuptools/pip distributions in.
This option can be used multiple times.
--download Download pre-installed packages from PyPI.
--no-download, --never-download
Do not download pre-installed packages from PyPI.
--prompt=PROMPT Provides an alternative prompt prefix for this
environment.
--setuptools DEPRECATED. Retained only for backward compatibility.
This option has no effect.
--distribute DEPRECATED. Retained only for backward compatibility.
This option has no effect.
--unzip-setuptools DEPRECATED. Retained only for backward compatibility.
This option has no effect.

C:\Users\Imat>virtualenv -V
Usage: virtualenv [OPTIONS] DEST_DIR

virtualenv: error: no such option: -V

C:\Users\Imat>virtualenv --version
16.4.3

C:\Users\Imat>D:

D:\>cd PYTHON

D:\PYTHON>virtualenv djangoenv
Using base prefix 'c:\\users\\imat\\appdata\\local\\programs\\python\\python37-32'
New python executable in D:\PYTHON\djangoenv\Scripts\python.exe
Installing setuptools, pip, wheel...
done.

D:\PYTHON>dir
Volume in drive D is New Volume
Volume Serial Number is 9C37-4537

Directory of D:\PYTHON

03/02/2019 01:45 PM <DIR> .


03/02/2019 01:45 PM <DIR> ..
03/02/2019 01:45 PM <DIR> djangoenv
0 File(s) 0 bytes
3 Dir(s) 54,449,729,536 bytes free

D:\PYTHON>.\djangoenv\Scripts\activate

(djangoenv) D:\PYTHON>pip list


Package Version
---------- -------
pip 19.0.3
setuptools 40.8.0
wheel 0.33.1

(djangoenv) D:\PYTHON>pip install django


Collecting django
Downloading
https://files.pythonhosted.org/packages/c7/87/fbd666c4f87591ae25b7bb374298e8629816e87193c409
9d3608ef11fab9/Django-2.1.7-py3-none-any.whl (7.3MB)
100% |████████████████████████████████| 7.3MB 994kB/s
Collecting pytz (from django)
Downloading
https://files.pythonhosted.org/packages/61/28/1d3920e4d1d50b19bc5d24398a7cd85cc7b9a75a49057
0d5a30c57622d34/pytz-2018.9-py2.py3-none-any.whl (510kB)
100% |████████████████████████████████| 512kB 2.5MB/s
Installing collected packages: pytz, django
Successfully installed django-2.1.7 pytz-2018.9

(djangoenv) D:\PYTHON>django-admin startproject test_project


(djangoenv) D:\PYTHON>dir
Volume in drive D is New Volume
Volume Serial Number is 9C37-4537

Directory of D:\PYTHON

03/02/2019 01:51 PM <DIR> .


03/02/2019 01:51 PM <DIR> ..
03/02/2019 01:45 PM <DIR> djangoenv
03/02/2019 01:51 PM <DIR> test_project
0 File(s) 0 bytes
4 Dir(s) 54,408,232,960 bytes free

(djangoenv) D:\PYTHON>cd test_project

(djangoenv) D:\PYTHON\test_project>code .

(djangoenv) D:\PYTHON\test_project>

Vous aimerez peut-être aussi