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

Windows 10, anaconda environment build error occurred. #32

Closed
minooisbusy opened this issue Oct 31, 2018 · 2 comments
Closed

Windows 10, anaconda environment build error occurred. #32

minooisbusy opened this issue Oct 31, 2018 · 2 comments

Comments

@minooisbusy
Copy link

minooisbusy commented Oct 31, 2018

Hello, i having difficulties about install tensornets.

my environment is explaned bellow.

OS: windows 10
Virtual environment: anaconda
Python version: 3.5
tensorflow version: 1.9
PIP version: 18.1

I was activating my tensorflow virtual environment on anaconda then input command like this

pip install tensornets.

whole prompt return string is here

Collecting tensornets
  Using cached https://files.pythonhosted.org/packages/28/77/8f3e6717a3e51d2f26c5d1e6b82599b01a5941dbcc98b39a4dd542502965/tensornets-0.3.5.tar.gz
Building wheels for collected packages: tensornets
  Running setup.py bdist_wheel for tensornets ... error
  Complete output from command c:\users\bearm\anaconda3\envs\py35tf\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\bearm\\AppData\\Local\\Temp\\pip-install-36vc4dxz\\tensornets\\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 C:\Users\bearm\AppData\Local\Temp\pip-wheel-tnqbxh0x --python-tag cp35:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-3.5
  creating build\lib.win-amd64-3.5\tensornets
  copying tensornets\capsulenets.py -> build\lib.win-amd64-3.5\tensornets
  copying tensornets\darknets.py -> build\lib.win-amd64-3.5\tensornets
  copying tensornets\densenets.py -> build\lib.win-amd64-3.5\tensornets
  copying tensornets\detections.py -> build\lib.win-amd64-3.5\tensornets
  copying tensornets\inceptions.py -> build\lib.win-amd64-3.5\tensornets
  copying tensornets\layers.py -> build\lib.win-amd64-3.5\tensornets
  copying tensornets\middles.py -> build\lib.win-amd64-3.5\tensornets
  copying tensornets\mobilenets.py -> build\lib.win-amd64-3.5\tensornets
  copying tensornets\nasnets.py -> build\lib.win-amd64-3.5\tensornets
  copying tensornets\ops.py -> build\lib.win-amd64-3.5\tensornets
  copying tensornets\preprocess.py -> build\lib.win-amd64-3.5\tensornets
  copying tensornets\pretrained.py -> build\lib.win-amd64-3.5\tensornets
  copying tensornets\resnets.py -> build\lib.win-amd64-3.5\tensornets
  copying tensornets\squeezenets.py -> build\lib.win-amd64-3.5\tensornets
  copying tensornets\unet.py -> build\lib.win-amd64-3.5\tensornets
  copying tensornets\utils.py -> build\lib.win-amd64-3.5\tensornets
  copying tensornets\vggs.py -> build\lib.win-amd64-3.5\tensornets
  copying tensornets\wavenets.py -> build\lib.win-amd64-3.5\tensornets
  copying tensornets\zf.py -> build\lib.win-amd64-3.5\tensornets
  copying tensornets\__init__.py -> build\lib.win-amd64-3.5\tensornets
  creating build\lib.win-amd64-3.5\tensornets\datasets
  copying tensornets\datasets\coco.py -> build\lib.win-amd64-3.5\tensornets\datasets
  copying tensornets\datasets\imagenet.py -> build\lib.win-amd64-3.5\tensornets\datasets
  copying tensornets\datasets\voc.py -> build\lib.win-amd64-3.5\tensornets\datasets
  copying tensornets\datasets\__init__.py -> build\lib.win-amd64-3.5\tensornets\datasets
  creating build\lib.win-amd64-3.5\tensornets\references
  copying tensornets\references\rcnns.py -> build\lib.win-amd64-3.5\tensornets\references
  copying tensornets\references\rpn_utils.py -> build\lib.win-amd64-3.5\tensornets\references
  copying tensornets\references\yolos.py -> build\lib.win-amd64-3.5\tensornets\references
  copying tensornets\references\yolo_utils.py -> build\lib.win-amd64-3.5\tensornets\references
  copying tensornets\references\__init__.py -> build\lib.win-amd64-3.5\tensornets\references
  creating build\lib.win-amd64-3.5\tensornets\references\darkflow_utils
  copying tensornets\references\darkflow_utils\box.py -> build\lib.win-amd64-3.5\tensornets\references\darkflow_utils
  copying tensornets\references\darkflow_utils\__init__.py -> build\lib.win-amd64-3.5\tensornets\references\darkflow_utils
  running egg_info
  writing dependency_links to tensornets.egg-info\dependency_links.txt
  writing tensornets.egg-info\PKG-INFO
  writing top-level names to tensornets.egg-info\top_level.txt
  reading manifest file 'tensornets.egg-info\SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  writing manifest file 'tensornets.egg-info\SOURCES.txt'
  copying tensornets\references\darkflow_utils\get_boxes.c -> build\lib.win-amd64-3.5\tensornets\references\darkflow_utils
  copying tensornets\references\darkflow_utils\nms.c -> build\lib.win-amd64-3.5\tensornets\references\darkflow_utils
  copying tensornets\datasets\coco.names -> build\lib.win-amd64-3.5\tensornets\datasets
  copying tensornets\datasets\voc.names -> build\lib.win-amd64-3.5\tensornets\datasets
  copying tensornets\references\coco.names -> build\lib.win-amd64-3.5\tensornets\references
  copying tensornets\references\voc.names -> build\lib.win-amd64-3.5\tensornets\references
  copying tensornets\references\darkflow_utils\__init__.pyc -> build\lib.win-amd64-3.5\tensornets\references\darkflow_utils
  copying tensornets\references\darkflow_utils\box.pyc -> build\lib.win-amd64-3.5\tensornets\references\darkflow_utils
  copying tensornets\references\darkflow_utils\get_boxes.pyx -> build\lib.win-amd64-3.5\tensornets\references\darkflow_utils
  copying tensornets\references\darkflow_utils\get_boxes.so -> build\lib.win-amd64-3.5\tensornets\references\darkflow_utils
  copying tensornets\references\darkflow_utils\nms.pxd -> build\lib.win-amd64-3.5\tensornets\references\darkflow_utils
  copying tensornets\references\darkflow_utils\nms.pyx -> build\lib.win-amd64-3.5\tensornets\references\darkflow_utils
  copying tensornets\references\darkflow_utils\nms.so -> build\lib.win-amd64-3.5\tensornets\references\darkflow_utils
  running build_ext
  building 'tensornets.references.darkflow_utils.nms' extension
  creating build\temp.win-amd64-3.5
  creating build\temp.win-amd64-3.5\Release
  creating build\temp.win-amd64-3.5\Release\tensornets
  creating build\temp.win-amd64-3.5\Release\tensornets\references
  creating build\temp.win-amd64-3.5\Release\tensornets\references\darkflow_utils
  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\users\bearm\anaconda3\envs\py35tf\lib\site-packages\numpy\core\include -Ic:\users\bearm\anaconda3\envs\py35tf\include -Ic:\users\bearm\anaconda3\envs\py35tf\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\winrt" /Tctensornets/references/darkflow_utils/nms.c /Fobuild\temp.win-amd64-3.5\Release\tensornets/references/darkflow_utils/nms.obj
  nms.c
  c:\users\bearm\anaconda3\envs\py35tf\lib\site-packages\numpy\core\include\numpy\npy_1_7_deprecated_api.h(12) : Warning Msg: Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
  tensornets/references/darkflow_utils/nms.c(2437): warning C4244: '=': conversion from 'double' to 'float', possible loss of data
  tensornets/references/darkflow_utils/nms.c(2446): warning C4244: '=': conversion from 'double' to 'float', possible loss of data
  tensornets/references/darkflow_utils/nms.c(2496): warning C4244: '=': conversion from 'double' to 'float', possible loss of data
  tensornets/references/darkflow_utils/nms.c(22776): warning C4244: 'initializing': conversion from 'double' to 'float', possible loss of data
  tensornets/references/darkflow_utils/nms.c(22782): warning C4244: 'initializing': conversion from 'double' to 'float', possible loss of data
  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\users\bearm\anaconda3\envs\py35tf\libs /LIBPATH:c:\users\bearm\anaconda3\envs\py35tf\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\LIB\amd64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.14393.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.14393.0\um\x64" m.lib /EXPORT:PyInit_nms build\temp.win-amd64-3.5\Release\tensornets/references/darkflow_utils/nms.obj /OUT:build\lib.win-amd64-3.5\tensornets\references\darkflow_utils\nms.cp35-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.5\Release\tensornets/references/darkflow_utils\nms.cp35-win_amd64.lib
  LINK : fatal error LNK1181: cannot open input file 'm.lib'
  error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\link.exe' failed with exit status 1181

  ----------------------------------------
  Failed building wheel for tensornets
  Running setup.py clean for tensornets
