Re: [Tutor] Installing Python on Server

2019-06-18 Thread Alan Gauld via Tutor
On 18/06/2019 14:28, Ben Wadsworth wrote:
> Hi,
> When installing Python on a windows server, will the server require a
> restart?

I've never tried so can't be sure.

But it shouldn't.
Python doesn't require any special access.
But then again,  it is Windows, so you can never tell.


-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos


___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


[Tutor] Installing Python on Server

2019-06-18 Thread Ben Wadsworth
Hi,
When installing Python on a windows server, will the server require a
restart?

Thank you!
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Installing Python v3 on a laptop Windows 10 (SOLVED)

2019-06-17 Thread Ken Green

On 15/06/2019 22:23, Ken Green wrote:


I understood there is a preferable method
of installing Python into Windows. I pray
tell on how about to do it, gentlemen.



Thank you gentlemen for the prompt responses to
my inquiry. I believe it would be best for me to use
the ActiveState installation for my laptop.

I like Microsoft trying to make it easily to download
Python but I am not sure if it has been fully implemented
yet. Again, thanks guys.

Ken Green
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Installing Python v3 on a laptop Windows 10

2019-06-15 Thread Mats Wichmann
On 6/15/19 3:23 PM, Ken Green wrote:\


You've already gotten some good answers, don't consider this as
contradictory.

> I understood there is a preferable method
> of installing Python into Windows. I pray
> tell on how about to do it, gentlemen.

There isn't, there are actually many ways, and to some extent it depends
on what you want to do.  For example, in addition to what you've heard,
these days there are a ton of people doing data analysis, Big Data, etc.
and they often prefer to install Python through the Anaconda
distribution, which has optimised for getting the particularly relevant
packages installed easily alongside and in sync with Python, and then
keeping those up to date.

In the near future, but maybe not quite there yet, Windows 10 will also
have a Python "app" preinstalled, which, when you launch it, installs
the current version of Python through the Microsoft Store.  I think you
can already install via the Microsoft Store, but it's not something that
magically appears on your system even before you think to look for it...
see here:

https://www.microsoft.com/en-us/p/python-37/9nj46sx7x90p?activetab=pivot:overviewtab

That looks like it wants later than the 1809 version, but should be
ready for the 1903 version of Windows 10?


and you wanted a simple answer

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Installing Python v3 on a laptop Windows 10

2019-06-15 Thread eryk sun
On 6/15/19, Alan Gauld via Tutor  wrote:
> On 15/06/2019 22:23, Ken Green wrote:
>
>> I understood there is a preferable method
>> of installing Python into Windows. I pray
>> tell on how about to do it, gentlemen.
>
> It depends a bit on which python distribution you use,
> there are several.
>
> Personally for Windows I always recommend the ActiveState free
> version. It bundles several useful extra Windows tools and
> puts the docs in Windows help format for you.

The compiled HTML (python*.chm) documentation is also included in the
official PSF (python.org) distribution. It's in the "Doc" folder. The
installer should create a shortcut to it in the start menu.

The current release of Windows 10 includes a `python` command that
installs the 3.7 app bundle from the Microsoft Store. This is a simple
one-click install method that should be easy for anyone. Unfortunately
the above-mentioned python37.chm file is not included in this
distribution.
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Installing Python v3 on a laptop Windows 10

2019-06-15 Thread Alan Gauld via Tutor
On 15/06/2019 22:23, Ken Green wrote:

> I understood there is a preferable method
> of installing Python into Windows. I pray
> tell on how about to do it, gentlemen.

It depends a bit on which python distribution you use,
there are several.

Personally for Windows I always recommend the ActiveState free
version. It bundles several useful extra Windows tools and
puts the docs in Windows help format for you.


-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos


___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


[Tutor] Installing Python v3 on a laptop Windows 10

2019-06-15 Thread Ken Green

It has been some 18 months that I last
installed Python onto my laptop Windows.

Having had freshly completely reinstalled
Windows 10 and its various updates. I already
installed PSREdit500 successfully several
weeks ago, I am now ready to install Python,
preferable the latest version of Python 3.

I understood there is a preferable method
of installing Python into Windows. I pray
tell on how about to do it, gentlemen.

I have been using Python v2.7.15 along with
Geany v1.32 in my computer running on Ubuntu
18.04.2. As you can see, there is a sharp
learning curve for me on how to use and learn
Python v3. Thanks.

Ken
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Installing Python

2019-06-10 Thread Alan Gauld via Tutor
On 10/06/2019 22:20, Avi Chein wrote:

> I'm trying to install Python 3.6 on my MacOS Mojave but it isn't installing
> properly. 

When asking for help, on any forum, it's never a good idea to say that
something "doesn't work" or "isn't installing properly". That gives us
nothing to work on. What exactly is happening?

Where did you download from? How did you try to install it?
What actually happened? - Error messages? Or just a non-functioning
icon or menu? Or nothing at all?

The more specific the information you give us the better the
chance that we can answer.

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos


___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


[Tutor] Installing Python

2019-06-10 Thread Avi Chein
Hi,

I'm trying to install Python 3.6 on my MacOS Mojave but it isn't installing
properly. Can someone help me out? I'm a college student and have never
used Python before. Would be much appreciated!

Thans,
Avi
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Installing python

2018-11-04 Thread Roger B. Atkins
Thanks. That confirms some of my surmises. I may still have the
Anaconda version on one of my notebook computers. I may use that to
write and debug source code, since I like the Spyder IDE, and then
copy working programs to my main desktop computer to run them in
Windows with no virtual environment.
On Sat, Nov 3, 2018 at 7:39 AM Mats Wichmann  wrote:
>
> On 11/2/18 10:01 PM, Roger B. Atkins wrote:
> > Okay, but what about the virtual environments? Once the Windows 10
> > path environment variable has a version of Python added to it, Windows
> > will find it (I am using Win 10), but will it be found from within any
> > given virtual environment (venv), regardless of which version created
> > the environment? And if 3rd party packages have been installed within
> > a venv, will they be found a) by Windows, and b) by the Python version
> > within the venv, even if it was not used to install the packages?
>
> (a) when you activate a virtualenv, it will always find that python (the
> one the env was created from), that's what the activation does - fiddle
> paths so you see that envirnoment and not any other that may be sitting
> around.
>
> (b) when you pip install with a virtualenv active the installation will
> be private to that virtualenv.
>
> which leads to... Anaconda uses virtualenvs (afiak, _always_, rather
> than "when you ask for one" like many IDEs do), so, packages installed
> though Anaconda are in that sense "private".  They're not secret - you
> can see them all in the physical location where the virtualenv is set
> up, if you figure out where that is.
>
> > These questions confounded me until I finally deleted Anaconda, and
> > Python with it, because when running programs in Windows vice the
> > Spyder IDE, Windows could find Python, but not the 3rd party packages
> > such as pyperclip, bs4, and requests. I suspect it had something to do
> > with the Anaconda installation process establishing a venv, and the
> > package locations not existing (or not being visible) in Windows.
> I don't think developers of projects like Anaconda expect that their
> target users will try to run Python lots of different ways, so getting
> things all under their control is helpful and presents a consistent
> front, which is really the value the project brings - you want to do
> some (for example) scientific work in Python, and some notes tell you
> you need to install these 17 packages, and if you're on Windows, a
> couple of them maybe don't work because you don't have a C compiler
> installed - Anaconda puts that all in once place and makes it easier.
> Doesn't mean it isn't still occasionally confusing. If you need to run
> more versions, you can always install pkgs a second time, "outside" the
> Anaconda world. It should even be quick to do, pip caches packages it
> has downloaded so it probably won't even need to re-download.
>
>
> p.s. Python can tell you which Python it is running:
>
>   $ python
>   Python 2.7.15 (default, Oct 15 2018, 15:24:06)
>   [GCC 8.1.1 20180712 (Red Hat 8.1.1-5)] on linux2
>   Type "help", "copyright", "credits" or "license" for more information.
>   >>> import sys
>   >>> sys.executable
>   '/usr/bin/python'
>   >>>
>   $ source ~/virtualenv/py2/bin/activate
>   $ python
>   Python 2.7.15 (default, Oct 15 2018, 15:24:06)
>   [GCC 8.1.1 20180712 (Red Hat 8.1.1-5)] on linux2
>   Type "help", "copyright", "credits" or "license" for more information.
>   >>> import sys
>   >>> sys.executable
>   '/home/mats/virtualenv/py2/bin/python'
>   >>>
>
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Installing python

