[Tensorflow] Linux the source image modification pip

Copyright: please indicate the source https://blog.csdn.net/weixin_40937100/article/details/88878378

When first installed tensorflow may be selected using the following command:

pip install tensorflow (python 2.7 version)

But found unusually slow download speeds in the actual installation process, the Internet-related argument is that because the server is too far away and other reasons, pip from abroad server whl package is too slow. So it is necessary to switch to domestic source server to improve download speeds. Methods as below:

1, the first ~ / .config under / .pip directory create or modify files pip.conf

Enter the following in the file (where the choices are Tsinghua mirror)

[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple/

2, the method should be noted that the directory to save its configuration file, it should be

~/.config/.pip,

No

~/.pip

3, after performing the above modification pip mirror source, download speed improved significantly.

Guess you like

Origin blog.csdn.net/weixin_40937100/article/details/88878378