小编Mae*_*ror的帖子

virtualenvwrapper 初始化错误(

我正在尝试按照本指南使用 virtualenvwrapper 为我的 Django 项目设置 virtualenv:Django 教程。但是,在安装和写入后,

export WORKON_HOME=$HOME/.virtualenvs
export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3
export PROJECT_HOME=$HOME/Devel
source /usr/local/bin/virtualenvwrapper.sh
Run Code Online (Sandbox Code Playgroud)

并尝试运行 source ~/.bash_profile,我一直没有收到目录错误。我研究了这个错误,并认为错误不断出现是因为我用自制软件安装了 python3。

因此,我将 VIRTUALENVWRAPPER_PYTHON 目录更改为 /usr/local/Cellar/python/3.6.4_4 virtualenvwrapper.sh。

但现在我收到此错误:

virtualenvwrapper_run_hook:12: permission denied: /usr/local/Cellar/python/3.6.4_4
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/Cellar/python/3.6.4_4 and that PATH is
set properly.
Run Code Online (Sandbox Code Playgroud)

如何重置 PATH 以便我可以使用 virtualenvwrapper?

homebrew virtualenvwrapper python-3.x

2
推荐指数
1
解决办法
1652
查看次数

标签 统计

homebrew ×1

python-3.x ×1

virtualenvwrapper ×1