Answer the question
In order to leave comments, you need to log in
Problem with PIP when working in VS Code. How to fix?
Hello!
Can anyone suggest how to fix this error?
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\ProgramData\Anaconda3\lib\runpy .py", line 87, in _run_code
exec(code, run_globals)
File "c:\Users\nedod\.vscode\extensions\ms-python.python-2021.7.1060902895\pythonFiles\lib\python\debugpy\__main__.py ", line 45, in
cli.main()
File "c:\Users\nedod\.vscode\extensions\ms-python.python-2021.7.1060902895\pythonFiles\lib\python\debugpy/..\debugpy\server\ cli.py", line 444, in
main
run()
File "c:\Users\nedod\.vscode\extensions\ms-python.python-2021.7.1060902895\pythonFiles\lib\python\debugpy/..\debugpy\server\cli.py", line 285, in
run_file
runpy .run_path(target_as_str, run_name=compat.force_str("__main__"))
File "C:\ProgramData\Anaconda3\lib\runpy.py", line 264, in run_path
code, fname = _get_code_from_file(run_name, path_name)
File "C :\ProgramData\Anaconda3\lib\runpy.py", line 234, in _get_code_from_file
with io.open_code(decoded_path) as f:
FileNotFoundError: [Errno 2] No such file or directory: 'c:\\Users\\nedod\ \OneDrive\\Desktop\\VS Code\\money_all.py'
PS C:\Users\nedod\OneDrive\Desktop\VS Code>
Today I fixed the same thing by uninstalling and installing pip. Half an hour later, when starting vs code, the error recurred and was no longer treated by removing and installing.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question