I have Python 3.8
installed via Anaconda
. I am running a Python script from the command line and I am getting the following error:
ImportError: bad magic number in 'myscript': b'B\r\r\n'
Following some research online, I came across a post where the author stated that the solution is to run the following lines to clear the cache folders:
find . -name \*.pyc -delete
Since I'm new to Python, I would like some help on the following:
(1) Where do I run that command?
As I mentioned above, I installed Python using Anaconda. So, do I just need to get into the following path in my command prompt (C:\Users\xxxx\Anaconda3) and run the codes from there?
(2) Is it safe to delete all the "pyc" folders?