Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #11421 > unrolled thread

Cant run pip3 as user.

Started byaprekates <aprekates@posteo.net>
First post2019-04-30 19:50 +0200
Last post2019-04-30 21:20 +0200
Articles 3 — 2 participants

Back to article view | Back to linux.debian.maint.python


Contents

  Cant run pip3 as user. aprekates <aprekates@posteo.net> - 2019-04-30 19:50 +0200
    Re: Cant run pip3 as user. Alex Mestiashvili <amestia@rsh2.donotuse.de> - 2019-04-30 21:10 +0200
      Re: Cant run pip3 as user. aprekates <aprekates@posteo.net> - 2019-04-30 21:20 +0200

#11421 — Cant run pip3 as user.

Fromaprekates <aprekates@posteo.net>
Date2019-04-30 19:50 +0200
SubjectCant run pip3 as user.
Message-ID<xSF3b-1X7-1@gated-at.bofh.it>
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 <module>
     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

[toc] | [next] | [standalone]


#11422

FromAlex Mestiashvili <amestia@rsh2.donotuse.de>
Date2019-04-30 21:10 +0200
Message-ID<xSGiB-2Ti-5@gated-at.bofh.it>
In reply to#11421
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 <module>
>     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

[toc] | [prev] | [next] | [standalone]


#11423

Fromaprekates <aprekates@posteo.net>
Date2019-04-30 21:20 +0200
Message-ID<xSGsh-2WN-3@gated-at.bofh.it>
In reply to#11422
Ok. i remove that dir and reinstall pip. Not its ok.

Thanks.

On 30/4/19 10:01 μ.μ., Alex Mestiashvili wrote:
>
> 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
>

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.maint.python


csiph-web