1. 程式人生 > >重新安裝python時出現的問題

重新安裝python時出現的問題

這是用於記錄一次重灌系統後安裝python遇見的問題

今天重灌了電腦的系統,原先的win10 似乎有些問題,重灌後想裝回python,發現安裝numpy包和pandas包時有些問題。
安裝命令

pip install pandas

顯示報錯:

PS F:\python\Data_Ana\names> pip install pandas
Downloading/unpacking pandas
Cleaning up...
Exception:
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\pip
\basecommand.py", line 122, in main status = self.run(options, args) File "C:\Python27\lib\site-packages\pip\commands\install.py", line 278, in run requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) File "C:\Python27\lib\site-packages\pip\req.py", line 1197, in prepare_files do_download, File "C:\Python
27\lib\site-packages\pip\req.py", line 1375, in unpack_url self.session, File "C:\Python27\lib\site-packages\pip\download.py", line 572, in unpack_http_url download_hash = _download_url(resp, link, temp_location) File "C:\Python27\lib\site-packages\pip\download.py", line 433, in _download_url for chunk in resp_read(4096): File "C:\Python
27\lib\site-packages\pip\download.py", line 421, in resp_read chunk_size, decode_content=False): File "C:\Python27\lib\site-packages\pip\_vendor\requests\packages\urllib3\response.py", line 240, in stream data = self.read(amt=amt, decode_content=decode_content) File "C:\Python27\lib\site-packages\pip\_vendor\requests\packages\urllib3\response.py", line 187, in read data = self._fp.read(amt) File "C:\Python27\lib\httplib.py", line 573, in read s = self.fp.read(amt) File "C:\Python27\lib\socket.py", line 380, in read data = self._sock.recv(left) File "C:\Python27\lib\ssl.py", line 714, in recv return self.read(buflen) File "C:\Python27\lib\ssl.py", line 608, in read v = self._sslobj.read(len or 1024) SSLError: ('The read operation timed out',) Storing debug log for failure in C:\Users\Aukuno\pip\pip.log