I know this question has been answered many times before and I tried applying all of the solutions but still getting an error -
C:\Users\joshi\AppData\Local\Programs\Python\Python39\python.exe: can't open file 'C:\Users\joshi\Desktop\Usersjoshi.vscodeextensionsms-python.python-2021.3.680753044pythonFilespyvsc-run-isolated.py': [Errno 2] No such file or directory
also when I say pip show autopep8 - it gives me below message - Version: 1.5.4 Summary: A tool that automatically formats Python code to conform to the PEP 8 style guide Home-page: https://github.com/hhatto/autopep8 Author: Hideo Hattori Author-email: hhatto.jp@gmail.com License: Expat License Location: c:\users\joshi\appdata\roaming\python\python37\site-packages Requires: pycodestyle, toml Required-by: (base
Based on this you can try:
- Uninstall Python extension (if you have pylance uninstall it first).
- Close all instances of VS Code.
- Go to, %USERPROFILE%/.vscode/extensions (on windows) or ~/.vscode/extensions on Linux/Mac.
- Delete any folder with the name starting with ms-python.python*
- Start VS Code, and install Python extension (also pylance if you uninstalled it in step 1).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.