G2V源码
N2V源码
G2V 环境搭建 环境要求The codebase is implemented in Python 3.5.2 | Anaconda 4.2.0 (64-bit). Package versions used for development are just below.
jsonschema 2.6.0
tqdm 4.28.1
numpy 1.15.4
pandas 0.23.4
texttable 1.5.0
gensim 3.6.0
networkx 2.4
joblib 0.13.0
logging 0.4.9.6
搭建
根据要求已知是3.5的环境,需要安装的包也在上面
#以下全是python35的解决方法
conda create -n graph2vec python==3.5
conda activate graph2vec
python src/graph2vec.py
可以根据提示一步步安装上面的包
pip install xxx==
下载慢的话指定阿里云镜像比如
pip install networkx -i https://mirrors.aliyun.com/pypi/simple/
但是在安装gensim 时候出错
ERROR: Cannot uninstall 'certifi'. It is a distutils installed project and thus we cannot accurately determine which fi