I
I
Ilya Andreev2020-11-07 15:42:35
PyCharm
Ilya Andreev, 2020-11-07 15:42:35

Why is it that in some projects in pycharm the same module is imported normally, while in others the entire line is grayed out and the light comes on?

In one project, this 5fa695c64b461250564443.png

AND an error with the text:
ERROR: Command errored out with exit status 1:
command: 'c:\prog\pythonproject1\browser_bot\scripts\python.exe' -c 'import
sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Administrator\\AppData\\
Local\\Temp\\pip-install-v6evo074\\turtle\\setup.py'"'"'; __file__='"'"'C:\\Users
\\Administrator\\AppData\\Local\\Temp\\pip-install-v6evo074\\turtle\\setup.py'"'"
';f=getattr(tokenize , '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'
\r\n'"'"', '"'"'\ n'"'"');f.
cwd: C:\Users\Administrator\AppData\Local\Temp\pip-install-v6evo074\turt
le\
Complete output (6 lines):
Traceback (most recent call last):
File "", line 1, in
File "C :\Users\Administrator\AppData\Local\Temp\pip-install-v6evo074\turtle
\setup.py", line 40
except ValueError, ve:
^
SyntaxError: invalid syntax
------------- ---------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the
logs for full command output.

And in other projects it is quietly imported.

At first I had the same error there, but somehow I managed to fix it and it worked. I thought I finally decided and I won’t run into her again, but here again.

Please explain what is the reason and how to fix it?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question