Default virtualenv location and pipenv shell problems
See original GitHub issueHello, i have noticed that pipenv creates virtualenv in new directory, which is highly unacceptable for our company, because of our project deployment tools are targeting .venv in project directory. How do we configure that? Also, hiding virtualenv on .local/share/virtualenv looks like bad practice:
- you never know if virtualenv you need exists
- system gets polluted with different virtualenvs
- you now need to manually handle virtualenvs
- it is harder to work with if you need to recreate virtualenv manually — this is just not obvious.
Virtualenv location: /home/asyncee/.local/share/virtualenvs/project
And secondly, i get this error after running pipenv shell
:
Spawning environment shell (/bin/zsh).
ERROR: The virtualenv hasn't been activated correctly.
Either the env is corrupted (try running `pew restore env`),
Or an upgrade of your Python version broke your env,
Or check the contents of your $PATH. You might be adding new directories to it
from inside your shell's configuration file.
In this case, for further details please see: https://github.com/berdario/pew#the-environment-doesnt-seem-to-be-activated
Yesterday (before new location) everything was working fine — my python installation did not change.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:23
- Comments:20 (9 by maintainers)
Top Results From Across the Web
Frequently Encountered Pipenv Problems - Read the Docs
Pipenv by default uses the Python it is installed against to create the virtualenv. You can set the --python option, or $PYENV_ROOT/shims/python to...
Read more >Get path of virtual environment in pipenv - Stack Overflow
According to documentation, you can set the base location for the virtualenvs with the environment variable WORKON_HOME . If you want to place...
Read more >Pipenv & Virtual Environments
virtualenv creates a folder which contains all the necessary executables to use the packages that a Python project would need. It can be...
Read more >Manage Virtual Environments - menziess blog
Pipenv installs packages in ~/.local/share/virtualenvs/<your-virtualenv> by default. I prefer to place the folder containing the virtual environment in the ...
Read more >pipenv Documentation - Read the Docs
Automatically creates a virtualenv in a standard customizable location. ... If you experience issues with $ pipenv shell, just check the PIPENV_SHELL ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
no plans for making it configurable.
it sounds like your shell is not properly configured.
released!