I've been building out a web crawler and it was working fine, but I wanted to ensure that I was verifying SSL requests so I installed Certifi and since then I've not been able to run my code and it appears to be an issue with the request library.
When I try something such as:
import requests
response = requests.get('https://api.github.com')
it generates an error
[WinError 32] The process cannot access the file because it is being used by another process: 'C:\Users\Temp\tmps97phylw'
I'm using Visual Studio Code and Python 3.10.6 (tags/v3.10.6:9c7b4bd, [MSC v.1932 64 bit (AMD64)] on win32
What I've tried:
- Having nothing else open on my laptop.
- Uninstalling both the Certifi and Requests libraries, but I get the same error.
- restarting my laptop in the hope it will kill off any other processes.
- Uninstalling VS Code and reinstalling
- Deleting the virtual environment, but I get the error: "cannot be removed because it is not empty"