共享文件夹中没有这样的文件或目录

当我开始bash时,出现以下描述:

-bash: /usr/share/virtualenvwrapper/virtualenvwrapper_lazy.sh: No such file or directory

-bash: /usr/share/virtualenvwrapper/virtualenvwrapper_lazy.sh: No such file or directory

我正在使用microsoft-Windows-Subsystem-Linux和ubuntu发行版。

我已经尝试通过powershell pip uninstall virtualenvwrapper或bash sudo pip uninstall virtualenvwrapper进行卸载。

我还进入了共享目录以删除virtualenvwrapper文件夹,但是它没有出现。我按LS键,但文件夹不出现。

我也在尝试“ which virtualenvwrapper”或“ which virtualenvwrapper_lazy.sh”,但这只是返回与我相同的文件夹。 我只需要帮助就可以删除bash消息

fgvlty 回答:共享文件夹中没有这样的文件或目录

最有可能在bash启动文件之一中对virtualenvwrapper_lazy.sh的引用(可能使用source.)。查看常见的可疑对象:〜/ .bashrc,〜/ .profile,/ etc / profile,/ etc / bash.bash.rc,/ etc / .bash_login

为帮助调试,请考虑将set -x添加到〜/ .bashrc中,或通过运行交互式会话来获取

bash -ix /dev/null

根据日志更新:

https://superuser.com/questions/893448/bash-shell-error-no-such-file-or-directory/1049989

  

我在Linux Mint上也遇到了同样的问题。

     

以下文件导致了此问题:   /etc/bash_completion.d/virtualenvwrapper

     

我做了一个备份(以防万一)并删除了它,一切似乎都   现在工作正常。

本文链接:https://www.f2er.com/3163104.html

大家都在问