2017-03-19 107 views
0

我試圖安裝numpy + mkl for python 3.5.2,但出現以下錯誤。有沒有辦法來解決這個問題?舊的numpy版本會被打破嗎?python 3.5 numpy + mkl安裝錯誤

C:\WINDOWS\system32>pip3 install C:\Users\CTX383\Downloads\numpy-1.12.1+mkl-cp35-cp35m-win_amd64.whl 
    Processing c:\users\CTX383\downloads\numpy-1.12.1+mkl-cp35-cp35m-win_amd64.whl 
    Installing collected packages: numpy 
     Found existing installation: numpy 1.12.0 
    Exception: 
    Traceback (most recent call last): 
     File "c:\users\CTX383\appdata\local\programs\python\python35\lib\site-packages\pip\basecommand.py", line 209, in main 
     status = self.run(options, args) 
     File "c:\users\CTX383\appdata\local\programs\python\python35\lib\site-packages\pip\commands\install.py", line 317, in run 
     prefix=options.prefix_path, 
     File "c:\users\CTX383\appdata\local\programs\python\python35\lib\site-packages\pip\req\req_set.py", line 726, in install 
     requirement.uninstall(auto_confirm=True) 
     File "c:\users\CTX383\appdata\local\programs\python\python35\lib\site-packages\pip\req\req_install.py", line 699, in uninstall 
     for path in pip.wheel.uninstallation_paths(dist): 
     File "c:\users\CTX383\appdata\local\programs\python\python35\lib\site-packages\pip\wheel.py", line 533, in unique 
     for item in fn(*args, **kw): 
     File "c:\users\CTX383\appdata\local\programs\python\python35\lib\site-packages\pip\wheel.py", line 552, in uninstallation_paths 
     r = csv.reader(FakeFile(dist.get_metadata_lines('RECORD'))) 
     File "c:\users\CTX383\appdata\local\programs\python\python35\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 1624, in get_metadata_lines 
     return yield_lines(self.get_metadata(name)) 
     File "c:\users\CTX383\appdata\local\programs\python\python35\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 1621, in get_metadata 
     return self._get(self._fn(self.egg_info, name)).decode("utf-8") 
     File "c:\users\CTX383\appdata\local\programs\python\python35\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 1727, in _get 
     with open(path, 'rb') as stream: 
    FileNotFoundError: [Errno 2] No such file or directory: 'c:\\users\\CTX383\\appdata\\local\\programs\\python\\python35\\lib\\site-packages\\numpy-1.12.0.dist-info\\RECORD' 
    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. 
    C:\WINDOWS\system32> 
+4

您應該考慮通過'python -m pip install --upgrade pip'命令進行升級。 –

+0

升級pip,請先閱讀錯誤消息。 – Paddy

+0

@ user3483676嘗試pip3安裝--upgrade pip; pip2安裝 - 升級pip – Paddy

回答

0

用管理員權限打開您的CMD

然後,

mkdir c:\\users\\CTX383\\appdata\\local\\programs\\python\\python35\\lib\\site-packages\\numpy-1.12.0.dist-info

然後輸入你試圖做什麼都。

+0

我收到它已經存在的消息。 – user3483676

+0

現在我創建了目錄,但現在獲得權限錯誤,儘管我以管理員權限啓動了cmd。 – user3483676