Python Numpy Installation Windows 10 64-bit

别等时光非礼了梦想. 提交于 2019-12-03 16:53:03

You installed Anaconda, which is a nice starting point.

You are trying to manually compile, which is not necessary. Numpy is installed within the Anaconda environment by default.

So if you correctly installed Anaconda, the following will work:

conda update --prefix #PATHNAME #name <- directory where conda is installed.

in my case:

conda update --prefix C:\Users\NAME\Anaconda anaconda

Just ensure that you do not have conflicting python environments. Either conda or regular python install.

To check whether it worked, use the following:

(in command line)

python
>>>import numpy
>>>numpy.__version__

If it does not return '1.9.0' something went wrong, and I'd be happy to hear what happened.

As for the editor: if you have idle installed within your python environment (conda), you should be able to run it without a hitch.

If you are not particularly picky about which editor to use though, you can use the spyder module, which also comes with Anaconda by default.

You can run it from the windows start menu, or by typing spyder in your command line.

For future and for all with Windows 10 64-bit do not install Python from python.org

The easiest way for win 10 to avoid manual steps is Conda package

  • install Miniconda (I prefer) or Anaconda (contain Python 64 or 32bit)
  • in Powershell

    conda install numpy

This way you can probably get all lib and packages - Anaconda includes 125 packages. If you don't wanna all of them Miniconda is just Python with the Conda package manager, so you install only what you need

I just did that:

  • Uninstall your actual Python (mine: 3.6)
  • Install all I needed with Miniconda

Numpy works :)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!