Hello!
I am migrating an old Python2.7/Django website from Webfation to Opalstack.
I am following this guide:
https://community.opalstack.com/d/125-wf-to-opalstack-django-and-postgres-where-to-begin
But when I want to create a Python 2.7 virtualenv with this command:
virtualenv -p /bin/python2.7 env
I get an error:
Traceback (most recent call last):
File "/home/bota/.local/bin/virtualenv", line 7, in <module>
from virtualenv.__main__ import run_with_catch
File "/home/bota/.local/lib/python2.7/site-packages/virtualenv/__init__.py", line 3, in <module>
from .run import cli_run, session_via_cli
File "/home/bota/.local/lib/python2.7/site-packages/virtualenv/run/__init__.py", line 11, in <module>
from .plugin.activators import ActivationSelector
File "/home/bota/.local/lib/python2.7/site-packages/virtualenv/run/plugin/activators.py", line 6, in <module>
from .base import ComponentBuilder
File "/home/bota/.local/lib/python2.7/site-packages/virtualenv/run/plugin/base.py", line 9, in <module>
from importlib_metadata import entry_points
File "/home/bota/.local/lib/python2.7/site-packages/importlib_metadata/__init__.py", line 9, in <module>
import zipp
ImportError: No module named zipp
Has anyone advice on how to solve this?
According to this page:
https://github.com/pypa/virtualenv/issues/1630
I need to upgrade to newer pip (>=9) but with pip2.7 install --user -U pip
I always get pip 8.1.2...
Any help is greatly appreciated!
Anton