-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pipenv chooses wrong project path #1102
Comments
remove the Pipfile from your home directory like |
Hi @colde, do you have a pipfile anywhere above that folder in your directory structure. Pipenv will search up through the directory tree for a pipfile and use that as the project root. If you remove it, you should be able to create a venv for that directory. If this isn't the case let me know! |
but why? |
Thanks for the help! |
help me a lot, thank you. |
I had to do this.
|
THANK YOU!!!! This was it. |
When creating a new environment with pipenv --python 3, it does not use the current directory as the project home, but instead chooses a directory two directories up from the current working directory, as illustrated here:
Describe your environment
macOS High Sierra
$ python -V
Python 2.7.14 (default)
Python 3.6.3 (python3)
$ pipenv --version
pipenv, version 8.3.2 (installed via brew)
Expected result
I expected a virtualenv be created for the path /Users/loke/Projects/mpx-python-api
Actual result
A virtualenv was created for /Users/loke
Steps to replicate
Simply create the virtualenv with pipenv
The text was updated successfully, but these errors were encountered: