Comments (6)
Seems to me it should expose the executable var to really support python3 well:
http://docs.ansible.com/ansible/latest/pip_module.html
from ansible-role-pip.
Sorry, I don't understand why this was closed. I just used the playbook as described in the README and it fails:
fatal: [xxx]: FAILED! => {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python3"}, "changed": false, "msg": "No package matching 'python-pip' is available"}
Setting pip_package: python3-pip
results in the same error.
So either the documentation is insufficient or the README is incorrect about this not requiring any dependencies/prior steps.
Edit: seems it is related to #12
from ansible-role-pip.
@josdotso Isn't this enough:
- role: geerlingguy.pip
pip_package: python3-pip
?
from ansible-role-pip.
It does not seem to be for me
pip_package: python3-pip
pip_install_packages:
- certbot-dns-cloudflare
failed: [web01] (item=certbot-dns-cloudflare) => {"changed": false, "item": "certbot-dns-cloudflare", "msg": "Unable to find any of pip2, pip to use. pip needs to be installed."}
pip_package: python3-pip
which pip
[empty response]
which pip3
/usr/bin/pip3
pip_package: python-pip
which pip
/usr/bin/pip
which pip3
[empty response]
Seems it just needs a symlink if pip_package == 'python3-pip'
from ansible-role-pip.
The above PR might not be enough to install the pip3 packages from what I just tested.
If I find something I will update the PR.
from ansible-role-pip.
PR-15 has been updated. A much better fix.
from ansible-role-pip.
Related Issues (20)
- Support installing packages from requirements.txt HOT 2
- find_packages() got an unexpected keyword argument 'include' HOT 3
- CentOS 8 / EL 8, python-pip is not an available package HOT 8
- Barfs out with "ImportError: No module named pkg_resources" HOT 4
- PIP install should not set ansible PPA HOT 3
- Would it be possible to allow us to pass extra_args?
- Getting a 404 error when download the .deb HOT 1
- [DEPRECATION WARNING]: Invoking "pip" only once while using a loop via squash_actions is deprecated HOT 10
- Fails on Ubuntu HOT 4
- Setting `virtualenv` leads to "parameters are mutually exclusive: executable|virtualenv" HOT 2
- Wrong Repo URL HOT 2
- How to install the latest 21.3.1 version of pip, and not 9.0.1 - cant install docker-compose on Ubuntu 18.04 HOT 4
- No package matching 'python3-pip' is available HOT 3
- Failed install on debian10 HOT 3
- Parameters are mutually exclusive: executable|virtualenv HOT 6
- pip breaks after running geerlingguy.pip HOT 3
- Can't install docker using pip on Debian 12 HOT 9
- docker-compose pip package installation fails on Debian 12. HOT 3
- Can't install role from Ansible Galaxy: error: unable to compare role versions HOT 7
- v3 tag isn't available on anible-galaxy HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-role-pip.