2018-11-03 Thread Mats Wichmann
On 11/2/18 10:01 PM, Roger B. Atkins wrote:
> Okay, but what about the virtual environments? Once the Windows 10
> path environment variable has a version of Python added to it, Windows
> will find it (I am using Win 10), but will it be found from within any
> given virtual environment (venv), regardless of which version created
> the environment? And if 3rd party packages have been installed within
> a venv, will they be found a) by Windows, and b) by the Python version
> within the venv, even if it was not used to install the packages?

(a) when you activate a virtualenv, it will always find that python (the
one the env was created from), that's what the activation does - fiddle
paths so you see that envirnoment and not any other that may be sitting
around.

(b) when you pip install with a virtualenv active the installation will
be private to that virtualenv.

which leads to... Anaconda uses virtualenvs (afiak, _always_, rather
than "when you ask for one" like many IDEs do), so, packages installed
though Anaconda are in that sense "private".  They're not secret - you
can see them all in the physical location where the virtualenv is set
up, if you figure out where that is.

> These questions confounded me until I finally deleted Anaconda, and
> Python with it, because when running programs in Windows vice the
> Spyder IDE, Windows could find Python, but not the 3rd party packages
> such as pyperclip, bs4, and requests. I suspect it had something to do
> with the Anaconda installation process establishing a venv, and the
> package locations not existing (or not being visible) in Windows.
I don't think developers of projects like Anaconda expect that their
target users will try to run Python lots of different ways, so getting
things all under their control is helpful and presents a consistent
front, which is really the value the project brings - you want to do
some (for example) scientific work in Python, and some notes tell you
you need to install these 17 packages, and if you're on Windows, a
couple of them maybe don't work because you don't have a C compiler
installed - Anaconda puts that all in once place and makes it easier.
Doesn't mean it isn't still occasionally confusing. If you need to run
more versions, you can always install pkgs a second time, "outside" the
Anaconda world. It should even be quick to do, pip caches packages it
has downloaded so it probably won't even need to re-download.


p.s. Python can tell you which Python it is running:

  $ python
  Python 2.7.15 (default, Oct 15 2018, 15:24:06)
  [GCC 8.1.1 20180712 (Red Hat 8.1.1-5)] on linux2
  Type "help", "copyright", "credits" or "license" for more information.
  >>> import sys
  >>> sys.executable
  '/usr/bin/python'
  >>>
  $ source ~/virtualenv/py2/bin/activate
  $ python
  Python 2.7.15 (default, Oct 15 2018, 15:24:06)
  [GCC 8.1.1 20180712 (Red Hat 8.1.1-5)] on linux2
  Type "help", "copyright", "credits" or "license" for more information.
  >>> import sys
  >>> sys.executable
  '/home/mats/virtualenv/py2/bin/python'
  >>>

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Installing python

2018-11-03 Thread Roger B. Atkins
Okay, but what about the virtual environments? Once the Windows 10
path environment variable has a version of Python added to it, Windows
will find it (I am using Win 10), but will it be found from within any
given virtual environment (venv), regardless of which version created
the environment? And if 3rd party packages have been installed within
a venv, will they be found a) by Windows, and b) by the Python version
within the venv, even if it was not used to install the packages?

These questions confounded me until I finally deleted Anaconda, and
Python with it, because when running programs in Windows vice the
Spyder IDE, Windows could find Python, but not the 3rd party packages
such as pyperclip, bs4, and requests. I suspect it had something to do
with the Anaconda installation process establishing a venv, and the
package locations not existing (or not being visible) in Windows.
That's just a WAG based on not being able to find the specified
directories in Windows Explorer. So, I'm just wondering if my quagmire
was part of or related to Mr. Scherer's, and whether he might have
similar problems if he goes back and forth between different virtual
environments.
On Fri, Nov 2, 2018 at 6:18 PM Alan Gauld via Tutor  wrote:
>
> On 02/11/2018 23:44, Mats Wichmann wrote:
>
> > that's actually exactly the right path for a Python 3.5+ if you chose a
> >  "user install", which you usually should.
>
> Ah, I always install for all users. That's why I've not
> seen that path presumably?
>
> But why *should* you install for a single user? I only
> ever do that for programs that I'm still writing and
> don't want other users to accidentally start. But I
> want everyone to be able to run my Python programs
> so I always install for everyone.
>
> > the "modern" answer for Windows is supposed to be the Python Launcher,
>
> I keep forgetting that thing exists. I really must spend
> some time getting to grips with it...
>
>
> --
> Alan G
> Author of the Learn to Program web site
> http://www.alan-g.me.uk/
> http://www.amazon.com/author/alan_gauld
> Follow my photo-blog on Flickr at:
> http://www.flickr.com/photos/alangauldphotos
>
>
> ___
> Tutor maillist  -  Tutor@python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Installing python

2018-11-03 Thread Avi Gross
Alan,

Many people have machines with a single login that is shared with nobody. 

I install lots of software on multiple machines that only I use and have
often wondered what the purpose for me was to install for everyone. On some
machines you then need to log in as whatever variant of superuser you have
to be if you want to be able to write in restricted directories or make
changes to the operating system or global configuration files.

There can be tradeoffs in how long it takes to find a program on your PATH
or PYTHONPATH or other such things. 

But, of course, if you have many users who might otherwise install their own
personal copies of software on the same machine, especially one where many
people may log in at once, then it may make more sense to share.


But I wonder about the many modern languages that can be extended by also
installing one of thousands of packages above and beyond the standard ones
routinely in place. Do you want people to replace earlier versions for
everyone or be able to install them in a global area at all? Among other
considerations, if they have write access they might be able to modify
something others use, like numpy, which is a serious security risk when you
can sneak in a call to pop open a shell that reformats the hard disk or
whatever.

Avi

-Original Message-
From: Tutor  On Behalf Of
Alan Gauld via Tutor
Sent: Friday, November 2, 2018 9:16 PM
To: tutor@python.org
Subject: Re: [Tutor] Installing python

On 02/11/2018 23:44, Mats Wichmann wrote:

> that's actually exactly the right path for a Python 3.5+ if you chose 
> a  "user install", which you usually should.

Ah, I always install for all users. That's why I've not seen that path
presumably?

But why *should* you install for a single user? I only ever do that for
programs that I'm still writing and don't want other users to accidentally
start. But I want everyone to be able to run my Python programs so I always
install for everyone.

> the "modern" answer for Windows is supposed to be the Python Launcher,

I keep forgetting that thing exists. I really must spend some time getting
to grips with it...


--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos


___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Installing python

2018-11-03 Thread Adam Eyring
On Fri, Nov 2, 2018 at 8:10 PM Mark Lawrence  wrote:

> On 02/11/2018 22:49, Alan Gauld via Tutor wrote:
> > On 02/11/2018 21:13, Roger Lea Scherer wrote:
> >
> >> I have installed python 3.7 on my computer Windows10
> >> (C:\Users\Roger\AppData\Local\Programs\Python\Python37),
> >
> > Caveat: I'm no expert on modern Windoze.
> > But... That looks like the wrong path to me.
> >
> > My Windows install is usually either in
> >
> > C:\Python...
> > or
> > C:\Program files\Python...
> >
> > Depending on distro...
> >
>
> The C:\Users... path has been the standard for some time for a single
> user install.  C:\Python was binned some years back for security reasons
> whilst C:\Program Files\Python... was added for security reasons.
>
>
The c:\users... path is frustrating to find because the AppData folder by
default is hidden. I haven't bothered to make it visible, so I just create
a shortcut to the Pythonxx folder to access my code files.
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Installing python

2018-11-02 Thread Mats Wichmann
ays install for everyone.
> 
>> the "modern" answer for Windows is supposed to be the Python Launcher,
> 
> I keep forgetting that thing exists. I really must spend
> some time getting to grips with it...

I used it for a bit because I was trying to disentangle test suite
failures unique to windows for a project... and had four concurrent
versions of python while doing that. but then ended up having to install
a bunch of "extra" stuff so set up virtualenvs to precisely control the
environment I was getting, and not using py any more.

I think it's a case of you use what works and that may not require
python launcher, if what you already have works fine :) (esp. for those
of us who are not necessarily normally windows users)
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Installing python

2018-11-02 Thread Alan Gauld via Tutor
On 02/11/2018 23:44, Mats Wichmann wrote:

> that's actually exactly the right path for a Python 3.5+ if you chose a
>  "user install", which you usually should. 

Ah, I always install for all users. That's why I've not
seen that path presumably?

But why *should* you install for a single user? I only
ever do that for programs that I'm still writing and
don't want other users to accidentally start. But I
want everyone to be able to run my Python programs
so I always install for everyone.

> the "modern" answer for Windows is supposed to be the Python Launcher,

I keep forgetting that thing exists. I really must spend
some time getting to grips with it...


-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos


___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Installing python

2018-11-02 Thread Mark Lawrence

On 02/11/2018 22:49, Alan Gauld via Tutor wrote:

On 02/11/2018 21:13, Roger Lea Scherer wrote:


I have installed python 3.7 on my computer Windows10
(C:\Users\Roger\AppData\Local\Programs\Python\Python37),


Caveat: I'm no expert on modern Windoze.
But... That looks like the wrong path to me.

My Windows install is usually either in

C:\Python...
or
C:\Program files\Python...

Depending on distro...



The C:\Users... path has been the standard for some time for a single 
user install.  C:\Python was binned some years back for security reasons 
whilst C:\Program Files\Python... was added for security reasons.


--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Installing python

2018-11-02 Thread Mats Wichmann
On 11/2/18 4:49 PM, Alan Gauld via Tutor wrote:
> On 02/11/2018 21:13, Roger Lea Scherer wrote:
> 
>> I have installed python 3.7 on my computer Windows10
>> (C:\Users\Roger\AppData\Local\Programs\Python\Python37), 
> 
> Caveat: I'm no expert on modern Windoze.
> But... That looks like the wrong path to me.
> 
> My Windows install is usually either in
> 
> C:\Python...
> or
> C:\Program files\Python...
> 
> Depending on distro...

that's actually exactly the right path for a Python 3.5+ if you chose a
 "user install", which you usually should. Nothing wrong there. However,
you should check if it is in the path - if you wanted it in the path.
More below.

> 
> How exactly did you install it? Did you use the Pyhon.org
> binary installer? Did you use the default settings?
> 
> I don't know if they have 3.7 available yet,
> but I usually recommend activestate.com for
> Windows users, its install seems less
> problematic in my (limited) experience.
> And of course comes loaded with lots of
> extra Windows specific goodies.
> 
>> the git repository that holds all my projects and type "python --version"
>> in WindowsPowershell, I get Python 3.6.5.
> 
> So you must have two Pythons installed?
> What is your PATH set to? That's what controls
> which Python you pick up (along with some
> registry settings)
> 
>> So I guess my question is am I supposed to install python 3.7 in the git
> 
> Definitely not!
> 
>> a related question I think, am I supposed to install python
>> 3.7 in every virtual environment I create, 
> 
> I don't think so but  never use virtual environments.
> Never found a need.
> 
>> I guess I'm so used to installing programs in Windows or Mac and having
>> them accessible globally

actually, windows makes that harder than Mac or Linux, where programs go
to a global shared location.  on windows apps go... well, all kinds of
places, but it's nearly always a _unique_ directory per app.  if you
look in Program Files and Program Files (x86) that's what you see - a
unique directory either per program, or per vendor (like Microsoft,
Adobe, etc.) - and then program-specific subdirectories somewhere
underneath.  All that mess is papered over by adding each one of those
directories to your path.  which many programs do by default, and some
ask you.  Python asks you - but not in a very obvious way, I think you
have to select the advanced options before you even see the question.

the "modern" answer for Windows is supposed to be the Python Launcher,
which should be in your path, and is invoked by typing "py". py lets you
speficy the python you want if you don't want the default.  Try this for
grins:

py -0 --list

it shows you what it thinks are the available Pythons on your system.

if you indeed get two, and the default is 3.6, then you can run Python
3.7 by typing:

py -3.7

pretty simple, hopefully.

hope this helps.

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Installing python

2018-11-02 Thread Steven D'Aprano
On Fri, Nov 02, 2018 at 02:13:46PM -0700, Roger Lea Scherer wrote:
> Hey,
> 
> I have installed python 3.7 on my computer Windows10
> (C:\Users\Roger\AppData\Local\Programs\Python\Python37), but when I go to
> the git repository that holds all my projects and type "python --version"
> in WindowsPowershell, I get Python 3.6.5.

What happens if you type "python37 --version" instead?

What happens if you call the Python launcher instead? Try this and see 
what it does:

py -V

https://docs.python.org/3/using/windows.html#launcher


> So I guess my question is am I supposed to install python 3.7 in the git
> repository?

Heavens no.


> I guess I'm so used to installing programs in Windows or Mac and having
> them accessible globally (I guess is the word) that I expected python 3.7
> to do the same thing, 

I expect it is accessible globally, but you need to know what to call 
it. I'm not a Windows expert, but I expect that it will be more or less 
equivalent to other OSes in the sense that when you call a program by 
name (say, "notepad", or "python") it searches a list of known program 
locations (probably recorded in the Registry) for a matching name, and 
runs the first one found.

I expect that you have entries for 

python36
python37

and probably others, plus an alias for "python" which points to 
python36. You may be able to change the alias, but I don't know how you 
do that on Windows.

Or just be explicit about the one you want.

Or use the "py" Windows launcher, which is supposed to manage all that 
for you. (I don't know how well it works.)


> although I understand about programs written earlier
> crashing because of upgrades, like from 2.7 to 3.4 for instance.

They shouldn't *crash* the interpreter. If they do, that's a bug in the 
interpreter. They might *raise an exception*.

The difference is that a crash (a segfault or core dump) is the 
interpreter melting down and exploding, while an exception is a nicely 
controlled shut down.


Hope this helps shed some light on what's going on.



-- 
Steve
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Installing python

2018-11-02 Thread Alan Gauld via Tutor
On 02/11/2018 21:13, Roger Lea Scherer wrote:

> I have installed python 3.7 on my computer Windows10
> (C:\Users\Roger\AppData\Local\Programs\Python\Python37), 

Caveat: I'm no expert on modern Windoze.
But... That looks like the wrong path to me.

My Windows install is usually either in

C:\Python...
or
C:\Program files\Python...

Depending on distro...

How exactly did you install it? Did you use the Pyhon.org
binary installer? Did you use the default settings?

I don't know if they have 3.7 available yet,
but I usually recommend activestate.com for
Windows users, its install seems less
problematic in my (limited) experience.
And of course comes loaded with lots of
extra Windows specific goodies.

> the git repository that holds all my projects and type "python --version"
> in WindowsPowershell, I get Python 3.6.5.

So you must have two Pythons installed?
What is your PATH set to? That's what controls
which Python you pick up (along with some
registry settings)

> So I guess my question is am I supposed to install python 3.7 in the git

Definitely not!

> a related question I think, am I supposed to install python
> 3.7 in every virtual environment I create, 

I don't think so but  never use virtual environments.
Never found a need.

> I guess I'm so used to installing programs in Windows or Mac and having
> them accessible globally

That's what happens with Python for me...
But you have two versions installed so it depends on what
Windows thinks is the default install.

What happens if you have two versions of MS Office
installed and you type winword?

> to do the same thing, although I understand about programs written earlier
> crashing because of upgrades, like from 2.7 to 3.4 for instance. 

That's got nothing to do with install issues,
that's incompatibity in the code between v2 and v3.

I think the key is how exactly you installed both versions.

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos


___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


[Tutor] Installing python

2018-11-02 Thread Roger Lea Scherer
Hey,

I have installed python 3.7 on my computer Windows10
(C:\Users\Roger\AppData\Local\Programs\Python\Python37), but when I go to
the git repository that holds all my projects and type "python --version"
in WindowsPowershell, I get Python 3.6.5.

So I guess my question is am I supposed to install python 3.7 in the git
repository? and a related question I think, am I supposed to install python
3.7 in every virtual environment I create, or is there a way to link python
to each virtual environment or each repo or each project?

I guess I'm so used to installing programs in Windows or Mac and having
them accessible globally (I guess is the word) that I expected python 3.7
to do the same thing, although I understand about programs written earlier
crashing because of upgrades, like from 2.7 to 3.4 for instance. I'm so
confused I'm not sure I even know what questions to ask, but the above
questions seem to be a missing link in my knowledge at this point.

Thank you as always.

-- 
Roger Lea Scherer
623.255.7719

  *Strengths:*
   Input, Strategic,
Responsibility,

Learner, Ideation



Virus-free.
www.avast.com

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Installing python and numpy on the Mac (OSX)

2018-01-13 Thread giacomo . boffi
Peter Hodges  writes:

> Hi. I downloaded Python 3.6 from the python site, then followed online
> directions for pip to install numpy (in users? —user was in the
> example).
> When I start IDLE in the Python 3.6 in Applications and then type
> import numpy as np I get the following:
> import numpy as np
> Traceback (most recent call last):
>   File "", line 1, in 
> import numpy as np
> ModuleNotFoundError: No module named ‘numpy'
>
> Does this mean I need to set the $PATH with some new pathname?

no

> Or move the numpy directory into the python 3.6 directory?

no

> Or?


first, (optional but I'd reccommend to) disinstall numpy using the same
pip script that you used to install it, something like

$ pip uninstall numpy # possibly using sudo

next, you must be sure that Python 3.6 has pip, either

$ /path/to/python3.6 -m ensurepip --user

or (if you are installing in a virtual environment)

$ /path/to/python3.6 -m ensurepip

the above is going to install pip if it is not already present in the
environment of Python 3.6 --- please see
https://docs.python.org/3/library/ensurepip.html
for the gory details

finally, install numpy for 3.6

$ /path/to/python3.6 -m pip install --user numpy


The command "/path/to/python3.6 -m modulename ..." ensures that the
module and the Python version are matching one with the other.

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Installing python and numpy on the Mac (OSX)

2017-12-24 Thread Abdur-Rahmaan Janhangeer
See Anaconda, a py dist packed with sci modules. Comes bundled with lots of
goodies !

Abdur-Rahmaan Janhangeer,
Mauritius
abdurrahmaanjanhangeer.wordpress.com

On 23 Dec 2017 12:45, "Peter Hodges"  wrote:

> Hi. I downloaded Python 3.6 from the python site, then followed online
> directions for pip to install numpy (in users? —user was in the example).
> When I start IDLE in the Python 3.6 in Applications and then type import
> numpy as np I get the following:
> import numpy as np
> Traceback (most recent call last):
>   File "", line 1, in 
> import numpy as np
> ModuleNotFoundError: No module named ‘numpy'
>
> Does this mean I need to set the $PATH with some new pathname?
> Or move the numpy directory into the python 3.6 directory?
> Or?
>
> Thanks for any help,
> Peter
> ___
> Tutor maillist  -  Tutor@python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
>
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Installing python and numpy on the Mac (OSX)

2017-12-23 Thread Albert-Jan Roskam

Op 23 dec. 2017 09:47 schreef Peter Hodges :
>
> Hi. I downloaded Python 3.6 from the python site, then followed online 
> directions for pip to install numpy (in users? —user was in the example).
> When I start IDLE in the Python 3.6 in Applications and then type import 
> numpy as np I get the following:
> import numpy as np
> Traceback (most recent call last):
>   File "", line 1, in 
> import numpy as np
> ModuleNotFoundError: No module named ‘numpy'
>
> Does this mean I need to set the $PATH with some new pathname?
> Or move the numpy directory into the python 3.6 directory?
> Or?

Or perhaps even easier: https://conda.io/docs/user-guide/install/download.html
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


[Tutor] Installing python and numpy on the Mac (OSX)

2017-12-23 Thread Peter Hodges
Hi. I downloaded Python 3.6 from the python site, then followed online 
directions for pip to install numpy (in users? —user was in the example).
When I start IDLE in the Python 3.6 in Applications and then type import numpy 
as np I get the following:
import numpy as np
Traceback (most recent call last):
  File "", line 1, in 
import numpy as np
ModuleNotFoundError: No module named ‘numpy'

Does this mean I need to set the $PATH with some new pathname?
Or move the numpy directory into the python 3.6 directory?
Or?

Thanks for any help,
Peter
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


[Tutor] Installing Python 2.5.4 on Windows 8 Questions

2014-08-05 Thread Kelvin Baumgart
My current OS is Windows 8 unfortunately. I'm definitely desiring to change
this however for the time being I require an external DVD burner to obtain
backups/OS before I can really progress. For the time being I'm recently
someone who has an unparalleled drive towards becoming a programmer. I'd
imagine seeing someone attempting to install an older version of Python may
be out of the norm. As my ambition to pursue skills I've began an online
course on Introduction to Computer Science and Programming which is being
taught through MIT. Their curriculum is centered on 2.5.4 however any 2.5
or 2.6 versions are allegedly acceptable accordingly to the syllabus. I'm
literally what you could consider an absolute novice who's just starting
dabbling with this sort of thing, so please look past any naivety that
probably engulfs this email. Essentially if you could help get started with
installation by giving me professional input towards what OS or anything
else relevant to my cause I will be greatly appreciative for your time and
effort. Without saying I've browsed through the forms and FAQ yet I've
haven't quite seen any particular thread that has these exact variables I
face. I hope to hear back from you soon, and look forward to receiving
guidance from those with expertise on such a trivial problem.

Sincerely Kelvin B
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Installing Python 2.5.4 on Windows 8 Questions

2014-08-05 Thread Alan Gauld

On 05/08/14 05:02, Kelvin Baumgart wrote:

My current OS is Windows 8 unfortunately.


The Windows 8 GUI sucks, but other than that its not a bad OS IMHO...
And Classic Shell fixes the UI.


and Programming which is being taught through MIT. Their curriculum is
centered on 2.5.4 however any 2.5 or 2.6 versions are allegedly
acceptable accordingly to the syllabus.


Install v2.6 its a lot closer to the latest version that 2.5.


email. Essentially if you could help get started with installation by
giving me professional input towards what OS or anything else relevant
to my cause I will be greatly appreciative for your time and effort.


Just download the Windows installer for Python2.6.

https://www.python.org/download/releases/2.6.6/

Make sure you get the right version for your OS (64vbit v 32 bit)
If in doubt use the 32bit version as it works on both.

Also note the caveat on the web page re security fixes.
But this is the last version of 2.6 with a Windows installer
so is your best bet.

--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.flickr.com/photos/alangauldphotos

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Installing Python 2.5.4 on Windows 8 Questions

2014-08-05 Thread Steven D'Aprano
Hi Kelvin,

My responses interleaved between your comments below.

On Mon, Aug 04, 2014 at 11:02:05PM -0500, Kelvin Baumgart wrote:
 My current OS is Windows 8 unfortunately. I'm definitely desiring to change
 this however for the time being I require an external DVD burner to obtain
 backups/OS before I can really progress. For the time being I'm recently
 someone who has an unparalleled drive towards becoming a programmer. I'd
 imagine seeing someone attempting to install an older version of Python may
 be out of the norm.

Installing an older version is a little unusual, but not unheard of. I 
myself have versions of Python going back to 0.9 installed.


 As my ambition to pursue skills I've began an online
 course on Introduction to Computer Science and Programming which is being
 taught through MIT. Their curriculum is centered on 2.5.4 however any 2.5
 or 2.6 versions are allegedly acceptable accordingly to the syllabus.

If you have a choice between 2.5 and 2.6, choose 2.6.


 I'm
 literally what you could consider an absolute novice who's just starting
 dabbling with this sort of thing, so please look past any naivety that
 probably engulfs this email.

You and half the people on this list :-)


 Essentially if you could help get started with
 installation by giving me professional input towards what OS or anything
 else relevant to my cause I will be greatly appreciative for your time and
 effort.

If you're familiar with Windows, stick to Windows. But, I think it's 
probably fair to say that Linux is a better OS for professional Python 
development than Windows is. That isn't to say that you cannot write 
Python code on Windows, just that it's a bit harder. With Linux, you 
have a much wider range of free, professional-quality tools that will 
make your life as a developer easier.

But, as a beginner, don't worry about that. Stick to what you know. You 
can always experiment later.

Do the MIT course notes assume you're using a specific editor? If so, 
you might like to use that one. Otherwise, you'll want a *good* editor. 
You can write Python code with Notepad, if you're desperate enough, it's 
just text, but you'll be more productive with a programmers editors. I'm 
not a Windows user, so I can't make any personal recommendations, but 
you can start here:

https://wiki.python.org/moin/PythonEditors

I've used geany (on Linux, not Windows), and can recommend it. I've also 
used Spyder (again, on Linux) but the version I used just felt sluggish 
and too busy, but many people disagree. The beauty of starting with 
free, open source software is that it costs you nothing but a little bit 
of time to try it out.

If you have a scientific background, and are used to software like 
Mathematica that has notebooks, you should consider using IPython.

As far as installing Python goes, you can get a bare-bones Windows 
installer from here:

https://www.python.org/download/releases/2.6.6/


If you feel brave enough to compile your own from source, and have a 
Windows C compiler, try this:

https://www.python.org/download/releases/2.6.8/

but if you have no idea what a C compiler is or how to use it, stick to 
the first link. Or, you can use a third-party package:

http://komodoide.com/komodo-edit/

although I don't know what version(s) of Python it supports. I hear good 
things about Komodo.


 Without saying I've browsed through the forms and FAQ yet I've
 haven't quite seen any particular thread that has these exact variables I
 face. I hope to hear back from you soon, and look forward to receiving
 guidance from those with expertise on such a trivial problem.

No problem at all! Feel free to ask any questions you may have.


-- 
Steven
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


[Tutor] Installing Python on osx 10.9.1

2014-01-28 Thread Aubri Sandlin
I have installed Python.  When I open IDLE I get this warning:   WARNING: 
The version of Tcl/Tk (8.5.9) in use may be unstable.
Visit http://www.python.org/download/mac/tcltk/ for current information.


I have downloaded and installed the latest version of TCL/TK and rebooted my 
computer.  I still get the above warning.  

What else do I need to do in order to be able to use Python?


___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Installing Python on osx 10.9.1

2014-01-28 Thread Dave Angel
 Aubri Sandlin au...@sandlininc.com Wrote in message:
 I have installed Python.  When I open IDLE I get this warning:   WARNING: 
 The version of Tcl/Tk (8.5.9) in use may be unstable.
 Visit http://www.python.org/download/mac/tcltk/ for current information.
 
 
 I have downloaded and installed the latest version of TCL/TK and rebooted my 
 computer.  I still get the above warning.  
 
 What else do I need to do in order to be able to use Python?

 
 

IDLE isn't an integral part of python.  I've never tried it in
 about five years of using Python. 

But if you think you need it, then tell people what version of
 Python and what version of (mac?) operating system.
 

-- 
DaveA

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Installing Python on osx 10.9.1

2014-01-28 Thread Dave Angel
 Dave Angel da...@davea.name Wrote in message:
  Aubri Sandlin au...@sandlininc.com Wrote in message:
 I have installed Python.  When I open IDLE I get this warning:   WARNING: 
 The version of Tcl/Tk (8.5.9) in use may be unstable.
 Visit http://www.python.org/download/mac/tcltk/ for current information.
 
 
 I have downloaded and installed the latest version of TCL/TK and rebooted my 
 computer.  I still get the above warning.  
 
 What else do I need to do in order to be able to use Python?

 
 
 
 IDLE isn't an integral part of python.  I've never tried it in
  about five years of using Python. 
 
 But if you think you need it, then tell people what version of
  Python and what version of (mac?) operating system.
  
Oops, I just noticed you give some of that information in the
 subject line. Sorry. 

But it'd be useful to know just what version of Tcl/Tj you tried
 to install.

You did realize that recent versions of os have a python
 installed,  like most systems other than Windows?
 


-- 
DaveA

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


[Tutor] Installing Python Packages

2013-01-13 Thread what ever
I'm new to programming and I'm having trouble understanding the way
packaging works in Python. I've spent the past 0week reading up on the
subject, and I have a general idea of how it all works, but this is
still very frustrating for me.


I want to install four packages. Their names are pip, distribute,
nose, and virtualenv.
The big question is: How would you recommend I install these packages
on my system?
I was also hoping you could explain Python packaging in general.

If you can show me how to install these packages or point me in the
right direction, it would be greatly appreciated!

I am running OS X Leopard also known as OS 10.6.8
I am running Python 2.6.1 (python came pre-installed)

Thank you!  =D
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Installing Python Packages :p:

2013-01-13 Thread Paradox


On 01/14/2013 10:58 AM, what ever wrote:

I want to install four packages. Their names are pip, distribute,
nose, and virtualenv.
The big question is: How would you recommend I install these packages
on my system?
I was also hoping you could explain Python packaging in general.

I only recently discovered this article myself - wonderful for setting 
some of the basics to understand packaging and how the parts fit together.


http://mirnazim.org/writings/python-ecosystem-introduction/

thomas
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Installing Python and modules

2011-12-19 Thread Jugurtha Hadjar

On 15/12/2011 01:28, Sean Baumgarten wrote:

Hello,

I'm wondering if someone could walk me step-by-step through installing 
Python and some third-party modules. I've never used Python or other 
programming languages before, but I'm just trying to install it so I 
can run a simple script. I'm running Mac OSX 10.6.8.





Hello Sean,

Installing Python shouldn't be a problem .. I found it more complicated 
to subscribe to this mailing list than to install it :)   ..


