Path: csiph.com!3.eu.feeder.erje.net!feeder.erje.net!news.unit0.net!newsfeed.CARNet.hr!news.spin.it!bofh.it!news.nic.it!robomod From: Alex Mestiashvili Newsgroups: linux.debian.maint.python Subject: Re: Cant run pip3 as user. Date: Tue, 30 Apr 2019 21:10:01 +0200 Message-ID: References: X-Original-To: aprekates , debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Tue Apr 30 19:09:20 2019 Old-Return-Path: X-Amavis-Spam-Status: No, score=-4.607 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, BODY_8BITS=1.5, FOURLA=0.1, LDO_WHITELIST=-5, RDNS_NONE=0.793] autolearn=no autolearn_force=no X-Policyd-Weight: using cached result; rate: -4.6 X-Greylist: delayed 461 seconds by postgrey-1.36 at bendel; Tue, 30 Apr 2019 19:09:08 UTC User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Mailing-List: archive/latest/16898 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/e5f31638-5030-faa8-38db-ae1abf2522d1@rsh2.donotuse.de Approved: robomod@news.nic.it Lines: 43 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Tue, 30 Apr 2019 21:01:24 +0200 X-Original-Message-ID: X-Original-References: <2482028f-6ff0-a879-61ac-72c11f87585b@posteo.net> Xref: csiph.com linux.debian.maint.python:11422 On 4/30/19 7:40 PM, aprekates wrote: > Hi . Strangely i can run pip3 as user in my Debian 9.6 . > > $ which pip3 > /usr/bin/pip3 > > $ LANG=us sudo apt-cache policy  python3-pip > python3-pip: >   Installed: 9.0.1-2+deb9u1 >   Candidate: 9.0.1-2+deb9u1 >   Version table: >  *** 9.0.1-2+deb9u1 500 >         500 http://ftp.gr.debian.org/debian stretch/main amd64 Packages >         500 http://ftp.gr.debian.org/debian stretch/main i386 Packages >         100 /var/lib/dpkg/status > > $ pip3 --version > Traceback (most recent call last): >   File "/usr/bin/pip3", line 9, in >     from pip import main > ImportError: cannot import name 'main' > > $ sudo pip3 --version > pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.5) > > > thanks. > > Alexandros > > Hi, most likely you messed up your python modules, test it by renaming ~/local/lib/python3.6 to ~/local/lib/python3.6-test and try to run pip3 again. Also it makes more sense to ask this question on debian-user@lists.debian.org, debian-python@ is for python packages maintenance. Regards, Alex