[[+content_image]]
P
P
petriichuk2018-11-01 14:06:34
Python
petriichuk, 2018-11-01 14:06:34

Why, when creating a virtualenv, does it contain only global packages, and I cannot overwrite/install local ones?

I perform this action


virtualenv venv
New python executable in /home/user/webapps/v21_dev/venv/bin/python
Installing setuptools, pip, wheel...
done.
[[email protected] v21_dev]$ source venv/bin/activate
(venv) [[email protected] v21_dev]$ pip freeze

pip freeze gives a bunch of packages (what is in the system), and pip list --local gives emptiness ... when I install a package, it shows that it was installed, but in fact pip list --local gives emptiness

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
P
petriichuk, 2018-11-11
@petriichuk

The problem was in the features of the server (webfaction). Creating an empty sitecustomize.py in /home/username/webapps/project/venv/lib/python2.7 solved the problem

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question