All binary packages installed for python3.5 (for example numpy
or simplejson
) are not compatible with python3.6 (they are not abi compatible). As such, you can't upgrade / downgrade a virtualenv to a different version of python.
Your best bet would be to create a new virtualenv based on the packages installed in the original virtualenv. You can get close by doing the following
edge/bin/pip freeze > reqs.txt
virtualenv edge2 -p python3.6
edge2/bin/pip install -r reqs.txt
Note that virtualenvs generally aren't movable, so if you want it to exist at edge
you'll probably want the following procedure instead
edge/bin/pip freeze > reqs.txt
mv edge edge_old
virtualenv edge -p python3.6
edge/bin/pip install -r reqs.txt
# optionally: rm -rf edge_old