I have defined a Python v-env and activated it through:
python3 -m venv myvenv
source myvenv/bin/activate
Before running this command, my pip3 version is 19.0.2, but once the command is run, the version changes to 18.1. What am I doing wrong?
is a screenshot from my terminal.
Editing this answer to serve as placeholder and preserve the comments, but:
This question is answered in this previous question, and is therefore a clear duplicate:
https://stackoverflow.com/a/51721906/214150
The relevant section:
It is an expected behavior. python -m venv calls python -m ensurepip to install pip and This answer shows that ensurepip would only install the bundled version even with --upgrade option. There isn't any official option to update the bundled pip and setuptools.
The referenced question from that question:
`python -m ensurepip --upgrade` does not seem to be upgrading pip and setuptools
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.