473,225 Members | 1,619 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,225 software developers and data experts.

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 5699
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Logan | last post by:
Several people asked me for the following HOWTO, so I decided to post it here (though it is still very 'alpha' and might contain many (?) mistakes; didn't test what I wrote, but wrote it - more or...
0
by: Kurt B. Kaiser | last post by:
Patch / Bug Summary ___________________ Patches : 393 open (+15) / 3315 closed (+17) / 3708 total (+32) Bugs : 908 open (+22) / 5975 closed (+49) / 6883 total (+71) RFE : 223 open...
4
by: John | last post by:
Should I post this message here or is there a different group. Thanks ---------------------------------------------------------------- I created a setup project in VS 2003 to deploy a windows...
6
by: andrewbb | last post by:
I want to deploy a service with a windows app and the setup program must conform to the Vista certification requirements. Can that be done with the standard .net setup project? Assuming cost is...
10
by: Benedict Verheyen | last post by:
Hi, i found python-ldap for version Python 2.4. Is there i place i can find a version for 2.5? If not, how can i build it myself for Windows? Thanks, Benedict
5
Atli
by: Atli | last post by:
Hi. I'm currently using Vista Ultimate on my Acer laptop just to test it, and now the 30 day activation period is almost up and I'm trying to switch back to XP. Not that I dont like Vista. I seem...
1
by: Steve Mavronis | last post by:
I tried to install Python 2.51 on Microsoft Vista Ultimate 32-bit because I use the 3D modeler software Blender 2.44, in case I needed additional Python support in the future for add-on scripts. ...
0
by: =?Utf-8?B?VHJhY2tz?= | last post by:
I created a setup program in VS2005 ide. It installs my app on 98-Vista. I have tried this with the Click once check box checked(full trust) and not checked does not seem to matter. Anyway, the...
2
by: =?Utf-8?B?Vi5DaG9ja2FsaW5nYW0u?= | last post by:
IDE : VS .NET 2003, Platform : .NET 2.0, Hi All, I have my project in VS.Net 2003 (VB.Net). The OS is Vista Ultimate. In a form's Button_Click() event i call a dll which calls another dll and...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.