caseman / noise

Perlin noise library for Python
MIT License
414 stars 69 forks source link

Cant install noise via pip #32

Open hafizosina opened 4 years ago

hafizosina commented 4 years ago

i tried to install noise using pip but i got this error

C:\Users\Zhenzhu\Downloads>python -m pip install noise
Collecting noise
  Using cached noise-1.2.2.tar.gz (125 kB)
Building wheels for collected packages: noise
  Building wheel for noise (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'C:\Users\Zhenzhu\AppData\Local\Programs\Python\Python37-32\python.exe' -u -c 'import sy
s, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Zhenzhu\\AppData\\Local\\Temp\\pip-install-yy
np_3j2\\noise\\setup.py'"'"'; __file__='"'"'C:\\Users\\Zhenzhu\\AppData\\Local\\Temp\\pip-install-yy
np_3j2\\noise\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().repla
ce('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_whee
l -d 'C:\Users\Zhenzhu\AppData\Local\Temp\pip-wheel-8w7hu8rj'
       cwd: C:\Users\Zhenzhu\AppData\Local\Temp\pip-install-yynp_3j2\noise\
  Complete output (14 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win32-3.7
  creating build\lib.win32-3.7\noise
  copying perlin.py -> build\lib.win32-3.7\noise
  copying shader.py -> build\lib.win32-3.7\noise
  copying shader_noise.py -> build\lib.win32-3.7\noise
  copying test.py -> build\lib.win32-3.7\noise
  copying __init__.py -> build\lib.win32-3.7\noise
  running build_ext
  building 'noise._simplex' extension
  error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https:/
/visualstudio.microsoft.com/downloads/
  ----------------------------------------
  ERROR: Failed building wheel for noise
  Running setup.py clean for noise
Failed to build noise
Installing collected packages: noise
    Running setup.py install for noise ... error
    ERROR: Command errored out with exit status 1:
     command: 'C:\Users\Zhenzhu\AppData\Local\Programs\Python\Python37-32\python.exe' -u -c 'import
sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Zhenzhu\\AppData\\Local\\Temp\\pip-install-
yynp_3j2\\noise\\setup.py'"'"'; __file__='"'"'C:\\Users\\Zhenzhu\\AppData\\Local\\Temp\\pip-install-
yynp_3j2\\noise\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().rep
lace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install
--record 'C:\Users\Zhenzhu\AppData\Local\Temp\pip-record-8rk8l89l\install-record.txt' --single-versi
on-externally-managed --compile --install-headers 'C:\Users\Zhenzhu\AppData\Local\Programs\Python\Py
thon37-32\Include\noise'
         cwd: C:\Users\Zhenzhu\AppData\Local\Temp\pip-install-yynp_3j2\noise\
    Complete output (14 lines):
    running install
    running build
    running build_py
    creating build
    creating build\lib.win32-3.7
    creating build\lib.win32-3.7\noise
    copying perlin.py -> build\lib.win32-3.7\noise
    copying shader.py -> build\lib.win32-3.7\noise
    copying shader_noise.py -> build\lib.win32-3.7\noise
    copying test.py -> build\lib.win32-3.7\noise
    copying __init__.py -> build\lib.win32-3.7\noise
    running build_ext
    building 'noise._simplex' extension
    error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https
://visualstudio.microsoft.com/downloads/
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\Zhenzhu\AppData\Local\Programs\Python\Pytho
n37-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Zhenzhu\\A
ppData\\Local\\Temp\\pip-install-yynp_3j2\\noise\\setup.py'"'"'; __file__='"'"'C:\\Users\\Zhenzhu\\A
ppData\\Local\\Temp\\pip-install-yynp_3j2\\noise\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"',
open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __f
ile__, '"'"'exec'"'"'))' install --record 'C:\Users\Zhenzhu\AppData\Local\Temp\pip-record-8rk8l89l\i
nstall-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\Zhenzhu
\AppData\Local\Programs\Python\Python37-32\Include\noise' Check the logs for full command output.

i'm using python 3.7

fepegar commented 4 years ago

Might be related to https://github.com/Slicer/Slicer/issues/4954#issuecomment-638444167

spfaul commented 3 years ago

i tried to install noise using pip but i got this error

C:\Users\Zhenzhu\Downloads>python -m pip install noise
Collecting noise
  Using cached noise-1.2.2.tar.gz (125 kB)
Building wheels for collected packages: noise
  Building wheel for noise (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'C:\Users\Zhenzhu\AppData\Local\Programs\Python\Python37-32\python.exe' -u -c 'import sy
s, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Zhenzhu\\AppData\\Local\\Temp\\pip-install-yy
np_3j2\\noise\\setup.py'"'"'; __file__='"'"'C:\\Users\\Zhenzhu\\AppData\\Local\\Temp\\pip-install-yy
np_3j2\\noise\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().repla
ce('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_whee
l -d 'C:\Users\Zhenzhu\AppData\Local\Temp\pip-wheel-8w7hu8rj'
       cwd: C:\Users\Zhenzhu\AppData\Local\Temp\pip-install-yynp_3j2\noise\
  Complete output (14 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win32-3.7
  creating build\lib.win32-3.7\noise
  copying perlin.py -> build\lib.win32-3.7\noise
  copying shader.py -> build\lib.win32-3.7\noise
  copying shader_noise.py -> build\lib.win32-3.7\noise
  copying test.py -> build\lib.win32-3.7\noise
  copying __init__.py -> build\lib.win32-3.7\noise
  running build_ext
  building 'noise._simplex' extension
  error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https:/
/visualstudio.microsoft.com/downloads/
  ----------------------------------------
  ERROR: Failed building wheel for noise
  Running setup.py clean for noise
Failed to build noise
Installing collected packages: noise
    Running setup.py install for noise ... error
    ERROR: Command errored out with exit status 1:
     command: 'C:\Users\Zhenzhu\AppData\Local\Programs\Python\Python37-32\python.exe' -u -c 'import
sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Zhenzhu\\AppData\\Local\\Temp\\pip-install-
yynp_3j2\\noise\\setup.py'"'"'; __file__='"'"'C:\\Users\\Zhenzhu\\AppData\\Local\\Temp\\pip-install-
yynp_3j2\\noise\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().rep
lace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install
--record 'C:\Users\Zhenzhu\AppData\Local\Temp\pip-record-8rk8l89l\install-record.txt' --single-versi
on-externally-managed --compile --install-headers 'C:\Users\Zhenzhu\AppData\Local\Programs\Python\Py
thon37-32\Include\noise'
         cwd: C:\Users\Zhenzhu\AppData\Local\Temp\pip-install-yynp_3j2\noise\
    Complete output (14 lines):
    running install
    running build
    running build_py
    creating build
    creating build\lib.win32-3.7
    creating build\lib.win32-3.7\noise
    copying perlin.py -> build\lib.win32-3.7\noise
    copying shader.py -> build\lib.win32-3.7\noise
    copying shader_noise.py -> build\lib.win32-3.7\noise
    copying test.py -> build\lib.win32-3.7\noise
    copying __init__.py -> build\lib.win32-3.7\noise
    running build_ext
    building 'noise._simplex' extension
    error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https
://visualstudio.microsoft.com/downloads/
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\Zhenzhu\AppData\Local\Programs\Python\Pytho
n37-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Zhenzhu\\A
ppData\\Local\\Temp\\pip-install-yynp_3j2\\noise\\setup.py'"'"'; __file__='"'"'C:\\Users\\Zhenzhu\\A
ppData\\Local\\Temp\\pip-install-yynp_3j2\\noise\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"',
open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __f
ile__, '"'"'exec'"'"'))' install --record 'C:\Users\Zhenzhu\AppData\Local\Temp\pip-record-8rk8l89l\i
nstall-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\Zhenzhu
\AppData\Local\Programs\Python\Python37-32\Include\noise' Check the logs for full command output.

i'm using python 3.7

i got the same error, did you manage to fix it?

varshinily commented 3 years ago

I'm currently using Python 3.9.4 and I tried installing noise using pip, but I'm also getting a similar error:

Collecting noise
  Using cached noise-1.2.2.zip (132 kB)
Building wheels for collected packages: noise
  Building wheel for noise (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/local/opt/python@3.9/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/qj/5flhy9ds42z1fyxzth0lfw8c0000gn/T/pip-install-9ac056of/noise_2d134114623f486aa3328f2b27aff13c/setup.py'"'"'; __file__='"'"'/private/var/folders/qj/5flhy9ds42z1fyxzth0lfw8c0000gn/T/pip-install-9ac056of/noise_2d134114623f486aa3328f2b27aff13c/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/qj/5flhy9ds42z1fyxzth0lfw8c0000gn/T/pip-wheel-hgvpq9q6
       cwd: /private/var/folders/qj/5flhy9ds42z1fyxzth0lfw8c0000gn/T/pip-install-9ac056of/noise_2d134114623f486aa3328f2b27aff13c/
  Complete output (17 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.macosx-11-x86_64-3.9
  creating build/lib.macosx-11-x86_64-3.9/noise
  copying shader.py -> build/lib.macosx-11-x86_64-3.9/noise
  copying perlin.py -> build/lib.macosx-11-x86_64-3.9/noise
  copying shader_noise.py -> build/lib.macosx-11-x86_64-3.9/noise
  copying __init__.py -> build/lib.macosx-11-x86_64-3.9/noise
  copying test.py -> build/lib.macosx-11-x86_64-3.9/noise
  running build_ext
  building 'noise._simplex' extension
  creating build/temp.macosx-11-x86_64-3.9
  clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c _simplex.c -o build/temp.macosx-11-x86_64-3.9/_simplex.o -funroll-loops
  clang: error: invalid version number in 'MACOSX_DEPLOYMENT_TARGET=11'
  error: command '/usr/bin/clang' failed with exit code 1
  ----------------------------------------
  ERROR: Failed building wheel for noise
  Running setup.py clean for noise
Failed to build noise
Installing collected packages: noise
    Running setup.py install for noise ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/local/opt/python@3.9/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/qj/5flhy9ds42z1fyxzth0lfw8c0000gn/T/pip-install-9ac056of/noise_2d134114623f486aa3328f2b27aff13c/setup.py'"'"'; __file__='"'"'/private/var/folders/qj/5flhy9ds42z1fyxzth0lfw8c0000gn/T/pip-install-9ac056of/noise_2d134114623f486aa3328f2b27aff13c/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/qj/5flhy9ds42z1fyxzth0lfw8c0000gn/T/pip-record-tkejvho1/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/noise
         cwd: /private/var/folders/qj/5flhy9ds42z1fyxzth0lfw8c0000gn/T/pip-install-9ac056of/noise_2d134114623f486aa3328f2b27aff13c/
    Complete output (17 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.macosx-11-x86_64-3.9
    creating build/lib.macosx-11-x86_64-3.9/noise
    copying shader.py -> build/lib.macosx-11-x86_64-3.9/noise
    copying perlin.py -> build/lib.macosx-11-x86_64-3.9/noise
    copying shader_noise.py -> build/lib.macosx-11-x86_64-3.9/noise
    copying __init__.py -> build/lib.macosx-11-x86_64-3.9/noise
    copying test.py -> build/lib.macosx-11-x86_64-3.9/noise
    running build_ext
    building 'noise._simplex' extension
    creating build/temp.macosx-11-x86_64-3.9
    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c _simplex.c -o build/temp.macosx-11-x86_64-3.9/_simplex.o -funroll-loops
    clang: error: invalid version number in 'MACOSX_DEPLOYMENT_TARGET=11'
    error: command '/usr/bin/clang' failed with exit code 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/opt/python@3.9/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/qj/5flhy9ds42z1fyxzth0lfw8c0000gn/T/pip-install-9ac056of/noise_2d134114623f486aa3328f2b27aff13c/setup.py'"'"'; __file__='"'"'/private/var/folders/qj/5flhy9ds42z1fyxzth0lfw8c0000gn/T/pip-install-9ac056of/noise_2d134114623f486aa3328f2b27aff13c/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/qj/5flhy9ds42z1fyxzth0lfw8c0000gn/T/pip-record-tkejvho1/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/noise Check the logs for full command output.
kch0p commented 2 years ago

error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https:/ /visualstudio.microsoft.com/downloads/

I'm getting the same "error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https:/ /visualstudio.microsoft.com/downloads/" error as well!

f3llo commented 1 year ago

i am having the same error can someone please fix this, i need this libary