I think it comes with most of what you need in a single package. I 
needed recently pyWin, and I downloaded it from Sourceforge.


I'll walk in your shoes for a bit (Although I'm on Windows XP 5.1.2600  
Python 3.2)


I searched for the term Numpy on Google. The first site it returned was 
numpy.scipy.org


I clicked on Download, I landed on http://new.scipy.org/download.html.

I opened two links in new tabs : SourceForge site for Numpy  
SourceForge site for Scipy


http://sourceforge.net/projects/numpy/files/

And

http://sourceforge.net/projects/scipy/files/

Looking for the latest version? *Download 
numpy-1.6.1-win32-superpack-python2.6.exe (6.0 MB) 
http://sourceforge.net/projects/numpy/files/latest/download?source=files


*Looking for the latest version? *Download 
scipy-0.10.0-win32-superpack-python2.6.exe (46.0 MB) 
http://sourceforge.net/projects/scipy/files/latest/download?source=files *

*
*You click on the links (I think the site is OS aware, so you'll 
probably be given a link for a dmg or something if you're on a mac)


I see the python2.6 at the end, I guess it won't work but I'll test 
for the sake of being certain nevertheless.


I click on the numpy-1.6.1 because it's smaller and to test quickly.. 
(I'm typing as I'm doing, so do some nops while you wait :) )


