{"action":"created","issue":{"url":"https://api.github.com/repos/pypa/pip/issues/2758","labels_url":"https://api.github.com/repos/pypa/pip/issues/2758/labels{/name}","comments_url":"https://api.github.com/repos/pypa/pip/issues/2758/comments","events_url":"https://api.github.com/repos/pypa/pip/issues/2758/events","html_url":"https://github.com/pypa/pip/issues/2758","id":73606932,"number":2758,"title":"options.use_user_site is true, but shouldn't (pip 6.1.1)","user":{"login":"guettli","id":414336,"avatar_url":"https://avatars.githubusercontent.com/u/414336?v=3","gravatar_id":"","url":"https://api.github.com/users/guettli","html_url":"https://github.com/guettli","followers_url":"https://api.github.com/users/guettli/followers","following_url":"https://api.github.com/users/guettli/following{/other_user}","gists_url":"https://api.github.com/users/guettli/gists{/gist_id}","starred_url":"https://api.github.com/users/guettli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guettli/subscriptions","organizations_url":"https://api.github.com/users/guettli/orgs","repos_url":"https://api.github.com/users/guettli/repos","events_url":"https://api.github.com/users/guettli/events{/privacy}","received_events_url":"https://api.github.com/users/guettli/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-05-06T12:44:29Z","updated_at":"2015-05-08T11:20:18Z","closed_at":"2015-05-08T11:20:18Z","body":"We try an update from pip version 1.5.6 to 6.1.1.\r\n\r\nFor some reason there is this error:\r\n\r\n```\r\ncustomerx_dy@host> pip install ...\r\nWill not install to the user site because it will lack sys.path precedence to pip in /home/customerx_dy/lib/python2.7/site-packages\r\n```\r\n\r\nWe use a virtualenv in $HOME. We don't use the --user schema.\r\n\r\nI want to debug this code:\r\n```\r\n# pip/commands/install.py\r\n\r\n        if options.use_user_site:\r\n            if virtualenv_no_global():\r\n                raise InstallationError(\r\n                    \"Can not perform a '--user' install. User site-packages \"\r\n                    \"are not visible in this virtualenv.\"\r\n                )\r\n\r\n\r\n```\r\n\r\nsince we don't use --user, options.use_user_site should be false. Or I am wrong?\r\n\r\nI tried to debug where the true value in this variable comes from.\r\n\r\nIn pip/basecommand.py the options look like this:\r\n\r\nThe value use_user_site' is 1.\r\n\r\nWhere does this come from? Our pip.conf does not contain anything about \"user\".\r\n\r\n{'trusted_hosts': [], 'install_options': None, 'help': None, 'index_url': 'http://installserver:8080/pypi/simple/', 'target_dir': None, 'global_options': None, 'force_reinstall': None, 'default_vcs': '', 'ignore_installed': None, 'allow_all_insecure': False, 'no_index': False, 'verbose': 0, 'upgrade': None, 'requirements': [], 'log': None, 'use_user_site': 1, 'use_wheel': True, 'no_download': None, 'build_dir': None, 'disable_pip_version_check': False, 'extra_index_urls': [], 'version': None, 'find_links': [], 'editables': [], 'mirrors': [], 'src_dir': '/home/customerx_dy/src', 'as_egg': None, 'client_cert': None, 'download_cache': '~/.cache/pip', 'no_clean': False, 'download_dir': None, 'no_install': None, 'allow_external': [], 'use_mirrors': False, 'allow_unverified': [], 'proxy': '', 'log_explicit_levels': False, 'process_dependency_links': False, 'exists_action': [], 'retries': 5, 'pre': False, 'require_venv': False, 'no_input': False, 'allow_all_external': False, 'root_path': None, 'isolated_mode': False, 'quiet': 0, 'compile': True, 'cache_dir': '/home/customerx_dy/.cache/pip', 'timeout': 15, 'skip_requirements_regex': '', 'ignore_dependencies': False}\r\n\r\nCan you give us an advice how to debug this?"},"comment":{"url":"https://api.github.com/repos/pypa/pip/issues/comments/100197843","html_url":"https://github.com/pypa/pip/issues/2758#issuecomment-100197843","issue_url":"https://api.github.com/repos/pypa/pip/issues/2758","id":100197843,"user":{"login":"guettli","id":414336,"avatar_url":"https://avatars.githubusercontent.com/u/414336?v=3","gravatar_id":"","url":"https://api.github.com/users/guettli","html_url":"https://github.com/guettli","followers_url":"https://api.github.com/users/guettli/followers","following_url":"https://api.github.com/users/guettli/following{/other_user}","gists_url":"https://api.github.com/users/guettli/gists{/gist_id}","starred_url":"https://api.github.com/users/guettli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guettli/subscriptions","organizations_url":"https://api.github.com/users/guettli/orgs","repos_url":"https://api.github.com/users/guettli/repos","events_url":"https://api.github.com/users/guettli/events{/privacy}","received_events_url":"https://api.github.com/users/guettli/received_events","type":"User","site_admin":false},"created_at":"2015-05-08T11:20:18Z","updated_at":"2015-05-08T11:20:18Z","body":"I am very sorry. This was my fault.\r\n\r\nI only checked `~/.pip/pip.conf`\r\n\r\nbut the config was taken from `./.config/pip/pip.conf`"}}