I
I
Ivanzolo20012021-09-16 12:50:54
Python
Ivanzolo2001, 2021-09-16 12:50:54

Console not seeing modules?

I write code in sublime text. I have it on drive D. Python itself is on drive C in the python3.9 folder. My scripts that I write in sublime are located on the C drive in the PyScripts folder. As I understand modules are installed in python3.9/Lib. When I am in the console that I did in sublime, I get an error stating that the module that I imported is not installed, although I have already downloaded it. I added the path C:/python3.9/Lib to the environment variables in PATH, but it did not help. What can be done?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Z
Zakhar Guskov, 2021-09-16
@Zuguki

I advise you to make a new virtual environment in each new project and after that install the modules necessary for the project.
You can read here

I
Ivanzolo2001, 2021-09-16
@Ivanzolo2001

The issue was resolved. Maybe someone will be too lazy to read the comment. I will answer here. It was necessary to create a virtual environment and activate it. Only then download the modules.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question