I'm working on OSX and I'm trying to create a virtualenv with Python3, but I'm getting an error:
$ virtualenv --python python3 env
Running virtualenv with interpreter /Library/Frameworks/Python.framework/Versions/3.4/bin/python3
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/virtualenv.py", line 37, in <module>
import ConfigParser
ImportError: No module named 'ConfigParser'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/virtualenv.py", line 39, in <module>
import configparser as ConfigParser
File "/usr/local/lib/python2.7/site-packages/configparser.py", line 397
_KEYCRE = re.compile(ur"%\(([^)]+)\)s")
It looks like it's looking for ConfigParser
, which has been renamed configparser
. Is that right? What can I do?
I've tried to update virtualenv with pip install -U virtualenvwrapper
but it hasn't helped.