ddfnet icon indicating copy to clipboard operation
ddfnet copied to clipboard

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

Open Deep-imagelab opened this issue 3 years ago • 7 comments

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

Deep-imagelab avatar Aug 30 '21 06:08 Deep-imagelab

Please use python 3

theFoxofSky avatar Aug 30 '21 08:08 theFoxofSky

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.

Deep-imagelab avatar Aug 30 '21 09:08 Deep-imagelab

check your python3 enviroment by using following code:

python3
from setuptools import setup

theFoxofSky avatar Aug 30 '21 14:08 theFoxofSky

check your python3 enviroment by using following code:

python3
from setuptools import setup

Yes, these commands can be running correctly

Deep-imagelab avatar Aug 31 '21 02:08 Deep-imagelab

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.

theFoxofSky avatar Aug 31 '21 06:08 theFoxofSky

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.

foxquan avatar Dec 25 '22 14:12 foxquan

DDF may not work on windows, use Linux please.

theFoxofSky avatar Dec 25 '22 14:12 theFoxofSky