469,625 Members | 1,089 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,625 developers. It's quick & easy.

python setup.py install on Vista?

type "python setup.py install"

that is used in most "addons" for python.

well using windows vista, where the h*** am i supposed to type this?

if it is not doable in windows, what do i have to do instead? just
clicking the setup.py-file never works.
Jun 27 '08 #1
6 5358
hi
well using windows vista, where the h*** am i supposed to type this?
you have to include the path to the python interpreter like this
c:\programs\python\python.exe pythonfile.py
(replace this with your path)
or you set an alias called python - i don't know how to that under windows,
especially visa :D

good luck

--
GPG key: 0x04B3BB96

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQBICTO+EPvZ+gSzu5YRAp5LAJ9A+P79KZlvQ2/edJLmoAppmvX/JQCfWq0r
fD3wwhsNEMtjeTQrTSZu7OM=
=xbk5
-----END PGP SIGNATURE-----

Jun 27 '08 #2
On Fri, Apr 18, 2008 at 4:29 PM, globalrev <sk*******@yahoo.sewrote:
type "python setup.py install"

that is used in most "addons" for python.

well using windows vista, where the h*** am i supposed to type this?

if it is not doable in windows, what do i have to do instead? just
clicking the setup.py-file never works.
--
http://mail.python.org/mailman/listinfo/python-list
There are many problems with this on Vista. First, you need a command
prompt. You can go to "start menu->all programs->accessories->command
prompt" for this. But to install things in vista, you will likely
need to be an administrator, and windows won't automatically ask for
permission when typing "python setup.py install." So instead of
clicking on command prompt, right click it, and choose "run as
administrator". A faster way is to type "cmd" in the start menu
search area, and wait for "cmd.exe" to come up. Run that as
administrator.

Once you have a command prompt, you can "cd" into the directory where
you want to install the extension. Then, "c:\python25\python setup.py
install" should work. If you are using 2.4 or 3.0, it would be
"c:\python24\python" or "c:\python30\python" etc. If you installed
python somewhere other than the default folder, then you will need to
enter that path.

To make this process easier, when I want to install an extension, I
usually create a .bat file in the extension folder. Right click in
the folder and choose new->text file. Rename the file to
"install.bat". Right click the file and go to edit. Enter
"c:\python25\python setup.py install" into the file and save. Then
right click and choose run as administrator, and it should install.
You might add a "pause" line in the bat file as well, so that if it
has a problem installing, it will stay open so you can see the output.

Your best solution is to uninstall vista and use linux :)
Jun 27 '08 #3
Patrick Mullen wrote:
On Fri, Apr 18, 2008 at 4:29 PM, globalrev <sk*******@yahoo.sewrote:
>type "python setup.py install"

that is used in most "addons" for python.

well using windows vista, where the h*** am i supposed to type this?

if it is not doable in windows, what do i have to do instead? just
clicking the setup.py-file never works.
--
http://mail.python.org/mailman/listinfo/python-list

There are many problems with this on Vista. First, you need a command
prompt. You can go to "start menu->all programs->accessories->command
prompt" for this. But to install things in vista, you will likely
need to be an administrator, and windows won't automatically ask for
permission when typing "python setup.py install." So instead of
clicking on command prompt, right click it, and choose "run as
administrator". A faster way is to type "cmd" in the start menu
search area, and wait for "cmd.exe" to come up. Run that as
administrator.
A quicker way to get an adminstrator command tool is to bring up the run
dialog with Windows-R, enter "cmd" then hit CTRL/SHIFT/Enter.
>
Once you have a command prompt, you can "cd" into the directory where
you want to install the extension. Then, "c:\python25\python setup.py
install" should work. If you are using 2.4 or 3.0, it would be
"c:\python24\python" or "c:\python30\python" etc. If you installed
python somewhere other than the default folder, then you will need to
enter that path.

To make this process easier, when I want to install an extension, I
usually create a .bat file in the extension folder. Right click in
the folder and choose new->text file. Rename the file to
"install.bat". Right click the file and go to edit. Enter
"c:\python25\python setup.py install" into the file and save. Then
right click and choose run as administrator, and it should install.
You might add a "pause" line in the bat file as well, so that if it
has a problem installing, it will stay open so you can see the output.

Your best solution is to uninstall vista and use linux :)
You're right, Vista's a pain.

regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/

Jun 27 '08 #4
Lie
On Apr 19, 6:29 am, globalrev <skanem...@yahoo.sewrote:
type "python setup.py install"

that is used in most "addons" for python.

well using windows vista, where the h*** am i supposed to type this?

if it is not doable in windows, what do i have to do instead? just
clicking the setup.py-file never works.
It seems that quite a lot of people wondered why python doesn't set
the environment variable to Python Path in the default installation.
While most Windows users that are flattered with GUI (IDLE) doesn't
really care about it, they'd have trouble when trying to run python
from command prompt.

To set your environment variable:
1. Right-click the Computer icon
2. Choose "Properties" from the context menu
3. Click the "Advanced system settings" link
4. Click the "Environment Variables" button
5. Add Python's installation path (usually C:\PythonXX where XX is the
Python version) to System Variables to the end of the path lists
6. Test it, try opening a command prompt and type "python" or "python
filename.py" outside Python installation directory
Jun 27 '08 #5
It seems that quite a lot of people wondered why python doesn't set
the environment variable to Python Path in the default installation.
For several reasons, one being that it's not needed. Just run setup.py
as a program, i.e. don't do

python setup.py install

but instead do

setup.py install

Regards,
Martin
Jun 27 '08 #6
Lie
On Apr 20, 9:59 pm, "Martin v. Lwis" <mar...@v.loewis.dewrote:
It seems that quite a lot of people wondered why python doesn't set
the environment variable to Python Path in the default installation.

For several reasons, one being that it's not needed. Just run setup.py
as a program, i.e. don't do

python setup.py install

but instead do

setup.py install

Regards,
Martin
who said it isn't needed:
1. I primarily set the EnvPath to invoke the interpreter in
interactive mode, without being intervened by IDLE ('cause IDLE is
extremely slow if you do a lot of print statements, most of the time
you won't notice it but if we do multitude of prints it might hang for
a second or two at every statement).
2. To avoid confusion with the rest of the world that uses python by
calling "python" in a shell-like interface (i.e. cmd).
3. Linux-people sometimes doesn't believe that there are Windows-
people that actually likes CLI, sometimes more than GUI.
4. Being such a great IDE, IDLE sometimes do odds and ends that it
sometimes DoS-ed me, having a quick, alternative way to be in touch
with python is a good thing, especially if you're being chased by a
deadline and moving focus away from the job to repair the tool is not
an option.
Jun 27 '08 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Logan | last post: by
reply views Thread by Kurt B. Kaiser | last post: by
4 posts views Thread by John | last post: by
6 posts views Thread by andrewbb | last post: by
10 posts views Thread by Benedict Verheyen | last post: by
1 post views Thread by Steve Mavronis | last post: by
reply views Thread by =?Utf-8?B?VHJhY2tz?= | last post: by
2 posts views Thread by =?Utf-8?B?Vi5DaG9ja2FsaW5nYW0u?= | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.