最近在服务器上重新搭建Come的环境,运行时报了一个错误
ModuleNotFoundError: No module named 'utils.training_sdg_inner'
然后我忘了之前是如何解决的,于是查看原作者github中的问题描述查看有没有解决思路。
Come问题描述
然后发现了其中一个解答有印象
Hello,
I successfully installed comE today.
1. Install Cython==0.25
2. In comE-master, run: 'python3 cython_utils.py build_ext'
A new directory 'build' will be created.
3. Navigate the directories and find training_sdg_inner.cpython-36m-x86_64-linux-gnu.so and training_sdg_inner.o. Copy and paste both files to the comE-master/utils/ directory.
4. run: 'python3 main.py'
You can also edit main.py to change the parameters at your will.
Rémi
PS : you also need to downgrade networkx to 1.11 or see pull requests
之前由于在自己的电脑上进行处理,按上述操作处理后是win的版本,上传到服务器不可用是因为服务器是linux版本,故重新操作后问题解决。