您应检查〜/.bashrc ,〜/.bash_profile ,〜/.bash_login 和〜/.profile 表示"/usr/bin/virtualenvwrapper.sh".可能其中一个文件是在登录时运行的,其中包含您卸载的缺少脚本.I can't figure out where the shell is trying to run /usr/bin/virtualenvwrapper.sh upon server login. I want virtualenvwrapper permanently uninstalled, not just removed from the shell instance. I thought I uninstalled it with pip uninstall virtualenvwrapper, but every time I log into the server I get the error -bash: /usr/bin/virtualenvwrapper.sh: No such file or directory, as if there is some sort of leftover artifact. Yesterday I did a lot of tinkering and I can't remember all the changes I made or how I made this happen. Where is it executing the search for virtualenvwrapper.sh?SUPPLEMENTARY INFO$ echo $PATH/usr/lib64/qt-3.3/bin/usr/local/bin/ibm/lsf/9.1/linux2.6-glibc2.3-x86_64/etc/usr/local/bin/ibm/lsf/9.1/linux2.6-glibc2.3-x86_64/bin/usr/local/bin/bin/usr/bin/usr/local/sbin/usr/sbin/sbin/usr/local/bin/CASAVA-1.8.2/bin/usr/local/bin/blast/usr/local/bin/mirdeep2/usr/local/bin/velvet$ sudo vim ~/.bashrc1 # .bashrc23 # Source global definitions4 if [ -f /etc/bashrc ]; then5 . /etc/bashrc6 fi78 # User specific aliases and functions 解决方案 There are a number of files that might be run when you login to your terminal if you are using the bash shell.You should check ~/.bashrc, ~/.bash_profile, ~/.bash_login and ~/.profile for "/usr/bin/virtualenvwrapper.sh".Likely one of those files is being run on login and contains the missing script which you uninstalled. 这篇关于-bash:/usr/bin/virtualenvwrapper.sh:没有这样的文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!