I launch the installation  of  numpy-1.6.1 and it says Python version 
2.6 required, which was not found in the registry in a dialog box 
titled Cannot install.


I Google nympy python 3.2 .. The second link seems interesting

http://www.wilmott.com/messageview.cfm?catid=10threadid=83588

The guy posting the question was advised to stick with Python 2.6 or 2.7 
and given a link for the FAQ


http://new.scipy.org/faq.html#does-numpy-currently-work-with-python-3-x-what-about-scipy


I don't know which version of Python you're using.

--
~Jugurtha Hadjar,

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


[Tutor] Installing Python and modules

2011-12-14 Thread Sean Baumgarten
Hello,

I'm wondering if someone could walk me step-by-step through installing
Python and some third-party modules. I've never used Python or other
programming languages before, but I'm just trying to install it so I can
run a simple script. I'm running Mac OSX 10.6.8.

Here's the instructions in the ReadMe file for the script:

Developed for Python v2.6.6, you must have matplotlib, csv, and scipy
modules downloaded. The complete python package (including all modules) are
available through Enthought.com, which is free for academic institutions.
 Otherwise, downloading python and individual modules is free through
sourceforge.net.  If using version  2.6.6, you may need to 'import math'.
 NOTE:  If you download python and the modules separately (not as a
package), it may be possible that you need the Numpy module instead of the
csv module. There is no need to change the import statements in the script
for either case.

The thing that was causing me the most trouble was figuring out how to
install the modules. For example, from what I read it sounded like in order
to install the Numpy and Scipy modules I had to first install other modules
or tools like distutil, virtualenv, and pip, but even after doing that I
couldn't get Numpy and Scipy to install. I was also confused about whether
I should use v.2.6.6 or whether I could/should use 2.7.2.

Thanks,
Sean
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] 'Installing' Python at runtime? (Civilization)

2011-02-04 Thread Japhy Bartlett
a common approach is to embed python in a compiled binary

On Thu, Feb 3, 2011 at 9:18 PM, Steven D'Aprano st...@pearwood.info wrote:
 Alan Gauld wrote:

 C.Y. Ruhulessin izzaddin.ruhules...@gmail.com wrote

 When I load up Civilization IV, a Firaxis game, the loading screen tells
 me
 Loading Python.

 However, I can't seem to find out where it installs python

 It probably doesn't actually install Python it is simply loading
 the interpreter into memory.

 That's what it says... it says Loading Python, not installing it. It would
 include a version of Python when the game was installed, possibly embedded
 in the Civilization game itself. *Installing* Python each time you start the
 game would be silly.

 To find out where it is installed, use your operating system's Find Files
 utility to search for a file named python. If you don't find it, that
 could mean they have renamed it something else, or it is embedded in the
 game where you can't get to it.


 It probably uses Python as its macro language for configuration
 or customisation. To execute those scripts it will need to load
 a DLL containing the interpreter code. I don't know for sure
 but I'd guess that's what it means.

 Many games use Python as a scripting language. (Lua is another popular
 choice.) The multiplayer game EVE maintains a special port of Python called
 stackless.


 --
 Steven

 ___
 Tutor maillist  -  Tutor@python.org
 To unsubscribe or change subscription options:
 http://mail.python.org/mailman/listinfo/tutor

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


[Tutor] 'Installing' Python at runtime? (Civilization)

2011-02-03 Thread C.Y. Ruhulessin
Hi all,

When I load up Civilization IV, a Firaxis game, the loading screen tells me
Loading Python.

However, I can't seem to find out where it installs python (and Python
wasn't installed before I installed it myself), so I *assume *that it
'installs' and loads Python at runtime.

For an application that I am designing, i'd like to achieve the same
functionality, so the end users don't have to bother installing Python
themselves.

Can anybody shed their lights on how one would program this?

kind regards,

Izz ad-Din
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] 'Installing' Python at runtime? (Civilization)

2011-02-03 Thread Noah Hall
On Thu, Feb 3, 2011 at 11:11 AM, C.Y. Ruhulessin
izzaddin.ruhules...@gmail.com wrote:
 For an application that I am designing, i'd like to achieve the same
 functionality, so the end users don't have to bother installing Python
 themselves.
 Can anybody shed their lights on how one would program this?
 kind regards,


There are applications, such as http://www.py2exe.org/ and
http://www.pyinstaller.org/ that you can use to achieve the same
thing.
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] 'Installing' Python at runtime? (Civilization)

2011-02-03 Thread C.Y. Ruhulessin
Thanks, will check it out!

2011/2/3 Noah Hall enali...@gmail.com

 On Thu, Feb 3, 2011 at 11:11 AM, C.Y. Ruhulessin
 izzaddin.ruhules...@gmail.com wrote:
  For an application that I am designing, i'd like to achieve the same
  functionality, so the end users don't have to bother installing Python
  themselves.
  Can anybody shed their lights on how one would program this?
  kind regards,


 There are applications, such as http://www.py2exe.org/ and
 http://www.pyinstaller.org/ that you can use to achieve the same
 thing.
 ___
 Tutor maillist  -  Tutor@python.org
 To unsubscribe or change subscription options:
 http://mail.python.org/mailman/listinfo/tutor

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] 'Installing' Python at runtime? (Civilization)

2011-02-03 Thread Alan Gauld


C.Y. Ruhulessin izzaddin.ruhules...@gmail.com wrote

When I load up Civilization IV, a Firaxis game, the loading screen 
tells me

Loading Python.

However, I can't seem to find out where it installs python


It probably doesn't actually install Python it is simply loading
the interpreter into memory.

It probably uses Python as its macro language for configuration
or customisation. To execute those scripts it will need to load
a DLL containing the interpreter code. I don't know for sure
but I'd guess that's what it means.


--
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/


___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] 'Installing' Python at runtime? (Civilization)

2011-02-03 Thread Steven D'Aprano

Alan Gauld wrote:


C.Y. Ruhulessin izzaddin.ruhules...@gmail.com wrote

When I load up Civilization IV, a Firaxis game, the loading screen 
tells me

Loading Python.

However, I can't seem to find out where it installs python


It probably doesn't actually install Python it is simply loading
the interpreter into memory.


That's what it says... it says Loading Python, not installing it. It 
would include a version of Python when the game was installed, possibly 
embedded in the Civilization game itself. *Installing* Python each time 
you start the game would be silly.


To find out where it is installed, use your operating system's Find 
Files utility to search for a file named python. If you don't find it, 
that could mean they have renamed it something else, or it is embedded 
in the game where you can't get to it.




It probably uses Python as its macro language for configuration
or customisation. To execute those scripts it will need to load
a DLL containing the interpreter code. I don't know for sure
but I'd guess that's what it means.


Many games use Python as a scripting language. (Lua is another popular 
choice.) The multiplayer game EVE maintains a special port of Python 
called stackless.



--
Steven

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


[Tutor] Installing python via ftp in virtual domain

2009-02-02 Thread Tim Johnson
I have a client who is hosting under virtual domain services that do not
provide python. 
He has unlimited disk space available ( or so the hoster says) and they
would allow installation of binaries in the virtual domain via ftp.

It's a linux 'box' with a /private folder under the domain root. given
that I have python 2.5 installed on my own desktop, which is also linux,
could I expect to be able to install python and all libraries via FTP?

If so, I'd welcome pointers, caveats and potentially issues. If it does
not appear workable, I have alternatives, but the client wants me to
try this initially.

Thanks
tim
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Installing python via ftp in virtual domain

2009-02-02 Thread John Fouhy
2009/2/3 Tim Johnson t...@johnsons-web.com:
 I have a client who is hosting under virtual domain services that do not
 provide python.
 He has unlimited disk space available ( or so the hoster says) and they
 would allow installation of binaries in the virtual domain via ftp.

 It's a linux 'box' with a /private folder under the domain root. given
 that I have python 2.5 installed on my own desktop, which is also linux,
 could I expect to be able to install python and all libraries via FTP?

I guess the issues you'd face are:
 - different architecture (could be 64bit?)
 - wrong libraries

It might be easier if you can build a statically-linked version of
python -- although it appears that can have issues:
http://bytes.com/groups/python/23235-build-static-python-executable-linux

Or upload the python sources and build it there (do they provide gcc?).

-- 
John.
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Installing python via ftp in virtual domain

2009-02-02 Thread Tim Johnson
On Monday 02 February 2009, John Fouhy wrote:
 2009/2/3 Tim Johnson t...@johnsons-web.com:
  I have a client who is hosting under virtual domain services that do not
  provide python.
  He has unlimited disk space available ( or so the hoster says) and they
  would allow installation of binaries in the virtual domain via ftp.
 
  It's a linux 'box' with a /private folder under the domain root. given
  that I have python 2.5 installed on my own desktop, which is also linux,
  could I expect to be able to install python and all libraries via FTP?

 I guess the issues you'd face are:
  - different architecture (could be 64bit?)
  Let's say that they are using 32-bit architecture, then
  - wrong libraries
  how do we resolve paths to libraries?
  tim - :-) who has other alternatives.
 
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Installing python via ftp in virtual domain

2009-02-02 Thread John Fouhy
2009/2/3 Tim Johnson t...@johnsons-web.com:
  - wrong libraries
  how do we resolve paths to libraries?

Well, like I suggested, you could try building a staticly-linked
version.  Then it doesn't matter.

Otherwise, I'm not sure.  Maybe you could figure out what libraries
you need, upload them, and play around with LD_LIBRARY_PATH.  This is
really a linux question, rather than a python question, though, so
this may not be the best place to ask.

