Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
[root@localhost ~]# pip install aws
Collecting aws
Collecting prettytable>=0.7 (from aws)
Requirement already satisfied: boto in /usr/lib/python2.7/site-packages (from aws)
Collecting fabric>=1.6 (from aws)
Using cached Fabric-1.13.2-py2-none-any.whl
Collecting paramiko<3.0,>=1.10 (from fabric>=1.6->aws)
Using cached paramiko-2.1.2-py2.py3-none-any.whl
Collecting cryptography>=1.1 (from paramiko<3.0,>=1.10->fabric>=1.6->aws)
Downloading cryptography-1.8.2.tar.gz (423kB)
100% |████████████████████████████████| 430kB 588kB/s
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/usr/lib/python2.7/site-packages/pip/commands/install.py", line 335, in run
wb.build(autobuilding=True)
File "/usr/lib/python2.7/site-packages/pip/wheel.py", line 749, in build
self.requirement_set.prepare_files(self.finder)
File "/usr/lib/python2.7/site-packages/pip/req/req_set.py", line 380, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "/usr/lib/python2.7/site-packages/pip/req/req_set.py", line 634, in _prepare_file
abstract_dist.prep_for_dist()
File "/usr/lib/python2.7/site-packages/pip/req/req_set.py", line 129, in prep_for_dist
self.req_to_install.run_egg_info()
File "/usr/lib/python2.7/site-packages/pip/req/req_install.py", line 412, in run_egg_info
self.setup_py, self.name,
File "/usr/lib/python2.7/site-packages/pip/req/req_install.py", line 387, in setup_py
import setuptools # noqa
File "/usr/lib/python2.7/site-packages/setuptools/__init__.py", line 12, in <module>
import setuptools.version
File "/usr/lib/python2.7/site-packages/setuptools/version.py", line 1, in <module>
import pkg_resources
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 72, in <module>
import packaging.requirements
File "/usr/lib/python2.7/site-packages/packaging/requirements.py", line 59, in <module>
MARKER_EXPR = originalTextFor(MARKER_EXPR())("marker")
TypeError: __call__() takes exactly 2 arguments (1 given)
[root@localhost ~]#
Might have some suggestions, if you provided any useful details; read the "Question Guidelines" link in my posting signature. Things like version/distro of Linux, anything else you've done/tried so far, etc. Did you read/follow the instructions and perform the pre-install checks?
Hey guys, I'm coming back to this request I recently posted. In addition to this issue I had an issue where I couldn't run yum update, which turned out to be because I installed (or attempted to) a bad epel for my system. I've now fixed it and I'm trying to clean up other mistakes I made when I didn't have the right epel configured in yum
At the time I couldn't do a yum install python-pip so I ended up doing a python get-pip.py instead.
Then I was having issues as stated above. maybe due to the yum issues I was having
After fixing yum and getting my system current I wanted to uninstall pip and try it again using yum, so I ran
"python -m pip uninstall pip setuptools"
that seemed to work as I received no errors.
Now I'm trying to install pip via "yum install python-pip" but it's failing as if its already there. However, if I try running it its not there, and if I try uninstalling it, it says its not installed.
root@localhost tmp]# yum install -y python-pip
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.tripadvisor.com
* epel: mirror.math.princeton.edu
* extras: mirror.umd.edu
* updates: mirror.cs.pitt.edu
Package python2-pip-8.1.2-5.el7.noarch already installed and latest version
Nothing to do
[root@localhost tmp]# yum erase -y python-pip*
Loaded plugins: fastestmirror, langpacks
No Match for argument: python-pip*
No Packages marked for removal
[root@localhost tmp]# pip
-bash: pip: command not found
actually I think I'm good now. will update shortly. I reinstalled pip using get-pip.py, but now that its post the "yum update" running, I think it's behaving better. Trying to install several modules now. so far looks promising.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.