Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #54442 > unrolled thread
| Started by | cython@m.allo.ws |
|---|---|
| First post | 2013-09-19 12:51 -0700 |
| Last post | 2013-09-19 22:22 +0000 |
| Articles | 5 — 3 participants |
Back to article view | Back to comp.lang.python
Using the MSI installer on Windows: Setting PATH and Setuptools cython@m.allo.ws - 2013-09-19 12:51 -0700
Re: Using the MSI installer on Windows: Setting PATH and Setuptools Skip Montanaro <skip@pobox.com> - 2013-09-19 15:06 -0500
Re: Using the MSI installer on Windows: Setting PATH and Setuptools cython@m.allo.ws - 2013-09-19 13:31 -0700
Re: Using the MSI installer on Windows: Setting PATH and Setuptools Skip Montanaro <skip@pobox.com> - 2013-09-19 15:42 -0500
RE: Using the MSI installer on Windows: Setting PATH and Setuptools "Prasad, Ramit" <ramit.prasad@jpmorgan.com.dmarc.invalid> - 2013-09-19 22:22 +0000
| From | cython@m.allo.ws |
|---|---|
| Date | 2013-09-19 12:51 -0700 |
| Subject | Using the MSI installer on Windows: Setting PATH and Setuptools |
| Message-ID | <567c7442-313f-4df3-8fc4-ff3256aabc46@googlegroups.com> |
Hello All, I really hate Windows, and I have only intermittent access to Windows machines right now. When I install Python 2.7 on Windows using the MSI installer, it definitely does not modify the PATH variable. So I modify the PATH variable myself as follows: setx PATH %PATH%;C:\Python27\ Question 1: The command above requires a reboot in order to take effect, at least on Windows 8. How do I make it take effect immediately? Maybe if I repeat the same command again with 'set' instead of 'setx'? Does 'set' affect the whole machine, or only the current CMD.EXE session? Question 2: python-guide.org suggests adding C:\Python27\Scripts\ to the PATH as well. When is that necessary or helpful? If I forget to do that and have problems later, how can I tell the cause of the problems? Question 3: Does the Windows MSI installer from Python.org include Setuptools? python-guide.org implies that it does not include Setuptools, but I have never needed to manually install Setuptools, I am always able to use easy_install right away. Is my memory warped, or perhaps tainted by old Python installs on the same machine? Question 4: If the Windows MSI installer indeed lacks Setuptools, what is the best way to install it from the command line in a future-proof manner (on Windows)? I am imagining something like this: wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py python ez_setup.py However, (1) wget is not a Windows command. What is the Windows command? And (2) is that URL the best possible URL? Or will that URL only download an old version, and there is a better URL for new versions? Thank you, Zak
[toc] | [next] | [standalone]
| From | Skip Montanaro <skip@pobox.com> |
|---|---|
| Date | 2013-09-19 15:06 -0500 |
| Message-ID | <mailman.162.1379621239.18130.python-list@python.org> |
| In reply to | #54442 |
> Question 4: If the Windows MSI installer indeed lacks Setuptools, what is the best way to install it from the command line in a future-proof manner (on Windows)? I am imagining something like this: > > wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py > python ez_setup.py > > However, (1) wget is not a Windows command. What is the Windows command? And (2) is that URL the best possible URL? Or will that URL only download an old version, and there is a better URL for new versions? I am not a Windows person, but wouldn't pip do the trick? https://pypi.python.org/pypi/pip/1.4.1 Skip
[toc] | [prev] | [next] | [standalone]
| From | cython@m.allo.ws |
|---|---|
| Date | 2013-09-19 13:31 -0700 |
| Message-ID | <3cc271c6-0f77-4d80-aa26-edd8ec6354a7@googlegroups.com> |
| In reply to | #54445 |
On Thursday, September 19, 2013 4:06:56 PM UTC-4, Skip Montanaro wrote: > > I am not a Windows person, but wouldn't pip do the trick? > PIP would definitely do the trick. Does the MSI include PIP? If it does not include PIP, then how can I easily install it from the command line? I am looking for something like this: wget https://pip.org/install/install_pip.py python install_pip.py This is totally theoretical. wget doesn't work, the URL is made up, and install_pip.py is a fantasy of mine. ez_setup.py DOES exist for Setuptools, which is why I am trying to use it. Thank you, Zak
[toc] | [prev] | [next] | [standalone]
| From | Skip Montanaro <skip@pobox.com> |
|---|---|
| Date | 2013-09-19 15:42 -0500 |
| Message-ID | <mailman.166.1379623364.18130.python-list@python.org> |
| In reply to | #54448 |
> PIP would definitely do the trick. Does the MSI include PIP? If it does not include PIP, then how can I easily install it from the command line? I am looking for something like this: Not yet, but I think just around the corner: http://www.python.org/dev/peps/pep-0453/ Unlike most enhancements, this is proposed for inclusion in the next micro releases of 2.7 and 3.3, not just in the next normal-new-features-allowed version, 3.4. Skip
[toc] | [prev] | [next] | [standalone]
| From | "Prasad, Ramit" <ramit.prasad@jpmorgan.com.dmarc.invalid> |
|---|---|
| Date | 2013-09-19 22:22 +0000 |
| Message-ID | <mailman.167.1379630282.18130.python-list@python.org> |
| In reply to | #54442 |
cython@m.allo.ws wrote: > Hello All, > > I really hate Windows, and I have only intermittent access to Windows machines right now. > > When I install Python 2.7 on Windows using the MSI installer, it definitely does not modify the PATH > variable. So I modify the PATH variable myself as follows: > > setx PATH %PATH%;C:\Python27\ > > Question 1: The command above requires a reboot in order to take effect, at least on Windows 8. How do > I make it take effect immediately? Maybe if I repeat the same command again with 'set' instead of > 'setx'? Does 'set' affect the whole machine, or only the current CMD.EXE session? Set affects current session only. """ Setx provides the only command-line or programmatic way to directly and permanently set system environment values. System environment variables are manually configurable through Control Panel or through a registry editor. The set command, which is internal to the command interpreter (Cmd.exe), sets user environment variables for the current console window only. """ ~ http://technet.microsoft.com/en-us/library/cc755104.aspx Setx should not require a reboot, but might require user to log out and back in (or restart CMD). Also, note that it modifies local environment by default and not system environment. [snip] > > Question 3: Does the Windows MSI installer from Python.org include Setuptools? python-guide.org > implies that it does not include Setuptools, but I have never needed to manually install Setuptools, I > am always able to use easy_install right away. Is my memory warped, or perhaps tainted by old Python > installs on the same machine? ActiveState's ActivePython MSI does include pip. FAQ says it also includes distribute which you could remove (I am guessing) but it will stop PyPM from working. I believe they also setup the PATH for you. I think ActivePython might be a slightly better installer for Windows users--at least that is what some people have recommended. I have not tried it myself, but it might be worth taking a look. > > Question 4: If the Windows MSI installer indeed lacks Setuptools, what is the best way to install it > from the command line in a future-proof manner (on Windows)? I am imagining something like this: > > wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py > python ez_setup.py > > However, (1) wget is not a Windows command. What is the Windows command? And (2) is that URL the best > possible URL? Or will that URL only download an old version, and there is a better URL for new > versions? The pip documentation uses the URL https://raw.github.com/pypa/pip/master/contrib/get-pip.py pip documentation: https://pip.readthedocs.org/en/latest/installing.html > > Thank you, > > Zak ~Ramit This email is confidential and subject to important disclaimers and conditions including on offers for the purchase or sale of securities, accuracy and completeness of information, viruses, confidentiality, legal privilege, and legal entity disclaimers, available at http://www.jpmorgan.com/pages/disclosures/email.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web