SamLukeYes
deepin
2023-06-04 10:25 requirements.txt 是给 pip 看的,不是给 apt 看的
Reply Like 1 View the author
requirements.txt 是给 pip 看的,不是给 apt 看的
哦,刚刚从windows 转过来,不懂。这个pip刚刚弄半小时 ,原来是要pip3。不过,又报错了:
Could not install packages due to an EnvironmentError: 404 Client Error: Not Found for url: https://pypi.org/simple/requirements-txt/
Linux上真是太难搞了,是不是deepin里面安装了两个版本的python有冲突。
requirements.txt 是给 pip 看的,不是给 apt 看的
感谢大佬,问题解决了,Linux上要安装pip3
然后把命令:
pip3 install requirements.txt
换成:
pip3 install -r requirements.txt
这样不会报以下错误了:
Could not install packages due to an EnvironmentError: 404 Client Error: Not Found for url: https://pypi.org/simple/requirements-txt/
Popular Ranking
ChangePopular Events
More
新手转Linux,不懂,用apt就开始安装依赖包,然后报错:
论坛大佬指点,然后安装sudo apt-get install python3-pip -y
但是报错: