嗨,我正在寻找以下问题的可能解决方案。我试图安装某个软件包的要求,然后它给出了找不到python版本的错误(似乎是3.8.12),但后来我也检查并确保我的环境的python版本是3.8.12。代码和错误消息如下:
(env1) localcomp:~/User/OChemR$ pip install -r requirements.txt
**ERROR: Could not find a version that satisfies the requirement python==3.8.12 (from versions: none)**
**ERROR: No matching distribution found for python==3.8.12**
(env1) localcomp:~/User/OChemR$ python --version
**Python 3.8.12**
字符串
requirement.txt包含在下面:
conda install:
python==3.8.12
opencv-python==4.5.5.62
pandas==1.4.1
numpy==1.20.3
pillow==8.4.0
tqdm==4.62.3
rdkit==2020.09.1.0
torchvision==0.11.3
tensorflow==2.8.0
tensorboard==2.8.0
pyqt5==5.14.1
pytorch==1.10.2
matplotlib==3.2.2
albumentations==1.1.0
flask==2.0.3
flask-wtf==1.0.0
型
1条答案
按热度按时间kh212irz1#
在使用
pip
时,只需将python==3.8.12
从文件requirements.txt
中删除即可,因为在使用pip
时,python
不应该在此文件中。