I decided to install linux in order to learn how to work with it, but this is not the task, I am writing to python3 and python3.4 is standard here, I could probably install python3.6, but I cannot install pip3, I get something like this in the terminal

artut1214@usser ~ $ pip3 install bs4 Traceback (most recent call last): File "/usr/bin/pip3", line 5, in <module> from pkg_resources import load_entry_point File "/usr/lib/python3/dist-packages/pkg_resources.py", line 1479, in <module> register_loader_type(importlib_bootstrap.SourceFileLoader, DefaultProvider) AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader' 

I am a complete newbie in linux, I can only write commands that say, I’ve covered all of stackoverflow , and other sites, nothing helps

PS python 3.6 works fine, and pip for python2 also

  • For a start, there are two points: 1) If you are using the third python, then why explicitly write pip3? Try mapping versions with the following commands: pip -V and pip3 -V . I think you get the same thing. 2) To perform the installation of any software in Linux (as a rule) root rights are required. Try this: sudo pip install bs4 - Sergey
  • I can not install pip3 - I do not understand! After all, this program you have already installed! What is evidenced by the obvious fact that it starts. Yes, and the error occurs in the file / usr / bin / pip3 . Those. he is already there. - Sergey
  • And finally - why are you betting bs4 ?! A package of delicious soup is set in the third python by default. Which is easily verified by running the python and entering the import bs4 command. It will work fine. - Sergey

0