Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant install noise via pip #32

Open
hafizosina opened this issue May 15, 2020 · 5 comments
Open

Cant install noise via pip #32

hafizosina opened this issue May 15, 2020 · 5 comments

Comments

@hafizosina
Copy link

hafizosina commented May 15, 2020

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
Copy link

fepegar commented Jun 3, 2020

Might be related to Slicer/Slicer#4954 (comment)

@spfaul
Copy link

spfaul commented Dec 7, 2020

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
Copy link

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/[email protected]/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/[email protected]/include -I/usr/local/opt/sqlite/include -I/usr/local/opt/[email protected]/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/[email protected]/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/[email protected]/include -I/usr/local/opt/sqlite/include -I/usr/local/opt/[email protected]/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/[email protected]/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
Copy link

kch0p commented Dec 27, 2021

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!

gambino19 added a commit to gambino19/minimal that referenced this issue Apr 3, 2022
Noise module used in minimal (https://github.com/caseman/noise) has pip install issues (caseman/noise#32) in newer python versions and environments. As well, it seems largely unmaintained. Solution was to take pure python implementation listed in repo and implement it as standalone in minimal. If package were to be maintained or have issue resolved, it would be recommended to go back to that implementation.
@f3llo
Copy link

f3llo commented Dec 6, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants