virtualenvwrapper.sh:运行初始化钩子存在问题

发布于 2025-01-25 05:42:33 字数 827 浏览 2 评论 0原文

我正在尝试安装virtualenvwrapper。我需要使用特定的Python版本:3.6.10 因此,我将virtualenvwrapper_python设置为/usr/local/bin/bin/python3.6
当我运行virtualenvwrapper.sh时,我会收到一个错误:

If Python could not import the module virtualenvwrapper.hook_loader,
check that virtualenvwrapper has been installed for
VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python3.6 and that PATH is
set properly.

因此,我尝试使用以下命令安装virtualenvwrapper python3.6 -M PIP安装virtualenvwrapper,但导致另一个错误:分割故障(核心倾倒)

我该如何解决此问题?是否有任何解决方案可以在特定的Python版本上安装VirtualenvWrapper

更多信息:
Python3.6 - Version:Python 3.6.10
python3- version:python 3.9.7
我使用ubuntu 21.10

I'm trying to install virtualenvwrapper. I need to use specific python version: 3.6.10
So I set VIRTUALENVWRAPPER_PYTHON to /usr/local/bin/python3.6
When I run virtualenvwrapper.sh I get an error:

If Python could not import the module virtualenvwrapper.hook_loader,
check that virtualenvwrapper has been installed for
VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python3.6 and that PATH is
set properly.

so I tried to install virtualenvwrapper using the following command
python3.6 -m pip install virtualenvwrapper but it resulted with another error: Segmentation fault (core dumped)

How can I fix this? Is there any workaround for installing virtualenvwrapper to specific python version?

More info:
python3.6 --version : Python 3.6.10
python3 --version : Python 3.9.7
I use Ubuntu 21.10

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文