python michael poeltl © 2011

virtualenv

INSTALL

da ich kein easy_install (noch nicht) habe, installiere ich auf die herkömmliche Art.
(mit easy_install soll ddas so gehen:
easy_install virtualenv)

Download from:
http://pypi.python.org/pypi/virtualenv

?> md5sum virtualenv-1.6.4.tar.gz
1072b66d53c24e019a8f1304ac9d9fc5  virtualenv-1.6.4.tar.gz
?> echo 1072b66d53c24e019a8f1304ac9d9fc5 #from download-site
1072b66d53c24e019a8f1304ac9d9fc5
?> su -c 'python3 setup.py install'
Password:
/usr/local/lib/python3.2/distutils/dist.py:259: UserWarning: Unknown distribution option: 'test_suite'
  warnings.warn(msg)
/usr/local/lib/python3.2/distutils/dist.py:259: UserWarning: Unknown distribution option: 'tests_require'
  warnings.warn(msg)
running install
running build
running build_py
creating build
creating build/lib
copying virtualenv.py -> build/lib
creating build/lib/virtualenv_support
copying virtualenv_support/__init__.py -> build/lib/virtualenv_support
copying virtualenv_support/distribute-0.6.19.tar.gz -> build/lib/virtualenv_support
copying virtualenv_support/pip-1.0.2.tar.gz -> build/lib/virtualenv_support
running build_scripts
creating build/scripts-3.2
copying and adjusting scripts/virtualenv -> build/scripts-3.2
changing mode of build/scripts-3.2/virtualenv from 644 to 755
running install_lib
copying build/lib/virtualenv.py -> /usr/local/lib/python3.2/site-packages
creating /usr/local/lib/python3.2/site-packages/virtualenv_support
copying build/lib/virtualenv_support/__init__.py -> /usr/local/lib/python3.2/site-packages/virtualenv_support
copying build/lib/virtualenv_support/distribute-0.6.19.tar.gz -> /usr/local/lib/python3.2/site-packages/virtualenv_support
copying build/lib/virtualenv_support/pip-1.0.2.tar.gz -> /usr/local/lib/python3.2/site-packages/virtualenv_support
writing byte-compilation script '/tmp/tmpukwveh.py'
/usr/local/bin/python3 /tmp/tmpukwveh.py
removing /tmp/tmpukwveh.py
running install_scripts
copying build/scripts-3.2/virtualenv -> /usr/local/bin
changing mode of /usr/local/bin/virtualenv to 755
running install_egg_info
Writing /usr/local/lib/python3.2/site-packages/virtualenv-1.6.4-py3.2.egg-info
?> python3
Python 3.2.1 (default, Jul 20 2011, 10:13:32)
[GCC 4.2.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import virtualenv
>>>

Die Installation hat funktioniert.
Jetzt wollen wir die erste Umgebung bauen:

$> virtualenv mikepy
New python executable in mikepy/bin/python3
Also creating executable in mikepy/bin/python
Installing distribute.................................................
......................................................................
......................................................................
......................................................................
......................................................................
......done.
Installing pip...............done.
$>

Jetzt kannst Dich im Verzeichnis mikepy (oder wie immer Deines heißt) umsehen.


Hier geht es zum Seitenanfang und da geht es zur python Startseite