Numpy库安装出错,求大佬解答!!!

C:\Users\清风\AppData\Local\Programs\Python\Python35\Scripts>pip install "numpy-1.17.0+mkl-cp35-none-win_amd64.whl"
Requirement 'numpy-1.17.0+mkl-cp35-none-win_amd64.whl' looks like a filename, but the file does not exist
Processing c:\users\清风\appdata\local\programs\python\python35\scripts\numpy-1.17.0+mkl-cp35-none-win_amd64.whl
Exception:
Traceback (most recent call last):
File "c:\users\清风\appdata\local\programs\python\python35\lib\site-packages\pip\basecommand.py", line 211, in main
status = self.run(options, args)
File "c:\users\清风\appdata\local\programs\python\python35\lib\site-packages\pip\commands\install.py", line 305, in run
wb.build(autobuilding=True)
File "c:\users\清风\appdata\local\programs\python\python35\lib\site-packages\pip\wheel.py", line 705, in build
self.requirement_set.prepare_files(self.finder)
File "c:\users\清风\appdata\local\programs\python\python35\lib\site-packages\pip\req\req_set.py", line 334, in prepare_files
functools.partial(self._prepare_file, finder))
File "c:\users\清风\appdata\local\programs\python\python35\lib\site-packages\pip\req\req_set.py", line 321, in _walk_req_to_install
more_reqs = handler(req_to_install)
File "c:\users\清风\appdata\local\programs\python\python35\lib\site-packages\pip\req\req_set.py", line 491, in _prepare_file
session=self.session)
File "c:\users\清风\appdata\local\programs\python\python35\lib\site-packages\pip\download.py", line 814, in unpack_url
unpack_file_url(link, location, download_dir)
File "c:\users\清风\appdata\local\programs\python\python35\lib\site-packages\pip\download.py", line 723, in unpack_file_url
unpack_file(from_path, location, content_type, link)
File "c:\users\清风\appdata\local\programs\python\python35\lib\site-packages\pip\utils\__init__.py", line 645, in unpack_file
flatten=not filename.endswith('.whl')
File "c:\users\清风\appdata\local\programs\python\python35\lib\site-packages\pip\utils\__init__.py", line 529, in unzip_file
zipfp = open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\清风\\AppData\\Local\\Programs\\Python\\Python35\\Scripts\\numpy-1.17.0+mkl-cp35-none-win_amd64.whl'
You are using pip version 7.1.2, however version 19.2.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

>You are using pip version 7.1.2, however version 19.2.1 is available.
>You should consider upgrading via the 'python -m pip install --upgrade pip' >command.
最后两行提示说,你这个pip版本还是7.1.2,pip最新版本已经更新到19.2.1了。
建议你先更新到最新的pip,然后安装试一下。
python -m pip installer -U pip --user

而且建议你先别用numpy 1.17.00的版本,貌似有点问题没解决完,在最后pyinstaller打包后的exe会遇到问题,先使用1.16.4版本。
python -m pip installer -U numpy==1.16.4 --user
温馨提示:答案为网友推荐,仅供参考
第1个回答  2019-08-06
不用指定具体版本?

安装时基本不出现这个问题
相似回答