From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: OT: installing pip on Windows/Cygwin (was: Wanted: volunteer to integrate REST-client (restclient.el)) Date: Wed, 12 Feb 2014 12:08:01 -0500 Message-ID: References: <2014-02-07T14-30-02@devnull.Karl-Voit.at> <2014-02-10T14-07-33@devnull.Karl-Voit.at> <2014-02-12T15-56-44@devnull.Karl-Voit.at> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b111dd97c392e04f2389d1f Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39886) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDdI6-0003ef-VX for emacs-orgmode@gnu.org; Wed, 12 Feb 2014 12:08:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WDdI3-0007Wy-Av for emacs-orgmode@gnu.org; Wed, 12 Feb 2014 12:08:06 -0500 Received: from mail-pd0-x236.google.com ([2607:f8b0:400e:c02::236]:63920) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDdI2-0007Wp-V5 for emacs-orgmode@gnu.org; Wed, 12 Feb 2014 12:08:03 -0500 Received: by mail-pd0-f182.google.com with SMTP id v10so9327937pde.27 for ; Wed, 12 Feb 2014 09:08:01 -0800 (PST) In-Reply-To: <2014-02-12T15-56-44@devnull.Karl-Voit.at> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: news1142@karl-voit.at Cc: "emacs-orgmode@gnu.org" --047d7b111dd97c392e04f2389d1f Content-Type: text/plain; charset=ISO-8859-1 I don't understand, it looks like this worked. #+RESULTS: : Searching for requests : Reading http://pypi.python.org/simple/requests/ : Best match: requests 2.2.1 : Downloading https://pypi.python.org/packages/source/r/requests/requests-2.2.1.tar.gz#md5=ac27081135f58d1a43e4fb38258d6f4e : Processing requests-2.2.1.tar.gz : Writing /cygdrive/c/Users/KARL~1.VOI/AppData/Local/Temp/easy_install-L3Xxcz/requests-2.2.1/setup.cfg : Running requests-2.2.1/setup.py -q bdist_egg --dist-dir /cygdrive/c/Users/KARL~1.VOI/AppData/Local/Temp/easy_install-L3Xxcz/requests-2.2.1/egg-dist-tmp-veH5jq After this, are you unable to import requests? I don't use cygwin, and maybe the funny drive paths confuse windows. John ----------------------------------- John Kitchin Associate Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu On Wed, Feb 12, 2014 at 10:02 AM, Karl Voit wrote: > Hi John! > > * John Kitchin wrote: > > > > windows and pip/easy_install are funny sometimes. > > > > I often do something like this: > > > > #+BEGIN_SRC python > > from setuptools.command import easy_install > > easy_install.main( ["-U","requests"] ) > > #+END_SRC > > > > #+RESULTS: > > #+begin_example > > Searching for requests > > Reading http://pypi.python.org/simple/requests/ > > Best match: requests 2.2.1 > > Downloading > > > https://pypi.python.org/packages/source/r/requests/requests-2.2.1.tar.gz#md5=ac27081135f58d1a43e4fb38258d6f4e > > Processing requests-2.2.1.tar.gz > > Writing /tmp/easy_install-EWppsP/requests-2.2.1/setup.cfg > > Running requests-2.2.1/setup.py -q bdist_egg --dist-dir > > /tmp/easy_install-EWppsP/requests-2.2.1/egg-dist-tmp-xoXvDk > > Adding requests 2.2.1 to easy-install.pth file > > > > Installed > > > /opt/kitchingroup/enthought/epd-7.3-2-rh5-x86_64/lib/python2.7/site-packages/requests-2.2.1-py2.7.egg > > Processing dependencies for requests > > Finished processing dependencies for requests > > #+end_example > > Ah, great idea. However, at my side, it ends up like this: > > #+BEGIN_SRC python :results output > from setuptools.command import easy_install > easy_install.main( ["-U","requests"] ) > #+END_SRC > > #+RESULTS: > : Searching for requests > : Reading http://pypi.python.org/simple/requests/ > : Best match: requests 2.2.1 > : Downloading > https://pypi.python.org/packages/source/r/requests/requests-2.2.1.tar.gz#md5=ac27081135f58d1a43e4fb38258d6f4e > : Processing requests-2.2.1.tar.gz > : Writing > /cygdrive/c/Users/KARL~1.VOI/AppData/Local/Temp/easy_install-L3Xxcz/requests-2.2.1/setup.cfg > : Running requests-2.2.1/setup.py -q bdist_egg --dist-dir > /cygdrive/c/Users/KARL~1.VOI/AppData/Local/Temp/easy_install-L3Xxcz/requests-2.2.1/egg-dist-tmp-veH5jq > > In Cygwin shell, I can execute "easy_install pip". After that, I can > execute > "pip" but I never get any output on "pip help" "pip -h" "pip --help" or > "pip > install requests". > > I miss my Linux at work :-( > > -- > mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode: > > get Memacs from https://github.com/novoid/Memacs < > > https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on > github > > > --047d7b111dd97c392e04f2389d1f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I don't understand, it looks like this worke= d.

