A
A
Alexey2018-02-11 15:36:56
Python
Alexey, 2018-02-11 15:36:56

The python program does not see vk_api, how to fix it?

A beginner in programming, I wanted to write a bot for VK on python 3.6, but I met with such a problem, I don’t know how to solve it.

C:\Users\PycharmProjects\mybot\venv\Scripts\python.exe C:/Users/AppData/Local/Programs/Python/mybot/mybot.py
Traceback (most recent call last):
  File "C:/Users/AppData/Local/Programs/Python/mybot/mybot.py", line 2, in <module>
    import vk_api
ModuleNotFoundError: No module named 'vk_api'

Installed the vk_api module via pip.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dima Cherny, 2018-02-11
@6alexey9

The examples in this manual were made in windows 10 and python 3.6.4 x64
To correctly install the libraries, you need to have a properly configured environment, so before installing, check the conditions described below:
the username must be written in Latin (this is one of the limitations of windows);
the path environment variable must contain the path to the python folder and to the Scripts folder (which is located in the python folder);
python must be installed "for all users", that is, installed in "Program Files", or in another folder located in the root of the C drive. The
ideal option would be to create a bin folder in the root of the C drive and install everything necessary for development there. This approach will save you from
unpleasant misunderstandings associated with the limitations of some tools.
Example:
pip3 install (library name)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question