Answer the question
In order to leave comments, you need to log in
How to create a virtual environment for python?
I create a virtual environment
virtualenv -p /usr/bin/python3 venv
source venv/bin/active
install the necessary packages via pip
I copy this folder to another server. I activate.
source venv/bin/active
command which python shows that the system python is used.
Accordingly, he does not know about any packages.
What have I done wrong? How to create and transfer the environment correctly?
Answer the question
In order to leave comments, you need to log in
You write:
I create a virtual environment
virtualenv -p /usr/bin/python3 venv
source venv/bin/active
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question