I have a virtual environment that I installed some time ago. When I activate it and run python I’m told that the version number is
Python 2.7.2+ (default, Oct 4 2011, 20:03:08)
What does the plus after the version number mean?
And could that somehow explain why the function os.urandom is not defined, even when (according to the documentation) it has been there since version 2.4.
>>> from os import urandom
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name urandom
From the Python FAQ:
And for your second question, the inability to import urandom in a virtualenv is a known problem.
This answer to a similar question should be helpful.