简体   繁体   中英

Install numpy Windows 8 64 with Python 3.5

I haven't been able to install numpy on the configuration described above. If I use pip install numpy I get this error

error: Micrsoft Visual C++ 14.0 is required (Unable to find vcvarsall.bat)

I tried downloading the file numpy‑1.9.2+mkl‑cp34‑none‑win_amd64.whl from here http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy and install it but I get an error that "the wheel is not a supported wheel on this platform". I tried using easy_install -U and I get that "This is the wrong setup.py file to run".

Finally I found a numpy-1.9.2-win32-superpack-python3.4.exe file here http://sourceforge.net/projects/numpy/files/NumPy/1.9.2/ but when I double click I get that I require Python version 3.4.

Is there anyway to install numpy for Python 3.5 for Windows 64 without changing Python version?

I ran into many similar problems before. Windows seems a little uncooperative when it deals with python. Any who, I chanced upon what proves so far to be a cure-all method for installing external libraries (I've done this with well over 10 of them, numpy included). Basically, download 7-zip, and download the zipped version of the file (usually the default from the source or sourceforge).Once downloaded, open the file in the file explorer, unzip it TWICE, and navigate until you see something like 'setup.py'. Then, hold shift and right-click in file explorer, and select 'open command line here'. From there, simply type 'setup.py install' and voila. Worked for me on all external libraries so far.

Try to install numpy using the package manager Conda .

I advise you to install Miniconda . It contains Python and the Conda package manager.

conda create --name py35numpy python=3.5 numpy

With this command you create a virtualenv with the name py35numpy, with the 3.5 version of Python and install the numpy package with all its dependencies.

Activate the virtual environment.

On Windows: activate py35numpy

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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