Forums

Problems building a python3.4 virtualenv

Hey all, I'm trying to build a python3.4 virtualenv, and I'm getting this:

17:28 ~ $ mkvirtualenv --python=python3.4 mypy34 --system-site-packages
Running virtualenv with interpreter /usr/bin/python3.4
Using base prefix '/usr'
New python executable in mypy34/bin/python3.4
Also creating executable in mypy34/bin/python
Failed to import the site module
Traceback (most recent call last):
File "/home/isdlabs/.virtualenvs/mypy34/lib/python3.4/site.py", line 67, in <module>
import os
File "/home/isdlabs/.virtualenvs/mypy34/lib/python3.4/os.py", line 614, in <module>
from _collections_abc import MutableMapping
ImportError: No module named '_collections_abc'
ERROR: The executable mypy34/bin/python3.4 is not functioning
ERROR: It thinks sys.prefix is '/home/isdlabs/.virtualenvs' (should be '/home/isdlabs/.virtualenvs/mypy34')
ERROR: virtualenv is not compatible with this system or executable

Any thoughts? Thanks in advance,

-james

Hi there -- we're having some problems with virtualenvs for Python 3.4, and it looks like it'll be tricky to fix. Python 3.4 does have its own built-in virtualenv equivalent, though -- there are some hints on how to use it here.

Thanks Giles. More FYI than anything. I'm trying to build a dev environment at home which mirrors what I've got on PA. I'll install 3.3 on my box .

-james