requirements里面是这些内容的,直接pip install requirements.txt会报错
错误为:
需要加-r,即变成:pip install -r requirements.txt
这样不会报错,但需要先下载git。语法为:conda install git
如果使用pip install git,则报错:
ERROR: Could not find a version that satisfies the requirement git
ERROR: No matching distribution found for git
——————————————————————————————————————————
安装sklearn老报错,
用这种方法,很快就安装好了:
python -m pip install scikit-learn -i https://pypi.tuna.tsinghua.edu.cn/simple
————————————————————————————————————
安装mmtrack报错:ERROR: Could not build wheels for lap, which is required to install pyproject.toml-based projects
参考了这篇文章:Failed building wheel for lap
conda install -c conda-forge lap
使用完conda install -c conda-forge lap语句后,再安装mmtrack时,就不报错了
但是出现一个新问题:
ERROR: pip’s dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
scikit-image 0.21.0 requires scipy>=1.8, but you have scipy 1.7.3 which is incompatible.
好像是因为我的scipy 1.7.3,而他要的是1.8以上的
——————————————————————————————————————————
不是不是,原本的spicy应该是1.10.1或者更高版本的,但是安装mmtrack的时候,需要scipy<=1.7.3。但是scipy-1.7.3又和scikit-image 0.21.0冲突了。
即scikit-image 0.21.0 和 mmtrack-0.14.0 对于scipy的版本冲突了