P
P
polyakovyevgeniy2017-09-10 17:06:26
Python
polyakovyevgeniy, 2017-09-10 17:06:26

Why doesn't the interpreter see my python modules?

I have such code

#! /usr/bin/env python
# -*- coding: utf-8 -*-

import sys
from user.bot import User

number= '3432'

def main():
    User(number).start()

if __name__ == "__main__":
    main()

I am developing an application in Pychrm on Windows, everything works fine there, but after transferring these files to Linux, a gap appeared:
ModuleNotFoundError: No module named 'user'

On desktop ubunt, I re-created the entire project in Pytharm, and it started working there, and I didn’t understand why it didn’t work before. But having now transferred to Raspberry, the problem is the same again. Do not re-create the project in Pycharm now in parse? Why doesn't it work?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2017-09-10
@dimonchik2013

path is our everything

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question