Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #82658 > unrolled thread
| Started by | Surbhi Gupta <surbhi.2388@gmail.com> |
|---|---|
| First post | 2014-12-18 20:43 -0800 |
| Last post | 2014-12-19 17:59 +0000 |
| Articles | 4 — 3 participants |
Back to article view | Back to comp.lang.python
newbie: installing setuptools Surbhi Gupta <surbhi.2388@gmail.com> - 2014-12-18 20:43 -0800
Re: newbie: installing setuptools Surbhi Gupta <surbhi.2388@gmail.com> - 2014-12-18 22:27 -0800
Re: newbie: installing setuptools Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-12-19 10:29 -0500
Re: newbie: installing setuptools Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-12-19 17:59 +0000
| From | Surbhi Gupta <surbhi.2388@gmail.com> |
|---|---|
| Date | 2014-12-18 20:43 -0800 |
| Subject | newbie: installing setuptools |
| Message-ID | <fc5978bf-3231-4265-a859-dc6de5f9db17@googlegroups.com> |
Hey, I am new to python and facing problem with installing packages. I am using VPython which requires Python 2.7.x from python.org; it will not work with versions of Python other than the one from python.org. So I need to install packages separately.
I was trying to install scipy-0.14.0, it gives following error:
Warning (from warnings module):
File "C:\Python27\lib\distutils\dist.py", line 267
warnings.warn(msg)
UserWarning: Unknown distribution option: 'test_suite'
So I thought maybe I need to install setuptools first. I ran setup.py file in IDLE. it runs fine and then I can import it in current session. But when I run session, it still says 'no module named setuptools'. Same thing happened when I tried to install nose.
[toc] | [next] | [standalone]
| From | Surbhi Gupta <surbhi.2388@gmail.com> |
|---|---|
| Date | 2014-12-18 22:27 -0800 |
| Message-ID | <d5569413-3c28-447c-a46d-74b710cda58b@googlegroups.com> |
| In reply to | #82658 |
On Friday, December 19, 2014 10:13:15 AM UTC+5:30, Surbhi Gupta wrote:
> Hey, I am new to python and facing problem with installing packages. I am using VPython which requires Python 2.7.x from python.org; it will not work with versions of Python other than the one from python.org. So I need to install packages separately.
>
> I was trying to install scipy-0.14.0, it gives following error:
> Warning (from warnings module):
> File "C:\Python27\lib\distutils\dist.py", line 267
> warnings.warn(msg)
> UserWarning: Unknown distribution option: 'test_suite'
>
> So I thought maybe I need to install setuptools first. I ran setup.py file in IDLE. it runs fine and then I can import it in current session. But when I run session, it still says 'no module named setuptools'. Same thing happened when I tried to install nose.
OK, the problem is now resolved: I just found out that we need to install from prompt instead of IDLE.
Setuptools is installed, but I am not able to use easy_install from prompt. It says:
easy_install : The term 'easy_install' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ easy_install
+ ~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (easy_install:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
still unsuccessful in installing Scipy.
[toc] | [prev] | [next] | [standalone]
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Date | 2014-12-19 10:29 -0500 |
| Message-ID | <mailman.17058.1419008152.18130.python-list@python.org> |
| In reply to | #82662 |
On Thu, 18 Dec 2014 22:27:47 -0800 (PST), Surbhi Gupta
<surbhi.2388@gmail.com> declaimed the following:
>OK, the problem is now resolved: I just found out that we need to install from prompt instead of IDLE.
>Setuptools is installed, but I am not able to use easy_install from prompt. It says:
>easy_install : The term 'easy_install' is not recognized as the name of a cmdlet, function, script file, or operable
>program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
>At line:1 char:1
>+ easy_install
>+ ~~~~~~~~~~~~
> + CategoryInfo : ObjectNotFound: (easy_install:String) [], CommandNotFoundException
> + FullyQualifiedErrorId : CommandNotFoundException
>
>still unsuccessful in installing Scipy.
That is not a normal Windows command response. Are you running
PowerShell instead of cmd?
PS C:\Users\Wulfraed\Documents> I_dont_exist anywhere
The term 'I_dont_exist' is not recognized as the name of a cmdlet,
function, script file, or operable program. Check th
e spelling of the name, or if a path was included, verify that the path is
correct and try again.
At line:1 char:13
+ I_dont_exist <<<< anywhere
+ CategoryInfo : ObjectNotFound: (I_dont_exist:String) [],
CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Though in a quick test, it runs in PowerShell for me... But that may be
related to my having set up various Windows PATH, PATHEXT, ASSOC, and
FILETYPE entries so that easy_install is found
(Granted, it failed when it couldn't find numpy)
Windows PowerShell
Copyright (C) 2009 Microsoft Corporation. All rights reserved.
PS C:\Users\Wulfraed\Documents> easy_install
error: No urls, filenames, or requirements specified (see --help)
PS C:\Users\Wulfraed\Documents> easy_install scipy
Searching for scipy
Reading https://pypi.python.org/simple/scipy/
Best match: scipy 0.14.0
Downloading
https://pypi.python.org/packages/source/s/scipy/scipy-0.14.0.zip#md5=7ee4fa9e756bab6b46b79f77c821cb68
Processing scipy-0.14.0.zip
In contrast, the "regular" command line produces
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Wulfraed\Documents>I_dont_exist anywhere
'I_dont_exist' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\Wulfraed\Documents>easy_install numpy
Searching for numpy
Reading https://pypi.python.org/simple/numpy/
Best match: numpy 1.9.1
Downloading
https://pypi.python.org/packages/source/n/numpy/numpy-1.9.1.zip#md5=223532d8e1bdaff5d30936439701d6e1
(and numpy failed to install since it couldn't find Lapack, vcvarsall,
atlass, etc. -- and if it did, I'd be lucky not to need a C-compiler for
them... For a Windows system, the best way to install these libraries is to
locate a pre-built binary installer; .msi or .exe)
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
[toc] | [prev] | [next] | [standalone]
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Date | 2014-12-19 17:59 +0000 |
| Message-ID | <mailman.17060.1419015917.18130.python-list@python.org> |
| In reply to | #82658 |
On 19/12/2014 04:43, Surbhi Gupta wrote: > Hey, I am new to python and facing problem with installing packages. I am using VPython which requires Python 2.7.x from python.org; it will not work with versions of Python other than the one from python.org. So I need to install packages separately. > > I was trying to install scipy-0.14.0, it gives following error: > Warning (from warnings module): > File "C:\Python27\lib\distutils\dist.py", line 267 > warnings.warn(msg) > UserWarning: Unknown distribution option: 'test_suite' > > So I thought maybe I need to install setuptools first. I ran setup.py file in IDLE. it runs fine and then I can import it in current session. But when I run session, it still says 'no module named setuptools'. Same thing happened when I tried to install nose. > If you've got Python 2.7.9 just use pip as it's far easier. This https://docs.python.org/release/2.7.9/whatsnew/2.7.html#pep-477-backport-ensurepip-pep-453-to-python-2-7 refers. If you still can't install a package as you've not got Visual Studio C++ try downloading a binary from here http://www.lfd.uci.edu/~gohlke/pythonlibs/ -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web