473,395 Members | 1,502 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,395 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 5714
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. Löwis" <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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.