Skip to content

Instantly share code, notes, and snippets.

@konryd
Created December 20, 2010 16:01
Show Gist options
  • Save konryd/748554 to your computer and use it in GitHub Desktop.
Save konryd/748554 to your computer and use it in GitHub Desktop.
gunvor:~ konryd$ cd /tmp
gunvor:tmp konryd$ mkdir someenv
gunvor:tmp konryd$ cd someenv
gunvor:someenv konryd$ virtualenv .
New python executable in ./bin/python
Installing setuptools............done.
gunvor:someenv konryd$ bin/pip install mock
Downloading/unpacking mock
Downloading mock-0.7.0b4.zip (310Kb): 310Kb downloaded
Running setup.py egg_info for package mock
Installing collected packages: mock
Running setup.py install for mock
Successfully installed mock
Cleaning up...
gunvor:someenv konryd$ python -c "import mock"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named mock
gunvor:someenv konryd$ bin/python -c "import mock" # wersja Pythona wygenerowana w tym środowisku
gunvor:someenv konryd$ echo $?
0
gunvor:someenv konryd$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment