(Python 3.6)安装Numpy + MKL但无法找到该目录

时间:2017-11-26 04:25:41

标签: python file numpy directory python-wheel

我无法使用scikit-learn运行Python 3.6并发现它是因为我需要Numpy + MKL。

我卸载了以前版本的numpy,scipy和scikit-learn然后运行:

C:\Users\Nick Nagy\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Python 3.6>py -3 -m pip install C:\Users\Nick Nagy\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Python 3.6\numpy-1.13.3+mkl-cp36-cp36m-win_amd64.whl

但是出现了以下错误:

Invalid requirement: 'C:\Users\Nick'
It looks like a path. Does it exist ?

我认为这是因为我的USERNAME中有空格,所以我尝试使用目录的引号:

C:\Users\Nick Nagy\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Python 3.6>py -3 -m pip install "C:\Users\Nick Nagy\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Python 3.6\numpy-1.13.3+mkl-cp36-cp36m-win_amd64.whl"

但现在我收到了这个错误:

Requirement 'C:\\Users\\Nick Nagy\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Python 3.6\\numpy-1.13.3+mkl-cp36-cp36m-win_amd64.whl' looks like a filename, but the file does not exist
Processing c:\users\nick nagy\appdata\roaming\microsoft\windows\start menu\programs\python 3.6\numpy-1.13.3+mkl-cp36-cp36m-win_amd64.whl
Exception:
Traceback (most recent call last):
  File "C:\Users\Nick Nagy\AppData\Local\Programs\Python\Python36\lib\site-packages\pip\basecommand.py", line 215, in main
status = self.run(options, args)
  File "C:\Users\Nick Nagy\AppData\Local\Programs\Python\Python36\lib\site-packages\pip\commands\install.py", line 335, in run
wb.build(autobuilding=True)
  File "C:\Users\Nick Nagy\AppData\Local\Programs\Python\Python36\lib\site-packages\pip\wheel.py", line 749, in build
self.requirement_set.prepare_files(self.finder)
  File "C:\Users\Nick Nagy\AppData\Local\Programs\Python\Python36\lib\site-packages\pip\req\req_set.py", line 380, in prepare_files
ignore_dependencies=self.ignore_dependencies))
  File "C:\Users\Nick Nagy\AppData\Local\Programs\Python\Python36\lib\site-packages\pip\req\req_set.py", line 620, in _prepare_file
session=self.session, hashes=hashes)
  File "C:\Users\Nick Nagy\AppData\Local\Programs\Python\Python36\lib\site-packages\pip\download.py", line 809, in unpack_url
unpack_file_url(link, location, download_dir, hashes=hashes)
  File "C:\Users\Nick Nagy\AppData\Local\Programs\Python\Python36\lib\site-packages\pip\download.py", line 715, in unpack_file_url
unpack_file(from_path, location, content_type, link)
  File "C:\Users\Nick Nagy\AppData\Local\Programs\Python\Python36\lib\site-packages\pip\utils\__init__.py", line 599, in unpack_file
flatten=not filename.endswith('.whl')
  File "C:\Users\Nick Nagy\AppData\Local\Programs\Python\Python36\lib\site-packages\pip\utils\__init__.py", line 482, in unzip_file
zipfp = open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\Nick Nagy\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Python 3.6\\numpy-1.13.3+mkl-cp36-cp36m-win_amd64.whl'

0 个答案:

没有答案