#+RESULTS:
: Searching for requests
: Reading http://pypi.python.org/simple/requests/
: Best match: requests 2.2.1
: Downloading https://pypi.python.org/packages/source/r/requests/requests-2.2.1.tar= .gz#md5=3Dac27081135f58d1a43e4fb38258d6f4e
: Processing requests-2.2.1.tar.gz
: Writing /cygdrive/c/Users/KARL~1.VOI/AppData/Local/Temp/easy_install-L3Xx= cz/requests-2.2.1/setup.cfg
: Running requests-2.2.1/setup.py -q bdist_egg --dist-dir /cygdrive/c/Users= /KARL~1.VOI/AppData/Local/Temp/easy_install-L3Xxcz/requests-2.2.1/egg-dist-= tmp-veH5jq

After this, are you unable to import requests?

I don't use cygwin, and maybe the funny drive paths confuse w= indows.

John
-----------------------------------
John Kitchin
Associate Profe= ssor
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon= University
Pittsburgh, PA 15213
412-268-7803
http://kitchingroup.cheme.cmu.e= du



On Wed, Feb 12, 2014 at 10:02 AM, Karl V= oit <devnull@karl-voit.at> wrote:
Hi John!

* John Kitchin <jkitchin@andr= ew.cmu.edu> wrote:
>
> windows and pip/easy_install are funny sometimes.
>
> I often do something like this:
>
> #+BEGIN_SRC python
> from setuptools.command import easy_install
> easy_install.main( ["-U","requests"] )
> #+END_SRC
>
> #+RESULTS:
> #+begin_example
> Searching for requests
> Reading http://pypi.python.org/simple/requests/
> Best match: requests 2.2.1
> Downloading
> htt= ps://pypi.python.org/packages/source/r/requests/requests-2.2.1.tar.gz#md5= =3Dac27081135f58d1a43e4fb38258d6f4e
> Processing requests-2.2.1.tar.gz
> Writing /tmp/easy_install-EWppsP/requests-2.2.1/setup.cfg
> Running requests-2.2.1/setup.py -q bdist_egg --dist-dir
> /tmp/easy_install-EWppsP/requests-2.2.1/egg-dist-tmp-xoXvDk
> Adding requests 2.2.1 to easy-install.pth file
>
> Installed
> /opt/kitchingroup/enthought/epd-7.3-2-rh5-x86_64/lib/python2.7/site-pa= ckages/requests-2.2.1-py2.7.egg
> Processing dependencies for requests
> Finished processing dependencies for requests
> #+end_example

Ah, great idea. However, at my side, it ends up like this:

#+BEGIN_SRC python :results output
from setuptools.command import easy_install
easy_install.main( ["-U","requests"] )
#+END_SRC

#+RESULTS:
: Searching for requests
: Reading http://pypi.python.org/simple/requests/
: Best match: requests 2.2.1
: Downloading https://pypi.python.org/packages/source/r/requests/requests-2.2.1.tar= .gz#md5=3Dac27081135f58d1a43e4fb38258d6f4e
: Processing requests-2.2.1.tar.gz
: Writing /cygdrive/c/Users/KARL~1.VOI/AppData/Local/Temp/easy_install-L3Xx= cz/requests-2.2.1/setup.cfg
: Running requests-2.2.1/setup.py -q bdist_egg --dist-dir /cygdrive/c/Users= /KARL~1.VOI/AppData/Local/Temp/easy_install-L3Xxcz/requests-2.2.1/egg-dist-= tmp-veH5jq

In Cygwin shell, I can execute "easy_install pip". After that, I = can execute
"pip" but I never get any output on "pip help" "pi= p -h" "pip --help" or "pip
install requests".

I miss my Linux at work :-(

--
mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode:
=A0 =A0 =A0 =A0> get Memacs from https://github.com/novoid/Memacs <

https://github.com/novoid/extract_pdf_annotations_to_orgmod= e + more on github



--047d7b111dd97c392e04f2389d1f--