Re: [f2py] Q: no Python27/Scripts directory
"Torppa Johanna (GTK)" <[email protected]> Fri, 8 Mar 2013 14:03:12 +0000
| Newsgroups | gmane.comp.python.f2py.user |
|---|---|
| Message-ID | <593369B50DDC6846952F92BDF0BB33EAE115A9@FIHGA-EXMBX01.msvyvi.vaha.local> |
--===============2862785267826006822== Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_593369B50DDC6846952F92BDF0BB33EAE115A9FIHGAEXMBX01msvyv_" --_000_593369B50DDC6846952F92BDF0BB33EAE115A9FIHGAEXMBX01msvyv_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable I do not remember creating the f2py.py file myself with the previous versio= ns (now I=92ve updated most of the software on my computer). I think I prev= iously only followed the instructions found from the net, and, after instal= ling nympy, gave the command: python c:\Python25\Scripts\f2py.py -c --fcompiler=3Dgnu95 --compiler=3Dming= w32 -lmsvcr71 -m <output.pyd> <input.f90> to create a .pyd file fo be imported to python. And it worked. Do I not rem= ember correctly..? I never even thought what this f2py.py contained. It already was in the Scr= ipts directory=85 I think.. What should it contain in this case? I mean referring to the command above. bw, Johanna From: f2py-users-bounces-Y4l6ocDipWCuvFJfX82//[email protected] [mailto:f2py-users-bounces-Y4l6ocDipWCuvFJfX82//[email protected]= ] On Behalf Of Pearu Peterson Sent: 8. maaliskuuta 2013 14:54 To: For users of the f2py program Subject: Re: [f2py] Q: no Python27/Scripts directory Hi, You can just create the f2py.py script and save it where Windows can find i= t, eg c:\Python27\Scripts. As minimum, the script should contain the following statements: from numpy.f2py import main main() HTH, Pearu On Fri, Mar 8, 2013 at 1:10 PM, Torppa Johanna (GTK) <[email protected]= <mailto:[email protected]>> wrote: I=92have Python 2.7.2 and numpy 1.6.1 installed along with ArcGIS 10.1 on m= y Win7 PC. The f2py.py directory is missing, however. I do not find it even= with the =93search=94 tool. Anyone has an idea what this is all about? Sho= uld I uninstall numpy and install it myself again. But how to do this? Ther= e=92s no uninstall-program in the numpy directory=85 just remove the direct= ory=85? Thanks in advance, Johanna _______________________________________________ f2py-users mailing list f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]<mailto:f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]> http://cens.ioc.ee/mailman/listinfo/f2py-users --_000_593369B50DDC6846952F92BDF0BB33EAE115A9FIHGAEXMBX01msvyv_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr= osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:= //www.w3.org/TR/REC-html40"> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DWindows-1= 252"> <meta name=3D"Generator" content=3D"Microsoft Word 12 (filtered medium)"> <style><!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} @font-face {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman","serif";} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:purple; text-decoration:underline;} span.EmailStyle17 {mso-style-type:personal-reply; font-family:"Calibri","sans-serif"; color:#1F497D;} .MsoChpDefault {mso-style-type:export-only;} @page WordSection1 {size:612.0pt 792.0pt; margin:70.85pt 2.0cm 70.85pt 2.0cm;} div.WordSection1 {page:WordSection1;} --></style><!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--> </head> <body lang=3D"FI" link=3D"blue" vlink=3D"purple"> <div class=3D"WordSection1"> <p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-= family:"Calibri","sans-serif";color:#1F497D">I do not r= emember creating the f2py.py file myself with the previous versions (now I= =92ve updated most of the software on my computer). I think I previously only followed the instructions found from the net, and, after i= nstalling nympy, gave the command: <o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-= family:"Calibri","sans-serif";color:#1F497D">python c:\= Python25\Scripts\f2py.py -c --fcompiler=3Dgnu95 --compiler=3Dmingw32 -lmsvc= r71 -m <output.pyd> <input.f90><o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-= family:"Calibri","sans-serif";color:#1F497D">to create = a .pyd file fo be imported to python. And it worked. Do I not remember corr= ectly..?<o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-= family:"Calibri","sans-serif";color:#1F497D"><o:p> = ;</o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-= family:"Calibri","sans-serif";color:#1F497D">I never ev= en thought what this f2py.py contained. It already was in the Scripts direc= tory=85 I think..<o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-= family:"Calibri","sans-serif";color:#1F497D"><o:p> = ;</o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-= family:"Calibri","sans-serif";color:#1F497D">What shoul= d it contain in this case? I mean referring to the command above.<o:p></o:p= ></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-= family:"Calibri","sans-serif";color:#1F497D"><o:p> = ;</o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-= family:"Calibri","sans-serif";color:#1F497D">bw, Johann= a <o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-= family:"Calibri","sans-serif";color:#1F497D"><o:p> = ;</o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-= family:"Calibri","sans-serif";color:#1F497D"><o:p> = ;</o:p></span></p> <div style=3D"border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm = 0cm 0cm"> <p class=3D"MsoNormal"><b><span lang=3D"EN-US" style=3D"font-size:10.0pt;fo= nt-family:"Tahoma","sans-serif"">From:</span></b><span = lang=3D"EN-US" style=3D"font-size:10.0pt;font-family:"Tahoma",&qu= ot;sans-serif""> f2py-users-bounces-Y4l6ocDipWCuvFJfX82//[email protected] [mailto:f2py-users-bou= nces-Y4l6ocDipWCuvFJfX82//[email protected]] <b>On Behalf Of </b>Pearu Peterson<br> <b>Sent:</b> 8. maaliskuuta 2013 14:54<br> <b>To:</b> For users of the f2py program<br> <b>Subject:</b> Re: [f2py] Q: no Python27/Scripts directory<o:p></o:p></spa= n></p> </div> <p class=3D"MsoNormal"><o:p> </o:p></p> <div> <div> <div> <div> <p class=3D"MsoNormal">Hi,<br> <br> You can just create the f2py.py script and save it where Windows can find i= t, eg c:\Python27\Scripts.<o:p></o:p></p> </div> <p class=3D"MsoNormal" style=3D"margin-bottom:12.0pt">As minimum, the scrip= t should contain the following statements:<br> <br> from numpy.f2py import main<br> main()<br> <br> <o:p></o:p></p> </div> <p class=3D"MsoNormal">HTH,<o:p></o:p></p> </div> <p class=3D"MsoNormal">Pearu<o:p></o:p></p> </div> <div> <p class=3D"MsoNormal" style=3D"margin-bottom:12.0pt"><o:p> </o:p></p> <div> <p class=3D"MsoNormal">On Fri, Mar 8, 2013 at 1:10 PM, Torppa Johanna (GTK)= <<a href=3D"mailto:[email protected]" target=3D"_blank">johanna.tor= [email protected]</a>> wrote:<o:p></o:p></p> <div> <div> <div> <div> <div> <div> <p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a= lt:auto"><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-family:"C= alibri","sans-serif";color:#1F497D">I=92have Python 2.7.2 an= d numpy 1.6.1 installed along with ArcGIS 10.1 on my Win7 PC. The f2py.py directory is missing, however. I do not find it even with the = =93search=94 tool. Anyone has an idea what this is all about? Should I unin= stall numpy and install it myself again. But how to do this? There=92s no u= ninstall-program in the numpy directory=85 just remove the directory=85?</span><o:p></o:p></p> <p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a= lt:auto"><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-family:"C= alibri","sans-serif";color:#1F497D"> </span><o:p></o:p>= </p> <p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a= lt:auto"><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-family:"C= alibri","sans-serif";color:#1F497D">Thanks in advance, Johan= na</span><o:p></o:p></p> </div> </div> </div> </div> </div> </div> <p class=3D"MsoNormal" style=3D"margin-bottom:12.0pt"><br> _______________________________________________<br> f2py-users mailing list<br> <a href=3D"mailto:f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]">f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]</a><br> <a href=3D"http://cens.ioc.ee/mailman/listinfo/f2py-users" target=3D"_blank= ">http://cens.ioc.ee/mailman/listinfo/f2py-users</a><o:p></o:p></p> </div> <p class=3D"MsoNormal"><o:p> </o:p></p> </div> </div> </body> </html> --_000_593369B50DDC6846952F92BDF0BB33EAE115A9FIHGAEXMBX01msvyv_-- --===============2862785267826006822== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ f2py-users mailing list f2py-users-Y4l6ocDipWCuvFJfX82//[email protected] http://cens.ioc.ee/mailman/listinfo/f2py-users --===============2862785267826006822==--