简体   繁体   English

OSX终端在启动时给出消息“ Python:无法打开文件'=':[Errno 2]没有这样的文件或目录”

[英]OSX terminal giving the message “Python: can't open file '=': [Errno 2] No such file or directory” upon startup

Screenshot 屏幕截图

I have no idea what this message is. 我不知道这是什么信息。 It's not exactly hindering my usage of python, but seeing a paragraph every time I open the terminal is unsettling, and i've looked online everywhere for an explanation, but there is none. 这并不完全妨碍我使用python,但是每次打开终端时都看到一段内容令人不安,而且我到处都在网上寻找解释,但没有任何解释。 Thank you again for the help. 再次感谢您的帮助。

Check if any Python file is executed in your .bash_profile file by typing the following command in terminal: 通过在终端中键入以下命令,检查.bash_profile文件中是否执行了任何Python文件:

nano ~/.bash_profile

Hint: lines starting with PATH and export PATH are not being executed and usually are very useful. 提示:以PATH和export PATH开头的行不会被执行,通常非常有用。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 PyCharm 没有找到 Anaconda Python,给出“无法打开文件 'python.py':[Errno 2] 没有这样的文件或目录?” - PyCharm not finding Anaconda Python, giving “can't open file 'python.py': [Errno 2] No such file or directory?” PyCharm 没有找到 Anaconda Python,给出“无法打开文件 'python':[Errno 2] 没有这样的文件或目录?” - PyCharm not finding Anaconda Python, giving "can't open file 'python': [Errno 2] No such file or directory?" python:无法打开文件'python2':[Errno 2]没有这样的文件或目录 - python: can't open file 'python2': [Errno 2] No such file or directory python:无法在 macbook 终端中打开文件 - [错误 2]! - python: can't open file in macbook terminal - [Errno 2]! python:无法打开文件“帮助”:[Errno 2]没有此类文件或目录 - python: can't open file 'help': [Errno 2] No such file or directory python:无法打开文件“C:\\Program”:[Errno 2] 没有这样的文件或目录 - python: can't open file 'C:\Program': [Errno 2] No such file or directory 无法打开文件'python':[Errno 2]没有这样的文件或目录 - can't open file 'python': [Errno 2] No such file or directory 无法打开文件:[Errno 2] 没有那个文件或目录 - can't open file : [Errno 2] No such file or directory 无法打开文件:[Errno 2] 没有那个文件或目录 - can't open file : [Errno 2] No such file or directory 无法打开文件 [Errno 2] 没有这样的文件或目录 - Can't Open File [Errno 2 ] No such file or directory
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM