创建虚拟环境
conda create -n ReChecker python=3.7
激活进入虚拟环境
conda activate ReChecker
进入虚拟环境后,按如下顺序安装所需包
##首先更新pip和setuptools
python.exe -m pip install --upgrade pip
pip install --upgrade setuptools
#安装numpy和grpcio库
使用那么多镜像源,我最钟爱清华大学镜像源,每次都在我崩溃的边缘,拯救我一把,使用镜像源只为下载更快,不然真的很慢。
pip install numpy==1.16.5 -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host=pypi.tuna.tsinghua.edu.cn
pip install --no-cache-dir --force-reinstall -Iv grpcio==1.36.1 -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host=pypi.tuna.tsinghua.edu.cn
#安装tensorflow库
下一步就是安装tensorflow,如果直接使用pip安装会很慢,所以手动下载 TensorFlow 1.13 的 whl
文件并进行离线安装。
前往