因为我的课程暂停了一段时间,现在在安装多个文件的时候提示:找不到满足条件的版本
建立requirements.txt文件,内容为:
numpy
pandas
matplotlib
opencv-python
opencv-contrib-python
pillow
sklearn
scipy==1.4.1
jupyter
notebook
tensorflow==2.0
-i "https://mirrors.aliyun.com/pypi/simple"
ERROR: Could not find a version that satisfies the requirement scipy==1.4.1 (from versions: 0.8.0, 0.9.0, 0.10.0, 0.10.1, 0.11.0, 0.12.0, 0.12.1, 0.13.0, 0.13.1, 0.13.2, 0.13.3, 0.14.0, 0.14.1, 0.15.0, 0.15.1, 0.16.0, 0.16.1, 0.17.0, 0.17.1, 0.18.0, 0.18.1, 0.19.0, 0.19.1, 1.0.0b1, 1.0.0rc1, 1.0.0rc2, 1.0.0, 1.0.1, 1.1.0rc1, 1.1.0, 1.2.0rc1, 1.2.0rc2, 1.2.0, 1.2.1, 1.2.2, 1.2.3, 1.3.0rc1, 1.3.0rc2, 1.3.0, 1.3.1, 1.3.2, 1.3.3, 1.4.0rc1, 1.4.0rc2, 1.4.0, 1.4.1, 1.5.0rc1, 1.5.0rc2, 1.5.0, 1.5.1, 1.5.2, 1.5.3, 1.5.4, 1.6.0rc1, 1.6.0rc2, 1.6.0, 1.6.1, 1.6.2, 1.6.3, 1.7.0rc1, 1.7.0rc2, 1.7.0, 1.7.1, 1.7.2, 1.7.3, 1.8.0rc1, 1.8.0rc2, 1.8.0rc3, 1.8.0rc4, 1.8.0)
ERROR: No matching distribution found for scipy==1.4.1
使用安装单个文件的方法,没有问题
掌握同时安装多个文件的方法
你这个TensorFlow2.0也不是这个写法呀,一般是tensorflow==2.4.0,之后再去安装其他的依赖库。 之后想要同时安装多个依赖库,首先你每个依赖库需要写版本号例如你的scipy==1.4.1。再用环境中使用pip install (txt文件位置).txt -i (国内源)