0

On Ubuntu 20.04.4 and python 3.8.10 my virtualenvwrapper installation is broken. When I try

mkvirtualenv  test

I get an error

ERROR: virtualenvwrapper could not find virtualenv in your path

for some reasons I am unable to install virtualenv anymore, as I use

python -m venv myvenv

to create a virtualenv.

Is there some workaround? Maybe create an alias? Anything else?

In other words: How to make virtualenvwrapper work without virtualenv installed? (I am not able to install virtualenv to begin with. So please do not suggest to install that, as it does not work anymore).

Alex
  • 1,115

1 Answers1

1

As mentioned in the comments, it's kind of tricky to get virtualenvwrapper installed without installing virtualenv; but by removing virtualenv selectively I was able to replicate your error. With virtualenv unavailable, this works to create virtual environments using python3 -mvenv instead of virtualenv.

VIRTUALENVWRAPPER_VIRTUALENV='python3' VIRTUALENVWRAPPER_VIRTUALENV_ARGS='-mvenv' mkvirtualenv a-funny-name
roadmr
  • 34,802