Could not find a version that satisfies the requirement

后端 未结 12 1187
耶瑟儿~
耶瑟儿~ 2020-11-29 17:34

I\'m installing several Python packages in Ubuntu 12.04 using the following requirements.txt file:

numpy>=1.8.2,<2.0.0
matplotlib>=1.3.         


        
12条回答
  •  失恋的感觉
    2020-11-29 18:36

    This approach (having all dependencies in a directory and not downloading from an index) only works when the directory contains all packages. The directory should therefore contain all dependencies but also all packages that those dependencies depend on (e.g., six, pytz etc).

    You should therefore manually include these in requirements.txt (so that the first step downloads them explicitly) or you should install all packages using PyPI and then pip freeze > requirements.txt to store the list of all packages needed.

提交回复
热议问题