thtrieu / darkflow

Translate darknet to tensorflow. Load trained weights, retrain/fine-tune using tensorflow, export constant graph def to mobile devices
GNU General Public License v3.0
6.13k stars 2.08k forks source link

How to build on windows? - help needed #534

Open WWG1121liuli opened 6 years ago

WWG1121liuli commented 6 years ago

i do not know how to build on windows? execute " python setup.py build_ext --inplace" occurs some error as follows: File "setup.py", line 73, in ext_modules = cythonize(ext_modules) File "D:\Anaconda2\envs\tensorflow\lib\site-packages\setuptools__init.py", line 129, in setup return distutils.core.setup(**attrs) File "D:\Anaconda2\envs\tensorflow\lib\distutils\core.py", line 148, in setup dist.run_commands() File "D:\Anaconda2\envs\tensorflow\lib\distutils\dist.py", line 955, in run_commands self.run_command(cmd) File "D:\Anaconda2\envs\tensorflow\lib\distutils\dist.py", line 974, in run_command cmd_obj.run() File "D:\Anaconda2\envs\tensorflow\lib\site-packages\setuptools\command\build_ext.py", line 75, in run _build_ext.run(self) File "D:\Anaconda2\envs\tensorflow\lib\site-packages\Cython\Distutils\build_ext.py", line 164, in run _build_ext.build_ext.run(self) File "D:\Anaconda2\envs\tensorflow\lib\distutils\command\build_ext.py", line 307, in run force=self.force) File "D:\Anaconda2\envs\tensorflow\lib\distutils\ccompiler.py", line 1031, in new_compiler return klass(None, dry_run, force) File "D:\Anaconda2\envs\tensorflow\lib\distutils\cygwinccompiler.py", line 282, in init CygwinCCompiler.init (self, verbose, dry_run, force) File "D:\Anaconda2\envs\tensorflow\lib\distutils\cygwinccompiler.py", line 126, in init__ if self.ld_version >= "2.10.90": TypeError: unorderable types: NoneType() >= str()

WWG1121liuli commented 6 years ago

when i uninstall libpython in Anaconda env, everything works fine, it can works well on windows . (D:\WorkApplication\Anaconda2\envs\tensorflow) D:\WorkSpace\darkflow\darkflow>pip install -e . Obtaining file:///D:/WorkSpace/darkflow/darkflow Installing collected packages: darkflow Running setup.py develop for darkflow Successfully installed darkflow Thank you

balachandranrs commented 6 years ago

Thanks. Doing a "conda uninstall libpython" before building darkflow works fine.

Any idea why there is a conflict with 'libpython'? I do not understand how the error is related with the 'libpython' package.