-bash: /usr/local/bin/python: No such file or directory
virtualenvwrapper.sh: There was a problem running the initialization hooks.
If Python could not import the module virtualenvwrapper.hook_loader,
check that virtualenvwrapper has been installed for
VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python and that PATH is
set properly.当我在bash中运行tmux时,会得到这个错误。我不知道这会产生什么影响,但我认为这与我的bashrc中通向python的错误路径有关。我检查了bashrc,它在末尾有这个,所以它匹配错误消息。我不太确定如何解决这个问题,我尝试过用Anaconda重新安装python。
# virtualenv and virtualenvwrapper
export WORKON_HOME=/home/clu/.virtualenvs
source /usr/local/bin/virtualenvwrapper.sh
export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python发布于 2017-04-16 01:36:00
-bash: /usr/local/bin/python:没有这样的文件或目录
似乎在查看一个与您正在使用的目录不同的目录。
尝试将VIRTUALENVWRAPPER更改为
导出VIRTUALENVWRAPPER_PYTHON=/home/clu/anaconda3/bin/python
如果实际上没有安装虚拟包装器,则可能需要安装它。
pip install virtualenv virtualenvwrapper
https://stackoverflow.com/questions/43432474
复制相似问题