【发布时间】:2019-01-15 19:11:44
【问题描述】:
我正在尝试设置一个本地目录,其中包含可重复用于在没有 Internet 连接的机器上安装的包,但我遇到了一些包的问题。
我先用
下载包pip download -r requirements.txt -d my_packages --no-binary :all:
然后我尝试安装它们
pip install -r requirements.txt --no-index -f my_packages
我在安装时遇到问题的软件包之一是elasticsearch-dsl==6.1.0:
pip install -r requirements --no-index -f my_packages
Looking in links: my_packages
Collecting elasticsearch-dsl==6.1.0
Collecting six (from elasticsearch-dsl==6.1.0)
Collecting python-dateutil (from elasticsearch-dsl==6.1.0)
Installing build dependencies ... error
Complete output from command /Users/Oskar/.pyenv/versions/2.7.15/envs/no_internet/bin/python2.7 -m pip install --ignore-installed --no-user --prefix /private/var/folders/36/t0_t6_td2f560t2j0149vjmw0000gn/T/pip-build-env-moib0N --no-warn-script-location --no-binary :none: --only-binary :none: --no-index --find-links my_packages -- setuptools wheel:
Looking in links: my_packages
Collecting setuptools
Could not find a version that satisfies the requirement setuptools (from versions: )
No matching distribution found for setuptools
当然,setuptools 我可以手动安装,但包的数量比所有其他包所需的要多。 django-guardian==1.4.9 是另一个需要pytest-runner 的示例,由于某种原因没有使用pip download 下载
【问题讨论】: