H
H
Held69912021-09-28 19:21:47
Python
Held6991, 2021-09-28 19:21:47

How to fix Ubuntu virtualenv installation problem?

Hello, it's Ubuntu 16.04, Python 3.5.2.
I'm trying to install virtualenv sudo -H pip3 install virtualenvand the following error pops up:

Traceback (most recent call last):
File "/usr/local/bin/pip3", line 7, in
from pip._internal.cli.main import main
File "/usr/local/lib/python3.5/dist-packages /pip/_internal/cli/main.py", line 57
sys.stderr.write(f"ERROR: {exc}")
^
SyntaxError: invalid syntax

Before that I used this command:
sudo -H pip3 install --upgrade pip

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Kuts, 2021-09-28
@fox_12

Why did n't venv work ?
It seems to have appeared in version 3.3 ...

A
Alexander Karabanov, 2021-09-28
@karabanov

Use pythom -m venv envthis relic of virtualenv is not necessary to you.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question