G
G
gromyko212020-11-28 18:05:54
Python
gromyko21, 2020-11-28 18:05:54

How to download packages from virtualvenv to python console?

The essence of the question is stated above. I started working with flask in the python console, I want to add objects to the database, but the problem is that it does not load packages from the environment. The environment itself is running and working correctly. Error example

ModuleNotFoundError: No module named 'flask'

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dr. Bacon, 2020-11-28
@bacon

The environment itself is running and working correctly
it means flask is not installed in this environment, or you either didn't activate (activated another one) this environment

P
Pavel Shvedov, 2020-11-28
@mmmaaak

So the python in the console is not started from under the virtualenv environment

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question