python 找不到cv2模块

E:\python\project>pip install numpy
Collecting numpy
  Downloading numpy-1.11.2-cp27-none-win_amd64.whl (7.4MB)
    46% |███████████████                 | 3.5MB 35kB/s eta 0:01:51Exception:
Traceback (most recent call last):
  File "d:\program files\python27\lib\site-packages\pip\basecommand.py", line 209, in main
    status = self.run(options, args)
  File "d:\program files\python27\lib\site-packages\pip\commands\install.py", line 299, in run
    requirement_set.prepare_files(finder)
  File "d:\program files\python27\lib\site-packages\pip\req\req_set.py", line 360, in prepare_files
    ignore_dependencies=self.ignore_dependencies))
  File "d:\program files\python27\lib\site-packages\pip\req\req_set.py", line 577, in _prepare_file
    session=self.session, hashes=hashes)
  File "d:\program files\python27\lib\site-packages\pip\download.py", line 810, in unpack_url
    hashes=hashes
  File "d:\program files\python27\lib\site-packages\pip\download.py", line 649, in unpack_http_url
    hashes)
  File "d:\program files\python27\lib\site-packages\pip\download.py", line 871, in _download_http_url
    _download_url(resp, link, content_file, hashes)
  File "d:\program files\python27\lib\site-packages\pip\download.py", line 595, in _download_url
    hashes.check_against_chunks(downloaded_chunks)
  File "d:\program files\python27\lib\site-packages\pip\utils\hashes.py", line 46, in check_against_chunks
    for chunk in chunks:
  File "d:\program files\python27\lib\site-packages\pip\download.py", line 563, in written_chunks
    for chunk in chunks:
  File "d:\program files\python27\lib\site-packages\pip\utils\ui.py", line 139, in iter
    for x in it:
  File "d:\program files\python27\lib\site-packages\pip\download.py", line 552, in resp_read
    decode_content=False):
  File "d:\program files\python27\lib\site-packages\pip\_vendor\requests\packages\urllib3\response.py", line 344, in stream
    data = self.read(amt=amt, decode_content=decode_content)
  File "d:\program files\python27\lib\site-packages\pip\_vendor\requests\packages\urllib3\response.py", line 311, in read
    flush_decoder = True
  File "d:\program files\python27\lib\contextlib.py", line 35, in __exit__
    self.gen.throw(type, value, traceback)
  File "d:\program files\python27\lib\site-packages\pip\_vendor\requests\packages\urllib3\response.py", line 240, in _error_catcher
    raise ReadTimeoutError(self._pool, None, 'Read timed out.')
ReadTimeoutError: HTTPSConnectionPool(host='pypi.python.org', port=443): Read timed out.
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

car
浏览 11438回答 3
3回答

yunsky0

如果是pip安装不到的话,你可以试着使用国内的python插件镜像
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Python