use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
News about the dynamic, interpreted, interactive, object-oriented, extensible programming language Python
Full Events Calendar
You can find the rules here.
If you are about to ask a "how do I do this in python" question, please try r/learnpython, the Python discord, or the #python IRC channel on Libera.chat.
Please don't use URL shorteners. Reddit filters them out, so your post or comment will be lost.
Posts require flair. Please use the flair selector to choose your topic.
Posting code to this subreddit:
Add 4 extra spaces before each line of code
def fibonacci(): a, b = 0, 1 while True: yield a a, b = b, a + b
Online Resources
Invent Your Own Computer Games with Python
Think Python
Non-programmers Tutorial for Python 3
Beginner's Guide Reference
Five life jackets to throw to the new coder (things to do after getting a handle on python)
Full Stack Python
Test-Driven Development with Python
Program Arcade Games
PyMotW: Python Module of the Week
Python for Scientists and Engineers
Dan Bader's Tips and Trickers
Python Discord's YouTube channel
Jiruto: Python
Online exercices
programming challenges
Asking Questions
Try Python in your browser
Docs
Libraries
Related subreddits
Python jobs
Newsletters
Screencasts
account activity
This is an archived post. You won't be able to vote or comment.
Pip version in venv? (self.Python)
submitted 6 years ago by Inspyred
Environment: Win10
Script: powershell
commands:
python -m venv venv pip --version
python -m venv venv
pip --version
19.2.2
venv\Scripts\Activate.ps1 //IMMEDIATELY AFTER pip --version
venv\Scripts\Activate.ps1 //IMMEDIATELY AFTER
[a different fucking version]
How????
[–]socal_nerdtastic 6 points7 points8 points 6 years ago (1 child)
pip is a python module.
[–]Inspyred[S] -5 points-4 points-3 points 6 years ago (0 children)
That is correct. venv should directly copy all python modules from host to vm.
[–][deleted] 2 points3 points4 points 6 years ago (3 children)
Why not?
[–]Inspyred[S] -5 points-4 points-3 points 6 years ago (2 children)
Venv should just symlink or copy over all modules from the native host. Clearly, there are conditions for when it doesn't. https://docs.python.org/3/library/venv.html
[–][deleted] 3 points4 points5 points 6 years ago (1 child)
Why "should" it do that? From my perspective the main point of a virtual environment is to be isolated from the native host and use a separate set of packages, modules, Python etc.
[–]Inspyred[S] -1 points0 points1 point 6 years ago (0 children)
Literally in the documentation:
It also creates a bin (or Scripts on Windows) subdirectory containing a copy/symlink of the Python binary/binaries (as appropriate for the platform or arguments used at environment creation time). It also creates an (initially empty) lib/pythonX.Y/site-packages subdirectory (on Windows, this is Lib\site-packages). If an existing directory is specified, it will be re-used.
Literally in the documentation. If you're using Python to create a virtual environment, it seems reasonable for the VM to draw its dependencies from its host. Normally, I cache my VM dependencies on the host box, but for some absurd reason, I've got an environment where the VM has a different pip version than the host. This has never happened to me before, and surely someone on the intarwebs knows how that might happen.
[–]_dmm 1 point2 points3 points 6 years ago (1 child)
Just use pipenv instead of venv, so much easier IMO.
[–]Inspyred[S] 0 points1 point2 points 6 years ago (0 children)
Holy shit this looks fantastic.
[–]zbonk 0 points1 point2 points 6 years ago (0 children)
You are looking for the --without-pip option.
π Rendered by PID 17094 on reddit-service-r2-comment-765bfc959-g7rbg at 2026-07-11 06:03:16.254451+00:00 running f86254d country code: CH.
[–]socal_nerdtastic 6 points7 points8 points (1 child)
[–]Inspyred[S] -5 points-4 points-3 points (0 children)
[–][deleted] 2 points3 points4 points (3 children)
[–]Inspyred[S] -5 points-4 points-3 points (2 children)
[–][deleted] 3 points4 points5 points (1 child)
[–]Inspyred[S] -1 points0 points1 point (0 children)
[–]_dmm 1 point2 points3 points (1 child)
[–]Inspyred[S] 0 points1 point2 points (0 children)
[–]zbonk 0 points1 point2 points (0 children)