Nov-17-2023, 02:39 PM
Hi, sorry for the thread, I just haven't found any solution anywhere and I'm getting kind of desperate.
For context, I'm a sociology student with no experience coding in anything other than R, so please bear with me as I don't know much about python or coding. I need to use python in order to use "Whisper", a retranscription program for my interviews. In order to do so, I tried a lot of things, but right now I'm using VSCode as an interface. My OS is Windows 11.
long story short, VSCode isn't detecting python. Here are some of the errors i get that I think can help understand ?
Trying to check my python version. I get similar errors when i try to use pip :
the print() command works, which idk is because it's in VSCode by default, or because it's detecting a bit of python ?
Things I tried to solve it :
- uninstall and reinstall from both the recommended internet page AND Windows Store
- install the python extension on VSCode
- change all the \ to \\ in the interpreter path
- try the same on Windows Powershell ISE
- give Python admin rights and "add to path automatically" when re-installing it
- when I go to the 2 paths offered for python in my computer (C:\\Users\\adrie\\AppData\\Local\\Programs\\Python\\Python312\\python.exe AND C:/Users/adrie/AppData/Local/Microsoft/WindowsApps/python3.11.exe), I find the files.
- the file at "C:\\Users\\adrie\\AppData\\Local\\Programs\\Python\\Python312\\python.exe" is 101Ko large, and opens the windows terminal when launched
- the file at "C:/Users/adrie/AppData/Local/Microsoft/WindowsApps/python3.11.exe" is 0 Ko large, and also opens the windows terminal
I know all of this points to Python not being downloaded on my computer, but it is, so I'm very lost
Thank you very much for your help
For context, I'm a sociology student with no experience coding in anything other than R, so please bear with me as I don't know much about python or coding. I need to use python in order to use "Whisper", a retranscription program for my interviews. In order to do so, I tried a lot of things, but right now I'm using VSCode as an interface. My OS is Windows 11.
long story short, VSCode isn't detecting python. Here are some of the errors i get that I think can help understand ?
Trying to check my python version. I get similar errors when i try to use pip :
Output:Traceback (most recent call last):
File "c:\Users\adrie\OneDrive\Bureau\Untitled-1.py", line 2, in <module>
py -v
^^
NameError: name 'py' is not defined
PS C:\Users\adrie> & C:/Users/adrie/AppData/Local/Programs/Python/Python312/python.exe c:/Users/adrie/OneDrive/Bureau/Untitled-1.py
Traceback (most recent call last):
File "c:\Users\adrie\OneDrive\Bureau\Untitled-1.py", line 1, in <module>
python
NameError: name 'python' is not defined
PS C:\Users\adrie> & C:/Users/adrie/AppData/Local/Programs/Python/Python312/python.exe c:/Users/adrie/OneDrive/Bureau/Untitled-1.py
Traceback (most recent call last):
File "c:\Users\adrie\OneDrive\Bureau\Untitled-1.py", line 1, in <module>
python -v
^^^^^^
NameError: name 'python' is not defined
Trying to change the vscode python interpreter to the path I've read it should be :Output:2023-11-17 15:04:53.918 [warning] Failed to check if C:\Users\adrie\AppData\Local\Programs\Python\Python312\python.exe" is an executable [Error: ENOENT: no such file or directory, lstat 'C:\Users\adrie\AppData\Local\Programs\Python\Python312\python.exe"'] {
errno: -4058,
code: 'ENOENT',
syscall: 'lstat',
path: 'C:\\Users\\adrie\\AppData\\Local\\Programs\\Python\\Python312\\python.exe"'
the print() command works, which idk is because it's in VSCode by default, or because it's detecting a bit of python ?
Things I tried to solve it :
- uninstall and reinstall from both the recommended internet page AND Windows Store
- install the python extension on VSCode
- change all the \ to \\ in the interpreter path
- try the same on Windows Powershell ISE
- give Python admin rights and "add to path automatically" when re-installing it
- when I go to the 2 paths offered for python in my computer (C:\\Users\\adrie\\AppData\\Local\\Programs\\Python\\Python312\\python.exe AND C:/Users/adrie/AppData/Local/Microsoft/WindowsApps/python3.11.exe), I find the files.
- the file at "C:\\Users\\adrie\\AppData\\Local\\Programs\\Python\\Python312\\python.exe" is 101Ko large, and opens the windows terminal when launched
- the file at "C:/Users/adrie/AppData/Local/Microsoft/WindowsApps/python3.11.exe" is 0 Ko large, and also opens the windows terminal
I know all of this points to Python not being downloaded on my computer, but it is, so I'm very lost
Thank you very much for your help