Virtualenvwrapper python bash

2024-06-20 15:07:30 发布

您现在位置:Python中文网/ 问答频道 /正文

-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,它的末尾有这个,所以它与错误消息相匹配。我不太确定如何修复这个问题,我尝试过用Python重新安装python。在

^{pr2}$

Tags: orthenobashbinthatusrlocal
1条回答
网友
1楼 · 发布于 2024-06-20 15:07:30

-bash: /usr/local/bin/python: No such file or directory

似乎在查看与您正在使用的目录不同的目录。在

尝试将VIRTUALENVWRAPPER更改为

export VIRTUALENVWRAPPER_PYTHON=/home/clu/anaconda3/bin/python

如果您实际上没有安装virtualenwrapper,那么您可能需要安装它。在

pip install virtualenv virtualenvwrapper

相关问题 更多 >