Tag: 点子

pip从docker容器中安装pymssql

我的docker容器正在使用centos6.6。 它无法安装pymssql pipssql: Step 15 : RUN pip install pymssql —> Running in c6a17c43790d Collecting pymssql Downloading http://piprepo-au/piprepo/pymssql/pymssql-2.1.1.zip (2.3MB) Installing collected packages: pymssql Running setup.py install for pymssql: started Running setup.py install for pymssql: finished with status 'error' Complete output from command /usr/local/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-6Tr3gO/pymssql/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install –record […]

加载psycopg2模块时从'wheel'安装时出错

我正试图从包含wheel档案的本地软件包目录安装一些python需求。 我在Docker容器中安装需求。 我遵循的步骤是: $ pip install wheel # wheel runs, outputs .whl files to wheelhouse directory $ pip wheel –wheel-dir wheelhouse -r requirements.txt 然后,在我的Dockerfile : ADD requirements.txt /tmp/requirements.txt ADD wheelhouse /tmp/wheelhouse # install requirements. Leave file in /tmp for now – may be useful. RUN pip install –use-wheel –no-index –find-link /tmp/wheelhouse/ -r /tmp/requirements.txt 这工作 – […]

如何强制docker构build使用devip服务器的pip安装命令?

我正在尝试使用docker build构build基于Web的Web应用程序的映像。 我的Dockerfile看起来像这样: FROM beehive-webstack:latest MAINTAINER Anuvrat Parashar <anuvrat@zopper.com> EXPOSE 5000 ADD . /srv/beehive/ RUN pip install -i http://localhost:4040/root/pypi/+simple/ -r /srv/beehive/requirements.txt 没有-i标志的pip安装工作,但它从pypi下载一切,自然是慢的。 问题是,点不能访问我的笔记本电脑上运行的devpi服务器。 我该怎么去实现呢?