Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > de.comp.lang.python > #5152

[Python-de] pip von einem Popen Shell aus aufgerufen installiert keine Archive

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From robert rottermann <robert@redcor.ch>
Newsgroups de.comp.lang.python
Subject [Python-de] pip von einem Popen Shell aus aufgerufen installiert keine Archive
Date Sat, 21 Apr 2018 11:41:55 +0200
Lines 38
Message-ID <mailman.121.1524304054.6649.python-de@python.org> (permalink)
References <aa15b08c-9549-5bf5-7d92-0ac224bc460b@redcor.ch>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 8bit
X-Trace news.uni-berlin.de CHA4vQpbQAFQ/+b6XMEehwfPlDg7rYAQ/n5QT+nEBlcQ==
Return-Path <robert@redcor.ch>
X-Original-To python-de@python.org
Delivered-To python-de@mail.python.org
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0
Content-Language en-GB
X-Content-Filtered-By Mailman/MimeDel 2.1.26
X-BeenThere python-de@python.org
X-Mailman-Version 2.1.26
Precedence list
List-Id Die Deutsche Python Mailingliste <python-de.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-de>, <mailto:python-de-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-de/>
List-Post <mailto:python-de@python.org>
List-Help <mailto:python-de-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-de>, <mailto:python-de-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID <aa15b08c-9549-5bf5-7d92-0ac224bc460b@redcor.ch>
Xref csiph.com de.comp.lang.python:5152

Show key headers only | View raw


Hoi zäme,


ich versuch ein zip-archiv mit pip zu installieren.

Wenn ich das händisch mache, funktioniert das OK.

also pip install ./FILENAME.zip

wenn ich hingegen das selbe aus einem python script heraus versuche, schlägt das 
fehl:

cmd =[pip_cmd, 'install', '-e', '%s/%s'%(os.getcwd(), fname)]
print(cmd, os.getcwd())
p =Popen(cmd, stdout=PIPE)
p.communicate()

ergibt:


['/home/robert/.virtualenvs/fruba/bin/pip', 'install', '-e', 
'/home/robert/projects/fruba/fruba/downloads/odoo_10.0.latest.zip'] 
/home/robert/projects/fruba/fruba/downloads
/home/robert/projects/fruba/fruba/downloads/odoo_10.0.latest.zip should either 
be a path to a local project or a VCS url beginning with svn+, git+, hg+, or bzr+

Pip ist aktuell (10.0.1)


wie kann ich pip/Popen dazu überreden, das Archiv zu installieren?


danke

Robert


Back to de.comp.lang.python | Previous | Next | Find similar


Thread

[Python-de] pip von einem Popen Shell aus aufgerufen installiert keine Archive robert rottermann <robert@redcor.ch> - 2018-04-21 11:41 +0200

csiph-web