-
-
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
python -m venv
from inside pipenv shell
#3349
Comments
Can you please upgrade pipenv and see if the issue still exists? From your description, the replicating steps:
|
Yes the issue still persists. Thanks for the simpler steps to reproduce :)
Et voila, packages got installed in pipenv's own venv, not the target venv. $ pipenv --supportPipenv version: Pipenv location: Python location: Python installations found:
PEP 508 Information:
System environment variables:
Pipenv–specific environment variables: Debug–specific environment variables:
Contents of [[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true
[dev-packages]
[packages]
[requires]
python_version = "3.7"
|
@dimaqq Thanks for your reply, I found $ virtualenv venv
$ venv/bin/python -m venv venv-from-virtualenv
$ venv-from-virtualenv/bin/python -m pip --version
# The pip points to the venv/bin/pip |
There is a branch with experimental venv support and @uranusjr is the expert on that. It’s not officially supported but the correct workflow is to make the venv yourself, since pipenv will always make a Note that |
I believe this is already a reported issue in virtualenv pypa/virtualenv#1095 (and venv, but the devs think virtualenv is responsible). |
Closing for now in favor of the various upstream issues — thanks for the report! |
Hi Pipenv devs!
[obligatory nod for creating an awesome tool]
We have a workflow where a virtual env is created on the fly for some hairy tests.
There's a difference between running
python -m venv
from under pipenv and global interpreter:pip
is missing in the first venv.[in the 2nd venv, it works correctly]
Running
venv/bin/python -m pip
in the first venv reads|modifies "parent" (pipenv's) site-packages, not the new venv's.[in the 2nd venv, it works correctly]
Is this workflow supported?
Am I doing something completely wrong?
Any other comments?
pipenv, version 2018.10.13
The text was updated successfully, but these errors were encountered: