E
E
Eugene Chefranov2021-12-10 16:53:34
Python
Eugene Chefranov, 2021-12-10 16:53:34

Why does the script not see modules/libraries?

Tell me, I practically did not stick with python, but I need to run one script.

Installed python 3.10, installed pipenv and other modules/libraries according to the instructions. But at startup it says that the modules are not installed

61b359dea59a0819189123.png
. In the code, it is highlighted like this

61b35f62a464b990346113.png

. Although I know for sure that they are installed via pipenv install, and I also tried to install the necessary ones manually pip install pillow, etc.

From what I googled, adding to the script partially helped me:

import sys
sys.path.append("C://Users//echef//AppData//Local//Programs//Python//Python310//Lib//site-packages")


The script starts, but crashes on another module, there are a lot of files, you probably need to prescribe this in all.

As I understand it, I have some kind of problem with the paths and the script does not see the installed modules.

This is what the environment variables look like:
Screenshots
61b35b4c42afc441304026.png
61b35b7ce5c1f804640120.png
61b35bb16121b792598982.png


OS: Windows 11

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2021-12-14
@dimonchik2013

everything is so,
it makes sense and from where and with what command you run, and how before and where you installed the required libraries

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question