欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  科技

source .bashrc 报错:virtualenvwrapper.sh: There was a problem running the initialization hooks.

程序员文章站 2023-02-12 18:55:21
在Ubuntu下安装完virtualenv、virtualenvwrapper,然后设置环境文件 .bashrc 接着 source .bashrc,产生错误信息 首先确认了 libpam-mount 等模块已经在系统安装了。查看后面的信息应该是文件配置路径有问题。 检查virtualenvwrap ......

在ubuntu下安装完virtualenv、virtualenvwrapper,然后设置环境文件 .bashrc

source .bashrc 报错:virtualenvwrapper.sh: There was a problem running the initialization hooks.

接着 source .bashrc,产生错误信息

source .bashrc 报错:virtualenvwrapper.sh: There was a problem running the initialization hooks.

首先确认了 libpam-mount 等模块已经在系统安装了。查看后面的信息应该是文件配置路径有问题。

检查virtualenvwrapper.sh的信息

source .bashrc 报错:virtualenvwrapper.sh: There was a problem running the initialization hooks.

因为虚拟机目前只装了python3.6,所以先将此处改成python3

source .bashrc 报错:virtualenvwrapper.sh: There was a problem running the initialization hooks.

保存文件,再执行 source .bashrc,报错消失。