W
W
WebDeveloper20162016-12-04 14:45:06
Django
WebDeveloper2016, 2016-12-04 14:45:06

How to make a project in virtualenv?

Initially, I didn’t know what to do in virtualenv (to be honest, I didn’t know what it was at all), when I did, I read what I needed, googled about it, set it for myself. But now I don’t understand how I can clean the project from unnecessary dependencies. Those. there now with pip freeze it says a lot of things that the project does not need. Why should I recreate the project now? Or maybe something faster?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2016-12-04
@WebDeveloper2016

Create a bare environment

virtualenv -p python3 --no-site-packages  <env_name>

then move the project there and deliver the necessary libraries

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question