How to solve the problem with installing packages through pip3?












1















The program worked correctly, then when I tried to install the IMAPClient module I got an error:



sudo pip3 install IMAPClient

File "/usr/local/lib/python3.6/dist-packages/run/__init__.py", line
145, in __new__
process = cls.create_process(command, stdin, cwd=cwd, env=env, shell=shell)
File "/usr/local/lib/python3.6/dist-packages/run/__init__.py", line
121, in create_process
shlex.split(command),
File "/usr/lib/python3.6/shlex.py", line 305, in split
return list(lex)
File "/usr/lib/python3.6/shlex.py", line 295, in __next__
token = self.get_token()
File "/usr/lib/python3.6/shlex.py", line 105, in get_token
raw = self.read_token()
File "/usr/lib/python3.6/shlex.py", line 136, in read_token
**strong text**nextchar = self.instream.read(1)
AttributeError: 'tuple' object has no attribute 'read'


I tried to reinstall pip, I also thought that there was a problem in some of the installed packages, if I try to display a list of packages, I get:



pip3 list
Package Version
------------------------ ---------
apt-clone 0.2.1
apturl 0.5.2
asn1crypto 0.24.0
bcrypt 3.1.4
(some more packages).........


Really looking forward to advice, honestly searched the forum before asking.










share|improve this question

























  • Hi man, very weird, I managed to install IMAPClient on my local env with python3.6. Can you add the full pip list to your post please?

    – eladm26
    Nov 14 '18 at 8:43











  • Thanks for the reaction, I kind of managed to fix it=)

    – REO
    Nov 14 '18 at 9:21


















1















The program worked correctly, then when I tried to install the IMAPClient module I got an error:



sudo pip3 install IMAPClient

File "/usr/local/lib/python3.6/dist-packages/run/__init__.py", line
145, in __new__
process = cls.create_process(command, stdin, cwd=cwd, env=env, shell=shell)
File "/usr/local/lib/python3.6/dist-packages/run/__init__.py", line
121, in create_process
shlex.split(command),
File "/usr/lib/python3.6/shlex.py", line 305, in split
return list(lex)
File "/usr/lib/python3.6/shlex.py", line 295, in __next__
token = self.get_token()
File "/usr/lib/python3.6/shlex.py", line 105, in get_token
raw = self.read_token()
File "/usr/lib/python3.6/shlex.py", line 136, in read_token
**strong text**nextchar = self.instream.read(1)
AttributeError: 'tuple' object has no attribute 'read'


I tried to reinstall pip, I also thought that there was a problem in some of the installed packages, if I try to display a list of packages, I get:



pip3 list
Package Version
------------------------ ---------
apt-clone 0.2.1
apturl 0.5.2
asn1crypto 0.24.0
bcrypt 3.1.4
(some more packages).........


Really looking forward to advice, honestly searched the forum before asking.










share|improve this question

























  • Hi man, very weird, I managed to install IMAPClient on my local env with python3.6. Can you add the full pip list to your post please?

    – eladm26
    Nov 14 '18 at 8:43











  • Thanks for the reaction, I kind of managed to fix it=)

    – REO
    Nov 14 '18 at 9:21
















1












1








1








The program worked correctly, then when I tried to install the IMAPClient module I got an error:



sudo pip3 install IMAPClient

File "/usr/local/lib/python3.6/dist-packages/run/__init__.py", line
145, in __new__
process = cls.create_process(command, stdin, cwd=cwd, env=env, shell=shell)
File "/usr/local/lib/python3.6/dist-packages/run/__init__.py", line
121, in create_process
shlex.split(command),
File "/usr/lib/python3.6/shlex.py", line 305, in split
return list(lex)
File "/usr/lib/python3.6/shlex.py", line 295, in __next__
token = self.get_token()
File "/usr/lib/python3.6/shlex.py", line 105, in get_token
raw = self.read_token()
File "/usr/lib/python3.6/shlex.py", line 136, in read_token
**strong text**nextchar = self.instream.read(1)
AttributeError: 'tuple' object has no attribute 'read'


I tried to reinstall pip, I also thought that there was a problem in some of the installed packages, if I try to display a list of packages, I get:



pip3 list
Package Version
------------------------ ---------
apt-clone 0.2.1
apturl 0.5.2
asn1crypto 0.24.0
bcrypt 3.1.4
(some more packages).........


Really looking forward to advice, honestly searched the forum before asking.










share|improve this question
















The program worked correctly, then when I tried to install the IMAPClient module I got an error:



sudo pip3 install IMAPClient

File "/usr/local/lib/python3.6/dist-packages/run/__init__.py", line
145, in __new__
process = cls.create_process(command, stdin, cwd=cwd, env=env, shell=shell)
File "/usr/local/lib/python3.6/dist-packages/run/__init__.py", line
121, in create_process
shlex.split(command),
File "/usr/lib/python3.6/shlex.py", line 305, in split
return list(lex)
File "/usr/lib/python3.6/shlex.py", line 295, in __next__
token = self.get_token()
File "/usr/lib/python3.6/shlex.py", line 105, in get_token
raw = self.read_token()
File "/usr/lib/python3.6/shlex.py", line 136, in read_token
**strong text**nextchar = self.instream.read(1)
AttributeError: 'tuple' object has no attribute 'read'


