When I ran import readany
in sublime, I got the following report. But it could be executed in iterm2. I think that it is the problem about path variable. The path shown in below is the same with the result of the command /usr/libexec/path_helper -s
. But I have add the work paths to $PATH in .bash_profile that seams to be ignored by sublime.
It work well until I upgrade to python3.8 from 3.7. (in macOS10.15)
Traceback (most recent call last):
File “/Users/william/Folders/script-1.py”, line 4, in
import readany
ModuleNotFoundError: No module named ‘readany’
[Finished in 0.1s with exit code 1]
[cmd: [‘python3’, ‘-u’, ‘/Users/william/Folders/script-1.py’]]
[dir: /Users/william/Folders]
[path: /Library/Frameworks/Python.framework/Versions/3.7/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/opt/X11/bin]