Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: robert rottermann 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: References: 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: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: Xref: csiph.com de.comp.lang.python:5152 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