I tried to reinstall pip, I also thought that there was a problem in some of the installed packages, if I try to display a list of packages, I get:



pip3 list
Package Version
------------------------ ---------
apt-clone 0.2.1
apturl 0.5.2
asn1crypto 0.24.0
bcrypt 3.1.4
(some more packages).........


Really looking forward to advice, honestly searched the forum before asking.







python pip






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 14 '18 at 9:46









Anoop Kumar

250113




250113










asked Nov 14 '18 at 8:25









REOREO

114




114













  • Hi man, very weird, I managed to install IMAPClient on my local env with python3.6. Can you add the full pip list to your post please?

    – eladm26
    Nov 14 '18 at 8:43











  • Thanks for the reaction, I kind of managed to fix it=)

    – REO
    Nov 14 '18 at 9:21





















  • Hi man, very weird, I managed to install IMAPClient on my local env with python3.6. Can you add the full pip list to your post please?

    – eladm26
    Nov 14 '18 at 8:43











  • Thanks for the reaction, I kind of managed to fix it=)

    – REO
    Nov 14 '18 at 9:21



















Hi man, very weird, I managed to install IMAPClient on my local env with python3.6. Can you add the full pip list to your post please?

– eladm26
Nov 14 '18 at 8:43





Hi man, very weird, I managed to install IMAPClient on my local env with python3.6. Can you add the full pip list to your post please?

– eladm26
Nov 14 '18 at 8:43













Thanks for the reaction, I kind of managed to fix it=)

– REO
Nov 14 '18 at 9:21







Thanks for the reaction, I kind of managed to fix it=)

– REO
Nov 14 '18 at 9:21














1 Answer
1






active

oldest

votes


















0














Perhaps this is a stupid solution but it worked, I ended up using commands:



1)sudo apt-get purge python3-pip
2)deleted the pip folder in the "/usr/lib/python3/dist-packages/pip" directory


because the folder always remained, and if I re-installed the pip package, there was no effect



3) sudo easy_install pip


As a result, my pip earned and I was able to install the package, though I need to update the version.



$ pip3 -V

pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)


But the reason for the breakdown, I did not determine. Thanks to everyone who took the time to solve this problem)






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53295796%2fhow-to-solve-the-problem-with-installing-packages-through-pip3%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Perhaps this is a stupid solution but it worked, I ended up using commands:



    1)sudo apt-get purge python3-pip
    2)deleted the pip folder in the "/usr/lib/python3/dist-packages/pip" directory


    because the folder always remained, and if I re-installed the pip package, there was no effect



    3) sudo easy_install pip


    As a result, my pip earned and I was able to install the package, though I need to update the version.



    $ pip3 -V

    pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)


    But the reason for the breakdown, I did not determine. Thanks to everyone who took the time to solve this problem)






    share|improve this answer




























      0














      Perhaps this is a stupid solution but it worked, I ended up using commands:



      1)sudo apt-get purge python3-pip
      2)deleted the pip folder in the "/usr/lib/python3/dist-packages/pip" directory


      because the folder always remained, and if I re-installed the pip package, there was no effect



      3) sudo easy_install pip


      As a result, my pip earned and I was able to install the package, though I need to update the version.



      $ pip3 -V

      pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)


      But the reason for the breakdown, I did not determine. Thanks to everyone who took the time to solve this problem)






      share|improve this answer


























        0












        0








        0







        Perhaps this is a stupid solution but it worked, I ended up using commands:



        1)sudo apt-get purge python3-pip
        2)deleted the pip folder in the "/usr/lib/python3/dist-packages/pip" directory


        because the folder always remained, and if I re-installed the pip package, there was no effect



        3) sudo easy_install pip


        As a result, my pip earned and I was able to install the package, though I need to update the version.



        $ pip3 -V

        pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)


        But the reason for the breakdown, I did not determine. Thanks to everyone who took the time to solve this problem)






        share|improve this answer













        Perhaps this is a stupid solution but it worked, I ended up using commands:



        1)sudo apt-get purge python3-pip
        2)deleted the pip folder in the "/usr/lib/python3/dist-packages/pip" directory


        because the folder always remained, and if I re-installed the pip package, there was no effect



        3) sudo easy_install pip


        As a result, my pip earned and I was able to install the package, though I need to update the version.



        $ pip3 -V

        pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)


        But the reason for the breakdown, I did not determine. Thanks to everyone who took the time to solve this problem)







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 14 '18 at 9:20









        REOREO

        114




        114






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53295796%2fhow-to-solve-the-problem-with-installing-packages-through-pip3%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Xamarin.iOS Cant Deploy on Iphone

            Glorious Revolution

            Dulmage-Mendelsohn matrix decomposition in Python