Failed to build tensornets
Installing collected packages: tensornets
  Running setup.py install for tensornets ... error
    Complete output from command c:\users\bearm\anaconda3\envs\py35tf\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\bearm\\AppData\\Local\\Temp\\pip-install-36vc4dxz\\tensornets\\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\bearm\AppData\Local\Temp\pip-record-f7zzi1az\install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.5
    creating build\lib.win-amd64-3.5\tensornets
    copying tensornets\capsulenets.py -> build\lib.win-amd64-3.5\tensornets
    copying tensornets\darknets.py -> build\lib.win-amd64-3.5\tensornets
    copying tensornets\densenets.py -> build\lib.win-amd64-3.5\tensornets
    copying tensornets\detections.py -> build\lib.win-amd64-3.5\tensornets
    copying tensornets\inceptions.py -> build\lib.win-amd64-3.5\tensornets
    copying tensornets\layers.py -> build\lib.win-amd64-3.5\tensornets
    copying tensornets\middles.py -> build\lib.win-amd64-3.5\tensornets
    copying tensornets\mobilenets.py -> build\lib.win-amd64-3.5\tensornets
    copying tensornets\nasnets.py -> build\lib.win-amd64-3.5\tensornets
    copying tensornets\ops.py -> build\lib.win-amd64-3.5\tensornets
    copying tensornets\preprocess.py -> build\lib.win-amd64-3.5\tensornets
    copying tensornets\pretrained.py -> build\lib.win-amd64-3.5\tensornets
    copying tensornets\resnets.py -> build\lib.win-amd64-3.5\tensornets
    copying tensornets\squeezenets.py -> build\lib.win-amd64-3.5\tensornets
    copying tensornets\unet.py -> build\lib.win-amd64-3.5\tensornets
    copying tensornets\utils.py -> build\lib.win-amd64-3.5\tensornets
    copying tensornets\vggs.py -> build\lib.win-amd64-3.5\tensornets
    copying tensornets\wavenets.py -> build\lib.win-amd64-3.5\tensornets
    copying tensornets\zf.py -> build\lib.win-amd64-3.5\tensornets
    copying tensornets\__init__.py -> build\lib.win-amd64-3.5\tensornets
    creating build\lib.win-amd64-3.5\tensornets\datasets
    copying tensornets\datasets\coco.py -> build\lib.win-amd64-3.5\tensornets\datasets
    copying tensornets\datasets\imagenet.py -> build\lib.win-amd64-3.5\tensornets\datasets
    copying tensornets\datasets\voc.py -> build\lib.win-amd64-3.5\tensornets\datasets
    copying tensornets\datasets\__init__.py -> build\lib.win-amd64-3.5\tensornets\datasets
    creating build\lib.win-amd64-3.5\tensornets\references
    copying tensornets\references\rcnns.py -> build\lib.win-amd64-3.5\tensornets\references
    copying tensornets\references\rpn_utils.py -> build\lib.win-amd64-3.5\tensornets\references
    copying tensornets\references\yolos.py -> build\lib.win-amd64-3.5\tensornets\references
    copying tensornets\references\yolo_utils.py -> build\lib.win-amd64-3.5\tensornets\references
    copying tensornets\references\__init__.py -> build\lib.win-amd64-3.5\tensornets\references
    creating build\lib.win-amd64-3.5\tensornets\references\darkflow_utils
    copying tensornets\references\darkflow_utils\box.py -> build\lib.win-amd64-3.5\tensornets\references\darkflow_utils
    copying tensornets\references\darkflow_utils\__init__.py -> build\lib.win-amd64-3.5\tensornets\references\darkflow_utils
    running egg_info
    writing tensornets.egg-info\PKG-INFO
    writing dependency_links to tensornets.egg-info\dependency_links.txt
    writing top-level names to tensornets.egg-info\top_level.txt
    reading manifest file 'tensornets.egg-info\SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file 'tensornets.egg-info\SOURCES.txt'
    copying tensornets\references\darkflow_utils\get_boxes.c -> build\lib.win-amd64-3.5\tensornets\references\darkflow_utils
    copying tensornets\references\darkflow_utils\nms.c -> build\lib.win-amd64-3.5\tensornets\references\darkflow_utils
    copying tensornets\datasets\coco.names -> build\lib.win-amd64-3.5\tensornets\datasets
    copying tensornets\datasets\voc.names -> build\lib.win-amd64-3.5\tensornets\datasets
    copying tensornets\references\coco.names -> build\lib.win-amd64-3.5\tensornets\references
    copying tensornets\references\voc.names -> build\lib.win-amd64-3.5\tensornets\references
    copying tensornets\references\darkflow_utils\__init__.pyc -> build\lib.win-amd64-3.5\tensornets\references\darkflow_utils
    copying tensornets\references\darkflow_utils\box.pyc -> build\lib.win-amd64-3.5\tensornets\references\darkflow_utils
    copying tensornets\references\darkflow_utils\get_boxes.pyx -> build\lib.win-amd64-3.5\tensornets\references\darkflow_utils
    copying tensornets\references\darkflow_utils\get_boxes.so -> build\lib.win-amd64-3.5\tensornets\references\darkflow_utils
    copying tensornets\references\darkflow_utils\nms.pxd -> build\lib.win-amd64-3.5\tensornets\references\darkflow_utils
    copying tensornets\references\darkflow_utils\nms.pyx -> build\lib.win-amd64-3.5\tensornets\references\darkflow_utils
    copying tensornets\references\darkflow_utils\nms.so -> build\lib.win-amd64-3.5\tensornets\references\darkflow_utils
    running build_ext
    building 'tensornets.references.darkflow_utils.nms' extension
    creating build\temp.win-amd64-3.5
    creating build\temp.win-amd64-3.5\Release
    creating build\temp.win-amd64-3.5\Release\tensornets
    creating build\temp.win-amd64-3.5\Release\tensornets\references
    creating build\temp.win-amd64-3.5\Release\tensornets\references\darkflow_utils
    C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\users\bearm\anaconda3\envs\py35tf\lib\site-packages\numpy\core\include -Ic:\users\bearm\anaconda3\envs\py35tf\include -Ic:\users\bearm\anaconda3\envs\py35tf\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\winrt" /Tctensornets/references/darkflow_utils/nms.c /Fobuild\temp.win-amd64-3.5\Release\tensornets/references/darkflow_utils/nms.obj
    nms.c
    c:\users\bearm\anaconda3\envs\py35tf\lib\site-packages\numpy\core\include\numpy\npy_1_7_deprecated_api.h(12) : Warning Msg: Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
    tensornets/references/darkflow_utils/nms.c(2437): warning C4244: '=': conversion from 'double' to 'float', possible loss of data
    tensornets/references/darkflow_utils/nms.c(2446): warning C4244: '=': conversion from 'double' to 'float', possible loss of data
    tensornets/references/darkflow_utils/nms.c(2496): warning C4244: '=': conversion from 'double' to 'float', possible loss of data
    tensornets/references/darkflow_utils/nms.c(22776): warning C4244: 'initializing': conversion from 'double' to 'float', possible loss of data
    tensornets/references/darkflow_utils/nms.c(22782): warning C4244: 'initializing': conversion from 'double' to 'float', possible loss of data
    C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\users\bearm\anaconda3\envs\py35tf\libs /LIBPATH:c:\users\bearm\anaconda3\envs\py35tf\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\LIB\amd64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.14393.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.14393.0\um\x64" m.lib /EXPORT:PyInit_nms build\temp.win-amd64-3.5\Release\tensornets/references/darkflow_utils/nms.obj /OUT:build\lib.win-amd64-3.5\tensornets\references\darkflow_utils\nms.cp35-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.5\Release\tensornets/references/darkflow_utils\nms.cp35-win_amd64.lib
    LINK : fatal error LNK1181: cannot open input file 'm.lib'
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\link.exe' failed with exit status 1181

    ----------------------------------------
Command "c:\users\bearm\anaconda3\envs\py35tf\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\bearm\\AppData\\Local\\Temp\\pip-install-36vc4dxz\\tensornets\\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\bearm\AppData\Local\Temp\pip-record-f7zzi1az\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\bearm\AppData\Local\Temp\pip-install-36vc4dxz\tensornets\

middle of the return strings, there are link error that
LINK : fatal error LNK1181: cannot open input file 'm.lib'
Is this error message my own environmental error or error in installation code ??

@minooisbusy
Copy link
Author

minooisbusy commented Nov 1, 2018

I have just resolved this problem with the following command:

pip install git+https://github.com/taehoonlee/tensornets.git

I think the git command reflects the latest commit, but the pip command does not.

@taehoonlee
Copy link
Owner

Thank you for trying TensorNets, @minooisbusy. As you expected, the latest PR #26 can solve the problem. I will release them on PyPI soon.

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

2 participants