Im having a problem Running my Python Program due the from: can't read /var/mail/docx Error, I tried to execute this pip uninstall docx && pip install docx && from docx import Document but didn't work Sorry for bad Grammar.
Asked
Active
Viewed 259 times
0
-
1Please share your code snippet in the description – Mrinal Roy Jul 09 '20 at 15:19
-
You may want to read [ask] – Robert Jul 09 '20 at 15:51
-
Duplicate of https://stackoverflow.com/questions/16069816/getting-python-error-from-cant-read-var-mail-bio – tripleee Jun 13 '22 at 04:55
1 Answers
0
It's not finding your Python path or you're not using python command. Try running the script using python.
python script.py
Otherwise put the following line on top of your program:
#!/usr/bin/env python

Mrinal Roy
- 969
- 7
- 12