N
N
Nikolay Baranenko2020-02-12 23:34:15
linux
Nikolay Baranenko, 2020-02-12 23:34:15

How to solve Can not perform a '--user' install. User site-packages are not visible in this virtualenv?

Hello.

I install root python 2.7

additionally ,

sudo yum install python36

further I roll virtualenv

sudo pip3 install virtualenv

, I install venv

sudo /usr/local/bin/virtualenv --python=/usr/bin/python3.6 /data/venv/python36


when trying to download packages, an error is returned

$ /data/venv/python36/bin/pip install schedule --user
ERROR: Can not perform a '--user' install. User site-packages are not visible in this virtualenv.


How to solve this visibility problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mikhail Vasilyev, 2020-02-13
@drno-reg

Answer:
https://stackoverflow.com/questions/30604952/pip-d...

R
Radjah, 2020-02-13
@Radjah

Are you making a virtualenv so as not to spoil the system, and in it are you still trying to install components only for the user, so as not to spoil in the virtualenv?
Either a cross, or shorts. Either don't use "--user" or don't use virtualenv.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question