OpenNE built environment

1. Download Source Codes
https://github.com/thunlp/OpenNE

2. Installation depends

pip install -r requirements.txt

But here I am being given, the installation TensorFlow error, people are GPU version, but my computer is too residue, no Nvidia graphics card, so do not send install cuda, so only install CPU version of TensorFlow, among a variety of error, step on numerous pits, and finally resolved successfully installed.

This is dependent on the needs of the project, in addition to TensorFlow can put the packages are installed, with or smooth installation anaconda.
Next, install TensorFlow attention to install this version of easy success, but for other versions say ddl error or problem the project up and running

pip install Tensorflow==1.5

After performing the steps of people like.

pip install -r requirements.txt
cd src
python setup.py install

3. Success

Guess you like

Origin www.cnblogs.com/mengxiaoleng/p/12305980.html