我正在尝试通过pipenv
命令在Mac OS El Capitan的终端中创建虚拟环境。该命令成功创建了环境和文件(Pipfile
和Pipfile.lock
)。当我尝试使用pipenv
激活虚拟环境时,shell终端更改为bash-3.2$
Dimitriss-MacBook-Pro:FlaskProject DS$ pipenv install
Creating a Pipfile for this project…
Pipfile.lock not found, creating…
Locking [dev-packages] dependencies…
Locking [packages] dependencies…
Updated Pipfile.lock (a65489)!
Installing dependencies from Pipfile.lock (a65489)…
? ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 0/0 — 00:00:00
To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.
Dimitriss-MacBook-Pro:FlaskProject DS$ pipenv shell
Launching subshell in virtual environment…
bash-3.2$ . /Users/DS/.local/share/virtualenvs/FlaskProject-7FXDmQ2z/bin/activate
(FlaskProject) bash-3.2$