In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
The previous article mentioned that bug, which is always found to make mistakes in python code, is not really the problem of its own code. It turns out that it is the problem of win10. Windows really needs a lot of patience to develop. If you are interested, you can refer to this: python3 encounters the pit of win10.
This time encountered pip installation package reported OSError, how to deal with it?
Pip install requests
OSError: raw write () returned invalid length 134( should have been between 0 and 92)
In fact, it is also simple, one order is done, watch this:
Chcp 65001
Active code page: 65001
Then the installation will be very smooth and successful!
Pip install requests
Successfully installed certifi-2018.4.16 chardet-3.0.4 idna-2.7 requests-2.19.1 urllib3-1.23
Why?
Because of the coding of the terminal, under the win10 environment, the Terminal terminal code of pycharm is 936, that is, the American code. View the available commands:
Chcp
nine hundred and thirty six
Use chcp 65001, that is, change to utf-8 coding
For details of this bug, please see: https://bugs.python.org/issue32245#msg308012
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.