Visual Studio 找不到满足要求的版本python==3.8.12

li9yvcax  于 2023-11-21  发布在  Python
关注(0)|答案(1)|浏览(213)

嗨,我正在寻找以下问题的可能解决方案。我试图安装某个软件包的要求,然后它给出了找不到python版本的错误(似乎是3.8.12),但后来我也检查并确保我的环境的python版本是3.8.12。代码和错误消息如下:

  1. (env1) localcomp:~/User/OChemR$ pip install -r requirements.txt
  2. **ERROR: Could not find a version that satisfies the requirement python==3.8.12 (from versions: none)**
  3. **ERROR: No matching distribution found for python==3.8.12**
  4. (env1) localcomp:~/User/OChemR$ python --version
  5. **Python 3.8.12**

字符串
requirement.txt包含在下面:

conda install:

  1. python==3.8.12
  2. opencv-python==4.5.5.62
  3. pandas==1.4.1
  4. numpy==1.20.3
  5. pillow==8.4.0
  6. tqdm==4.62.3
  7. rdkit==2020.09.1.0
  8. torchvision==0.11.3
  9. tensorflow==2.8.0
  10. tensorboard==2.8.0
  11. pyqt5==5.14.1
  12. pytorch==1.10.2
  13. matplotlib==3.2.2
  14. albumentations==1.1.0
  15. flask==2.0.3
  16. flask-wtf==1.0.0

kh212irz

kh212irz1#

在使用pip时,只需将python==3.8.12从文件requirements.txt中删除即可,因为在使用pip时,python不应该在此文件中。

相关问题