Not able to install python packages inside a virtualenv.
. venv/bin/activatepip install pytestThe python package is installed into the virtualenv
(venv) gitpod /workspace/typed-cookie $ pip install pytest
ERROR: Can not perform a '--user' install. User site-packages are not visible in this virtualenv.
WARNING: You are using pip version 20.2.1; however, version 20.2.3 is available.
You should consider upgrading via the '/workspace/typed-cookie/venv/bin/python3 -m pip install --upgrade pip' command.
In Gitpod, the environment variable PIP_USER is set to yes. That's why it runs pip with the user flag --user which does not work in a virtualenv. As a workaround, you could run
$ export PIP_USER=false
and pip install ... in a virtualenv works again.
@tekumara please make sure to store the packages of your virtual envs under /workspace, in order to preserve them at workspace restart, or for prebuilds.
currently, only the /workspace location is backed up. this limitation will be removed in a future release.
Has this issue been resolved and can be closed?