简体   繁体   English

python 3.5 numpy + mkl安装错误

[英]python 3.5 numpy+mkl installation error

I tried to install numpy+mkl for python 3.5.2 but get the following error. 我尝试为python 3.5.2安装numpy + mkl,但收到以下错误。 Is there a way to fix this? 有没有办法解决这个问题? Could the old numpy version be broken? 旧的numpy版本会被破坏吗?

    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>

Open your CMD with Administrator Privilege. 使用管理员权限打开您的CMD

Then, 然后,

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

Then type what ever you was trying to do. 然后输入您要尝试执行的操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM