-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
'site' has no attribute "getsitepackages" #228
Comments
Yes, one of the uglier aspects of virtualenv's implementation is that it has to have its own copy of the site module, which is used for all virtualenvs regardless of which version of Python they are created with. And this copy predates the addition of I would have no objection to a pull request adding that function to virtualenv's site module, as long as the implementation is one that can work on all virtualenv-supported versions of Python (2.4 through 3.3a). Or if that's too difficult due to missing APIs in other areas of the earlier Python versions, perhaps have it conditionally defined depending on |
duplicate #355 |
closing as dupe to #355, since it's more generic. |
…tualenv#228" This reverts commit 058bebf.
site.getsitepackages() doesn't work inside virtualenv: pypa/virtualenv#228 pypa/virtualenv#355
have this issue with Python 3.6.5 >> python --version && python -c "import site; print(site.getsitepackages())"
Python 3.6.5
Traceback (most recent call last):
File "<string>", line 1, in <module>
AttributeError: module 'site' has no attribute 'getsitepackages' not duplicate of #355 |
Any virtualenv, with or without
--system-site-packages
, gives me:The text was updated successfully, but these errors were encountered: