无法安装噪音模块

时间:2018-11-18 20:45:47

标签: python module pip install noise

我试图通过PIP安装“噪声”模块(https://pypi.org/project/noise/),但它向我展示了这个...

Collecting noise
Using cached https://files.pythonhosted.org/packages/18/29/bb830ee6d934311e17a7a4fa1368faf3e73fbb09c0d80fc44e41828df177/noise-1.2.2.tar.gz
Installing collected packages: noise
Running setup.py install for noise ... error
Complete output from command C:\Users\Zapdexio\AppData\Local\Programs\Python\Python37\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Zapdexio\\AppData\\Local\\Temp\\pip-install-jn9dq5g6\\noise\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\Zapdexio\AppData\Local\Temp\pip-record-iqmzked2\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.7
creating build\lib.win-amd64-3.7\noise
copying perlin.py -> build\lib.win-amd64-3.7\noise
copying setup.py -> build\lib.win-amd64-3.7\noise
copying shader.py -> build\lib.win-amd64-3.7\noise
copying shader_noise.py -> build\lib.win-amd64-3.7\noise
copying test.py -> build\lib.win-amd64-3.7\noise
copying __init__.py -> build\lib.win-amd64-3.7\noise
running build_ext
building 'noise._simplex' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/

----------------------------------------
Command "C:\Users\Zapdexio\AppData\Local\Programs\Python\Python37\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Zapdexio\\AppData\\Local\\Temp\\pip-install-jn9dq5g6\\noise\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\Zapdexio\AppData\Local\Temp\pip-record-iqmzked2\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Zapdexio\AppData\Local\Temp\pip-install-jn9dq5g6\noise\

问题是我已经已经安装了Microsoft Visual C ++ 14.0,我不知道该如何处理... 有谁可以帮助我吗? ;-;

1 个答案:

答案 0 :(得分:2)

在Windows上安装需要c ++编译的python库可能很麻烦。幸运的是,社区有来自加利福尼亚大学欧文分校的克里斯·高尔克(Chris Gohlke)的非常有用的贡献者,该人主持了许多用于窗口的预编译轮子。幸运的是,其中有noise is one个预编译的轮子。转到链接并下载适合您的python版本和您的计算机操作系统(64位或32位)的whee。下载文件后,您可以使用以下方法安装滚轮:

    pip install c:\path\to\downloaded\wheel