E
E
Egoraccountmail2018-05-08 08:26:13
Python
Egoraccountmail, 2018-05-08 08:26:13

Why is PyCharm not working properly?

For some strange and incomprehensible reason, PyCharm does not work at all. When running programs, it throws errors:
Failed to import the site module
Traceback (most recent call last):
File "my path\Python\Python\lib\site.py", line 544, in
main()
File "my path\Python \Python\lib\site.py", line 526, in main
known_paths = removeduppaths()
File "my path\Python\Python\lib\site.py", line 126, in removeduppaths
dir, dircase = makepath(dir)
File "my path\Programs\Python\Python\lib\site.py", line 91, in makepath
dir = os.path.join(*paths)
AttributeError: module 'os' has no attribute 'path'
EVERYTHING WORKS NORMALLY WHEN LAUNCHING IN THE CONSOLE! Thus the interpreter there costs one and the same. Also, when importing packages, such as from collections import deque. It highlights the deque in red, as if there is no such package, but it is. Why is that?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
elZiga, 2018-05-09
@elZiga

I had a similar problem, but it was slightly different Downloaded libraries do not work in PyCharm. How to set up PyCharm?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question