我在Debian发行版上编码。
当我在项目文件夹pipenv shell
中运行/home/username/Developement/project/
时,它将创建以下
Launching subshell in virtual environment...
. /home/username/.venv/bin/activate
[username@localhost ~]$ . /home/username/.venv/bin/activate
(username) [username@localhost ~]$
但是pipenv shell
适用于任何子目录:/home/username/Development/project/another/
Launching subshell in virtual environment...
. /home/username/.local/share/virtualenvs/another-_QO4qW1u/bin/activate
[username@localhost another]$ .
/home/username/.local/share/virtualenvs/another-_QO4qW1u/bin/activate
(another) [username@localhost another]$
为什么我不能在项目目录或/home/username/
的任何其他直接子目录中创建虚拟环境。是配置问题还是pipenv的工作方式?