软件中所用的各模块使用“pip install + 模块名”语句进行安装,安装时可选择使用默认源(国外源),若网速不好,有可能导致安装不成功,此时可以指定安装源。
常用的国内安装源有豆瓣源(http://pypi.douban.com/simple/)、
阿 里 源(http://mirrors.aliyun.com/pypi/simple/)、
中 国 科 学技术 大学 源(http://pypi.mirrors.ustc.edu.cn/simple)、
清 华源(https://pypi.tuna.tsinghua.edu.cn/simple)等 ,
若想单次更换安装源,在 pip 安装语句后面使用-i选项并加入安装源地址即可,如使用清华源安装的语句为:
pip install tensorflow==2.0 -i https://pypi.doubanio.com/simple