[issue40940] How to update pip permanently for new venv?

2020-06-11 Thread tillus


tillus  added the comment:

If it is not a bug, then I would strongly suggest it as a feature request!

Allright we can track it on the other issue! Thank you.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40940] How to update pip permanently for new venv?

2020-06-11 Thread Ned Deily


Ned Deily  added the comment:

Also, this issue has come up before and is discussed in more detail in 
Issue37107, so let's continue any further discussion there.

--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> ensurepip --upgrade doesn't change the version of pip used by 
venv

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40940] How to update pip permanently for new venv?

2020-06-11 Thread Ned Deily


Ned Deily  added the comment:

Thanks for the report.  I have to agree that the behavior is a little bit 
counterintuitive but I believe everything is working as designed and 
documented.  It all comes down to the fact that the ensurepip module is only 
concerned with the version of pip bundled with the python release; ensurepip 
deliberately does not check PyPI for a newer version of pip.  As documented, 
venv calls ensurepip after creating a new venv so the pip that is installed 
there is the one released with ensurepip. To get the latest version of pip, you 
would need to run (in the activated venv):

python3 -m pip install --upgrade pip

just as you needed to do to upgrade the system-wide instance of python3 to the 
latest pip.

https://docs.python.org/3/library/venv.html#creating-virtual-environments
  "Unless the --without-pip option is given, ensurepip will be invoked
   to bootstrap pip into the virtual environment."

https://docs.python.org/3/library/venv.html#creating-virtual-environments
  "Note: This module does not access the internet [...]"

--
nosy: +ned.deily

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40940] How to update pip permanently for new venv?

2020-06-10 Thread Zachary Ware


Change by Zachary Ware :


--
components: +Library (Lib) -asyncio
nosy: +vinay.sajip -asvetlov, yselivanov

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40940] How to update pip permanently for new venv?

2020-06-10 Thread tillus

New submission from tillus :

**Describe the bug**
Every new environment has the old pip version (19.2.3)

**Expected behavior**
My system python has pip version 20 so I would expect direnv also to use the 
most recent pip version. But it installs the old pip version for every new 
environment

**Environment**
 - OS: macOS Catalina 10.15.4
 - Shell: zsh 5.7.1
 - Python version: stable 3.7.7 (homebrew bottled)

**To Reproduce**
  ```console
➜  ~ pip list
PackageVersion
-- ---
appdirs1.4.4
astroid2.4.1
distlib0.3.0
filelock   3.0.12
importlib-metadata 1.6.1
isort  4.3.21
lazy-object-proxy  1.4.3
mccabe 0.6.1
numpy  1.18.5
pip20.1.1
pylint 2.5.2
python-dateutil2.8.1
pytz   2020.1
setuptools 40.8.0
six1.12.0
toml   0.10.1
typed-ast  1.4.1
virtualenv 20.0.21
wheel  0.33.1
wrapt  1.12.1
zipp   3.1.0
➜  ~ python3 -m venv ./foobar
➜  ~ source ./foobar/bin/activate
(foobar) ➜  ~ pip list
PackageVersion
-- ---
pip19.2.3 
setuptools 41.2.0 
WARNING: You are using pip version 19.2.3, however version 20.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
```

--
components: asyncio
messages: 371187
nosy: asvetlov, tillus, yselivanov
priority: normal
severity: normal
status: open
title: How to update pip permanently for new venv?
type: behavior
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com