Skip to content
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

use always the newest pip in new virtual environments? #8

Open
fohrloop opened this issue Dec 6, 2021 · 2 comments
Open

use always the newest pip in new virtual environments? #8

fohrloop opened this issue Dec 6, 2021 · 2 comments

Comments

@fohrloop
Copy link
Owner

fohrloop commented Dec 6, 2021

Very often python comes with an old pip version which may produce different kinds of problems. After using pip command in a fresh virtual environment, user usually sees a text like this:

WARNING: You are using pip version 20.2.1; however, version 21.3.1 is available.
You should consider upgrading via the 'c:\python\venvs\someproj\scripts\python.exe -m pip install --upgrade pip' command.

it might be actually handy to have the venvlink new venv creation process to automatically do this. This could be also an option in the venvlinkrc.

@eabase
Copy link

eabase commented Feb 15, 2024

Yes, I just noticed this. Even when using -S.

Why is it using the old version?
Where in the code is this done?

@fohrloop
Copy link
Owner Author

Right now what is passed to venv creation is

  • name of the venv
  • workdir (project directory)
  • system site packages argument

Source code is at:

vlink.create_venv(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants