theFoxofSky / ddfnet

The official implementation of the CVPR2021 paper: Decoupled Dynamic Filter Networks
MIT License
214 stars 34 forks source link

The command "python setup.py install" for error? #19

Open Deep-imagelab opened 3 years ago

Deep-imagelab commented 3 years ago

File "setup.py", line 23 print(f'Compiling {name} without CUDA') ^ SyntaxError: invalid syntax

theFoxofSky commented 3 years ago

Please use python 3

Deep-imagelab commented 3 years ago

File "setup.py", line 2, in from setuptools import setup ModuleNotFoundError: No module named 'setuptools'

Use python3,leading the error in the line2 of the setup.py file. However, in my enviroment, the following commands can be running correctly:

python from setuptools import setup That means there has been the package "setuptools " in my enviroment.

theFoxofSky commented 3 years ago

check your python3 enviroment by using following code:

python3
from setuptools import setup
Deep-imagelab commented 3 years ago

check your python3 enviroment by using following code:

python3
from setuptools import setup

Yes, these commands can be running correctly

theFoxofSky commented 3 years ago

One factor that may also cause this problem: there are multiple python versions (including the anconda one). You may need to check the path to these python packages.

foxquan commented 1 year ago

ninja: error: './ddf/ddfnet-main/ddf/src/cuda/ddf_mul_cuda.cpp', needed by './ddf/ddfnet-main/ddf/build/temp.win-amd64-cpython-37/Release/src/cuda/ddf_mul_cuda.obj', missing and no known rule to make it when I run'python setup.py install',error occurs.Can you tell me how to deal with it.

theFoxofSky commented 1 year ago

DDF may not work on windows, use Linux please.