Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why doesn't pip work?

Tags:

python

pip

I have installed pip and everything based off of this video, and the install seemed to look great. But when I say "import pip" in IDLE, I get this error:

  Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
  import pip
File "C:\Python33\lib\site-packages\pip\__init__.py", line 9, in <module>
  from pip.log import logger
File "C:\Python33\lib\site-packages\pip\log.py", line 8, in <module>
  from pip import backwardcompat
File "C:\Python33\lib\site-packages\pip\backwardcompat\__init__.py", line 27, in <module>
 console_encoding = sys.__stdout__.encoding
AttributeError: 'NoneType' object has no attribute 'encoding'

What did I do wrong?

like image 338
Isaiah Taylor Avatar asked Nov 26 '25 14:11

Isaiah Taylor


1 Answers

You don't import pip from within IDLE, you are supposed to call it from the command line. It is expecting there to be a stdout, but it looks like there is not one from within IDLE.

like image 157
Brian Campbell Avatar answered Nov 28 '25 02:11

Brian Campbell



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!