{"action":"opened","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/2568","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/2568/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/2568/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/2568/events","html_url":"https://github.com/ansible/ansible-modules-core/issues/2568","id":119064948,"number":2568,"title":"pip3 tries to install in global dir instead of virtualenv","user":{"login":"bbc2","id":1645335,"avatar_url":"https://avatars.githubusercontent.com/u/1645335?v=3","gravatar_id":"","url":"https://api.github.com/users/bbc2","html_url":"https://github.com/bbc2","followers_url":"https://api.github.com/users/bbc2/followers","following_url":"https://api.github.com/users/bbc2/following{/other_user}","gists_url":"https://api.github.com/users/bbc2/gists{/gist_id}","starred_url":"https://api.github.com/users/bbc2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbc2/subscriptions","organizations_url":"https://api.github.com/users/bbc2/orgs","repos_url":"https://api.github.com/users/bbc2/repos","events_url":"https://api.github.com/users/bbc2/events{/privacy}","received_events_url":"https://api.github.com/users/bbc2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-26T15:32:01Z","updated_at":"2015-11-26T15:32:01Z","closed_at":null,"body":"Following up on https://github.com/ansible/ansible/issues/7625.  With a task like the following:\r\n```yaml\r\n- pip: name=cython virtualenv=/var/local/venv\r\n       executable=pip3 virtualenv=pyvenv\r\n```\r\nI get the following error:\r\n```\r\nrunning install_lib\r\n\r\ncopying build/lib.linux-x86_64-3.4/cython.py -> /usr/local/lib/python3.4/dist-packages\r\n\r\nerror: could not create '/usr/local/lib/python3.4/dist-packages/cython.py': Permission denied\r\n\r\n----------------------------------------\r\nCleaning up...\r\nCommand /usr/bin/python3 -c \"import setuptools, tokenize;__file__='/tmp/pip-build-5x3te1aw/Cython/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))\" install --record /tmp/pip-5i53pnrb-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip-build-5x3te1aw/Cython\r\nStoring debug log for failure in /tmp/tmpju40fc3m\r\n```\r\n\r\nPackages `python3-pip` and `python3-venv` are from Debian Jessie.  Ansible is in version 1.9.4.  It looks like it does the same with ansible 2.0.0 (devel 31d06886d5)."}}