Membuat virtual environment python

Preview:

Citation preview

Membuat Virtual Environment

Python 2.7 OpenERP

For Windows Users

Point of View

• Install Python 2.7

• Install Setup Tools

• Install Package VirtualEnv

• Create New Environment

• Aktifkan Virtual Environment

Install Python 2.7

• Download python dari https://www.python.org/downloads/release/python-2710/

• Jalankan installasi seperti biasa

Install SetupTools

• Buka Command prompt

• Arahkan ke directory “c:\python27”

• Jalankan command :“C:\Python27>python.exe https://bootstrap.pypa.io/ez_setup.py”

Install Package VirtualEnv

• Buka directory “C:\python27\scripts” menggunakan command prompt

• Jalankan perintah :“C:\Python27\Scripts>easy_install.exe virtualenv”

Create New Environtment

• Buka directory “C:\python27\scripts” menggunakan command prompt

• Jalankan perintah :“C:\Python27\Scripts>virtualenv.exe e:\virtualenv_path”

• Contoh :“C:\Python27\Scripts>virtualenv.exe e:\virtualenvsample”

Aktifkan Virtual Environment

• Buka directory “e:\virtualenvsample\scripts” menggunakan command prompt

• Jalankan perintah “e:\virtualenvsample\scripts >activate ”

• Maka Virtual Environment akan aktif.

That’s AllThank you

Recommended