QA/Execution/Web Testing/Automation/Virtual Environments: Difference between revisions

Line 17: Line 17:


== Installation on Windows ==
== Installation on Windows ==
<i>Exception: use 32-bit version of the setuptools even if your operating system is 64-bit otherwise it fails to find the Python installation.</i>
<ol>
    <li>Install the 32-bit version of [http://pypi.python.org/pypi/setuptools#files SetupTools] using the provided <b>.exe installer</b>.</li>
    <li>Download the last pip version from [http://pypi.python.org/pypi/pip#downloads here] and uncompress it.</li>
    <li>In your <b><i>cmd prompt</i></b>, go to the uncompressed pip directory and run <b><i>python setup.py install</i></b></li>
    <li>Add <b><i>C:\Python26\Scripts</i></b> to your System Variables path.</li>
    <li>Now you can use the command pip install package on Win.</li>
</ol>
=== Virtualenvwrapper Installation and Usage ===
<ol>
    <li>Run <b><i>pip install virtualenvwrapper-win</i></b> from your <b><i>cmd prompt</i></b>.</li>
    <li>Set an environment variable <b><i>WORKON_HOME = C:\Python27\Scripts</i></b></li>
    <li>You can now create virualenvs by running <b><i>mkvirtualenv <name of the environment</i><</b></li>
</ol>
Confirmed users
1,867

edits