python pip command not working

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

python pip command not working

Postby morgano » Apr 4th, '18, 00:57

I solved what i needed in another way, so no hurry, but still: why dont python pip work now?
(a kind of python program installer)
I know i have used it a year or so ago, and there are also other examples on this forum.
This is Mga6 64 bit, with lots of updates from testing repo (Qt, Plasma, et al, and a bit more)

Spoiler:
# pip install bcrypt
Collecting bcrypt
Using cached bcrypt-3.1.4.tar.gz
Collecting cffi>=1.1 (from bcrypt)
Using cached cffi-1.11.5.tar.gz
Requirement already satisfied (use --upgrade to upgrade): six>=1.4.1 in /usr/lib/python3.5/site-packages (from bcrypt)
Collecting pycparser (from cffi>=1.1->bcrypt)
Using cached pycparser-2.18.tar.gz
Installing collected packages: pycparser, cffi, bcrypt
Exception:
Traceback (most recent call last):
File "/usr/lib/python3.5/site-packages/pip/basecommand.py", line 209, in main
status = self.run(options, args)
File "/usr/lib/python3.5/site-packages/pip/commands/install.py", line 326, in run
strip_file_prefix=options.strip_file_prefix,
File "/usr/lib/python3.5/site-packages/pip/req/req_set.py", line 731, in install
**kwargs
TypeError: install() got an unexpected keyword argument 'strip_file_prefix'
You are using pip version 8.0.3, however version 9.0.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

# pip install --upgrade pip
Collecting pip
Downloading pip-9.0.3-py2.py3-none-any.whl (1.4MB)
100% |████████████████████████████████| 1.4MB 343kB/s
Installing collected packages: pip
Found existing installation: pip 8.0.3
Uninstalling pip-8.0.3:
Successfully uninstalled pip-8.0.3
Rolling back uninstall of pip
Exception:
Traceback (most recent call last):
File "/usr/lib/python3.5/site-packages/pip/basecommand.py", line 209, in main
status = self.run(options, args)
File "/usr/lib/python3.5/site-packages/pip/commands/install.py", line 326, in run
strip_file_prefix=options.strip_file_prefix,
File "/usr/lib/python3.5/site-packages/pip/req/req_set.py", line 731, in install
**kwargs
TypeError: install() got an unexpected keyword argument 'strip_file_prefix'
You are using pip version 8.0.3, however version 9.0.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Mandriva since 2006, Mageia 2011 at home & work. Thinkpad T40, T43, T400, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 1306
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: python pip command not working

Postby doktor5000 » Apr 4th, '18, 12:31

Seems to be a bug with pip, although none has been reported to our bugzilla. Cf. https://github.com/iuscommunity-pkg/pyt ... p/issues/1
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17630
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: python pip command not working

Postby morgano » Apr 4th, '18, 21:09

Mandriva since 2006, Mageia 2011 at home & work. Thinkpad T40, T43, T400, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 1306
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest