Gitpod: Cannot install packages in virtualenv

Created on 12 Apr 2019  路  6Comments  路  Source: gitpod-io/gitpod

$ virtualenv -p python3 venv
Running virtualenv with interpreter /home/gitpod/.pyenv/shims/python3
Using base prefix '/home/gitpod/.pyenv/versions/3.7.2'
New python executable in /workspace/flacon/venv/bin/python3
Also creating executable in /workspace/flacon/venv/bin/python
Installing setuptools, pip, wheel...
done.
$ source venv/bin/activate
$ pip install black
Can not perform a '--user' install. User site-packages are not visible in this virtualenv.
question

Most helpful comment

@iksaif, please use export PIP_USER=no together with venv.

It's enabled by default in order to install everything below /workspace directory which is persisted, cf. PYTHONUSERBASE=/workspace/.pip-modules

Persistence is not a problem for local venvs.

All 6 comments

@iksaif, please use export PIP_USER=no together with venv.

It's enabled by default in order to install everything below /workspace directory which is persisted, cf. PYTHONUSERBASE=/workspace/.pip-modules

Persistence is not a problem for local venvs.

Ok thanks, will try that :)

Why not using pipenv? working good for me.

@iksaif did it work for you eventually?

@alesanchezr that's an option as well (cf. https://github.com/gitpod-io/gitpod/issues/525)

Yes it worked in the end for me,thanks !

easy_install working for me

Was this page helpful?
0 / 5 - 0 ratings

Related issues

PatMyron picture PatMyron  路  3Comments

ColbyWTaylor picture ColbyWTaylor  路  3Comments

Kreyren picture Kreyren  路  3Comments

Kreyren picture Kreyren  路  3Comments

mouse484 picture mouse484  路  3Comments