源〜/ .profile命令抛出奇怪的错误

问题描述 投票:0回答:1

我正在尝试重新加载该外壳,我在Google上搜索了很多下面的命令以对其进行修复。但是,当我运行命令时,却出现以下错误python: can't open file './test.py': [Errno 2] No such file or directory

rasminayak@DEBIAN-TEST:~$ source ~/.profile
python: can't open file './test.py': [Errno 2] No such file or directory
rasminayak@DEBIAN-TEST:~$

即使我尝试过

rasminayak@DEBIAN-TEST:~$ source .bashrc
python: can't open file './test.py': [Errno 2] No such file or directory
rasminayak@DEBIAN-TEST:~$ 
python linux bash unix profile
1个回答
1
投票

您需要从.bashrc或]中删除test.py文件>

© www.soinside.com 2019 - 2024. All rights reserved.