(but see: http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html
 and  http://blogs.sun.com/ali/entry/avoiding_ld_library_path_the )

-- 
John.
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


[Tutor] installing python the latest python programme

2006-02-07 Thread Gil Tucker
Hi to all,


Whenever I try to install python 2.2 and later on Win. 2000
It never properly sets up on the compter. I usually only get
the command section but the IDE never shows up.

Maybe somebody has an idea or a tip as to what`s going on
here.
Cheers Gil

___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] installing python on windows and macs

2006-02-06 Thread Jan Erik Moström
linda.s [EMAIL PROTECTED] 2006-02-06 09:09:

 Now I tried to install Python 2.4.2; It works fine till Make
 Install. After I reenter the terminal, I still saw Python 2.3.5 and
 2.4.2. does not appear.
 Also, it is really boring to go through ./configure, make and make
 install. Why it is not as convenient as Windows?

Do you mean that you needed to compile Python ... well, you should have
downloaded the binary distribution instead.

jem
-- 
Jan Erik Moström, www.mostrom.pp.se
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] installing python on windows and macs

2006-02-06 Thread linda.s
On 2/6/06, Jan Erik Moström [EMAIL PROTECTED] wrote:
 linda.s [EMAIL PROTECTED] 2006-02-06 09:09:

  Now I tried to install Python 2.4.2; It works fine till Make
  Install. After I reenter the terminal, I still saw Python 2.3.5 and
  2.4.2. does not appear.
  Also, it is really boring to go through ./configure, make and make
  install. Why it is not as convenient as Windows?

 Do you mean that you needed to compile Python ... well, you should have
 downloaded the binary distribution instead.

jem
 --
 Jan Erik Moström, www.mostrom.pp.se
Where is the binary Python 2.4.2 for Mac? I could not find it,
Thanks!
Linda
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] installing python on windows and macs

2006-02-06 Thread Danny Yoo
 Thanks for your kindness. The version of My Mac is
 Mac OX 10.4.4; I guess that Python 2.3.5 has been installed before.
 Now I tried to install Python 2.4.2;

Hi Linda,


Ah, ok, then the long installation time you are seeing is perfectly
normal, and the comparison you're making between the installations between
Windows and Mac OS X is absolutely unfair.  *grin*


What you are doing in building Python 2.4.2 from source is compiling the
software.  Compilation is a process of taking the human-readable source
code and turning it into machine code appropriate for your machine.  This
is a significant and very computationally expensive thing to do!  In
contrast, the Winows installer you've used is already in a compiled form.

A fairer comparison involves installing a compiled binary package of
Python 2.4.  There is one available from:

http://undefined.org/python/


 After I reenter the terminal, I still saw Python 2.3.5 and 2.4.2. does
 not appear. Also, it is really boring to go through ./configure, make
 and make install. Why it is not as convenient as Windows?

The process is boring because it's not meant for end Mac OS X users.
It's really meant for system administrators and those who are developing
the Python core language.  And for those who can't wait for others to
prepare the nice, double-clicking installers.  *grin*


Since it sounds like you are doing some significant work on Mac OS X, I'll
double my recommendation for you to talk with the Python/Macintosh
community.  Here's one of the better links I've seen so far:

http://pythonmac.org/

___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] installing python on windows and macs

2006-02-06 Thread Ian Jones
In article 
[EMAIL PROTECTED],
 linda.s [EMAIL PROTECTED] wrote:

 Where is the binary Python 2.4.2 for Mac? I could not find it,
 Thanks!

You can download a Mac installer for Python 2.4.1 here:
  http://undefined.org/python/

If you're on Tiger (OS X 10.4), you should also install the 
TigerPython24Fix from that page.

There are a number of prebuilt Mac package binaries here (for example, 
PIL, wxPython, matplotlib):
  http://pythonmac.org/packages/
 
There is no Python 2.4.2 installer yet -- I think that's because people 
are busy working on the Mac-Intel-PPC (Universal Binary) port of 
Python.

___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] installing python on windows and macs

2006-02-06 Thread Alan Gauld
 Also, it is really boring to go through ./configure, make and make
 install. Why it is not as convenient as Windows?

Aha! Thats because you are installing from source.

If you visit the MacPython site you will find a normal Mac install
package. You just drop it on the Desktop (or anywhere else!) and
click on it to start the installer whixch drops all the bits in the right 
place.

That should be much faster.

Alan G.

___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


[Tutor] installing python on windows and macs

2006-02-05 Thread Danny Yoo


On Sun, 5 Feb 2006, linda.s wrote:

 I installed python in both Windows and Mac. I am very curious why the
 installation under Mac take so long time compared to that under
 Windows.

Hi Linda,

But that's somewhat odd, because it should take zero time: Python's
already installed under Mac OS X 10.3.  *grin*

Is this a really big problem for you?  Installation is something that
usually happens just once, so I'm sure the Python developers haven't done
anything particularly focused to make installation on any platform
blazingly fast.  So, frankly, as long as the installation worked out ok, I
wouldn't worry too much about this.


Still if this does matter to you, let's see... can you be more specific
about what version of Mac OS and what installation of Python you've tried?
I made a flippant comment above, but I assume that you mean some other
version of Mac OS (perhaps 9?)  In order to evaluate what's happening, we
need details about your system to advise better.  And since your question
is about speed, knowing what kinds of machines we're comparing against
(CPU, RAM) would also be good, since your computer's raw performance is a
significant factor.

You might also want to talk with the MacPython folks, and you can give
them numbers on how long the installation takes. (How long do you mean by
long?  Minutes, hours... days?  *grin*)  The folks on the macpython list
might be able to corroborate that your situation is unusual, or they might
be able to point out something that they know as an outstanding issue.
They have a mailing list here:

http://www.python.org/sigs/pythonmac-sig/

Good luck to you.

___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


[Tutor] installing python 2.4.1 over 2.4

2005-05-22 Thread Pujo Aji
Hello,

I have python 2.4.
I would like to install python 2.4.1, Should I uninstall python 2.4,
or just install 2.4.1?

Does it effect my ide such as pydev and komodo ?

Sincerely Yours,
pujo
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] installing python 2.4.1 over 2.4

2005-05-22 Thread Kent Johnson
The 2.4.1 installer will install over you existing 2.4 install. I don't think 
it will affect the ides.

Kent

Pujo Aji wrote:
 Hello,
 
 I have python 2.4.
 I would like to install python 2.4.1, Should I uninstall python 2.4,
 or just install 2.4.1?
 
 Does it effect my ide such as pydev and komodo ?
 
 Sincerely Yours,
 pujo
 ___
 Tutor maillist  -  Tutor@python.org
 http://mail.python.org/mailman/listinfo/tutor
 

___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Installing Python....Getting Started (fwd)....sorry

2005-03-12 Thread Jan Ekström
I didn't understand.
But now I think I have done right.
Answer all is an alternative to answer.
Sorry for your trouble.
Jan
- Original Message - 
From: Danny Yoo [EMAIL PROTECTED]
To: Tutor tutor@python.org
Cc: [EMAIL PROTECTED]
Sent: Saturday, March 12, 2005 12:38 AM
Subject: Re: [Tutor] Installing PythonGetting Started (fwd)


[Forwarding to [EMAIL PROTECTED]  When you are replying to a message,
please use your email's Reply-to-All feature so that your message
reaches both me and the mailing list.]
-- Forwarded message --
Date: Fri, 11 Mar 2005 22:38:55 +0100
From: Jan Ekstrm [EMAIL PROTECTED]
To: Danny Yoo [EMAIL PROTECTED]
Subject: Re: [Tutor] Installing PythonGetting Started
 Thank you for Your answer.
 I felt fresh air in my face.
 I got the instruction to start like this below
 What will we cover?
 How to start Python and what an error message looks like - just in
case...
For the next set of exercises I will assume you have a properly installed
version of Python on your computer. If not, go fetch the latest version from
the Python web site and follow the install instructions for your platform.
Now from a command prompt type python and the Python prompt should appear
looking something like this:
Python 2.3 (#46, Jul 29 2003, 18:54:32) [MSC v.1200 32 bit (Intel)] on win32
Type help, copyright, credits or license for more information.

Alternatively you might find a shortcut to something called IDLE, or the
Python GUI, in your start menus. If you start IDLE instead of the command
line version you will get a similar prompt but in a window of its own and
with some pretty font colors! Danny Yoo has written a pretty good IDLE
Tutorial to get you started with IDLE and I recommend you pay it a visit if
you want to stick with it rather than the basic command prompt. It
duplicates some of the early material here but repetition of the basics is
no bad thing!
Jan


- Original Message -
From: Danny Yoo [EMAIL PROTECTED]
To: Jan Ekstrm [EMAIL PROTECTED]
Cc: tutor@python.org
Sent: Friday, March 11, 2005 10:11 PM
Subject: Re: [Tutor] Installing Python

On Fri, 11 Mar 2005, [iso-8859-1] Jan Ekstrm wrote:
I have tried to install Python 2.4 on two pc-s and get this error when I
follow the instruction and type python at the comand window or Idle
window. I am running Windows xp home edition. What am I doing wrong?

Here is the error.
IDLE 1.1
 python
Traceback (most recent call last):
  File pyshell#0, line 1, in -toplevel-python
NameError: name 'python' is not defined

Hi Jan,
If you see that message, you're actually ok, because you're already in
Python!  *grin*
When you see the ' ' prompt, you're in Python's system.  You're doing
fine.
By the way, you may find this tutorial helpful:
   http://hkn.eecs.berkeley.edu/~dyoo/python/idle_intro/index.html
It's a little outdated; one of these days, I will update the screenshots
and fix some of the menu commands.  (For example, Run Script moved over
into the Run menu, and is renamed to Run Module.)
If you have more questions, please feel free to ask!

___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


[Tutor] Installing Python

2005-03-11 Thread Jan Ekström



I have tried to install Python 2.4on two pc-s and get this error when 
I follow the instruction and type
python at the comand window or Idle window.
I am running Windows xp home edition.
What am I doing wrong?
I have also ask for explanation on Googles and got the answer that there is 
such a problem but can'not understand the message.
Sincerely
Jan Ekström
Here is the error.IDLE 1.1 
 python

Traceback (most recent call last): File "pyshell#0", line 
1, in -toplevel-pythonNameError: name 'python' is not 
defined 
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Installing Python

2005-03-11 Thread Danny Yoo


On Fri, 11 Mar 2005, [iso-8859-1] Jan Ekstrm wrote:

 I have tried to install Python 2.4 on two pc-s and get this error when I
 follow the instruction and type python at the comand window or Idle
 window. I am running Windows xp home edition. What am I doing wrong?

 Here is the error.
 IDLE 1.1
  python

 Traceback (most recent call last):
   File pyshell#0, line 1, in -toplevel-python
 NameError: name 'python' is not defined


Hi Jan,

If you see that message, you're actually ok, because you're already in
Python!  *grin*

When you see the ' ' prompt, you're in Python's system.  You're doing
fine.

By the way, you may find this tutorial helpful:

http://hkn.eecs.berkeley.edu/~dyoo/python/idle_intro/index.html

It's a little outdated; one of these days, I will update the screenshots
and fix some of the menu commands.  (For example, Run Script moved over
into the Run menu, and is renamed to Run Module.)


If you have more questions, please feel free to ask!

___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor