Apparently conda cannot find some very common packages: what am I doing wrong?

北战南征 提交于 2019-12-06 04:57:57

Most of those packages (e.g. math, random, itertools....) are part of the python standard library, so should be available with any standard installation of python (even if they don't show up in the output of conda list). Conda therefore does not install these separately or have them in its package lists.

Other issues with your attempt are with the names of packages. For instance, you are trying to install scikit-image, but using the shortform name skimage (which is used once it is installed for import, e.g. import skimage). If you use conda install scikit-image, conda will find it.

Try to do this via a shell script. Go to the folder where your requirements.txt is located then

while read requirement; do conda install --yes $requirement; done < requirements.txt

otherwise you dont necessarily have to use conda - just go to the environment

conda activate <environmentname>
pip install -r requirements.txt

for standard and some more ... packages

conda install anaconda
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!