Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't install python modules

Tags:

python

I have a problem with the following command:

setup.py install.

I know it should work, I have tried it on a laptop but I don't have access to it at the moment. I need to complete a homework so I tried the same on my PC. And when I type the same command into cmd it just runs pyscripter as if I would use right click on setup.py and click edit with pyscripter. It does nothing else. I am sure that I am in the right folder in cmd.

My python version is 2.7 and my pyscripter version is v2.5.3. My OS is win7. I have tried to install other modules but I get the same response.

Has anyone encountered the same problem? I have searched the internet but I haven't found any answers to this problem.

like image 600
RUs Avatar asked Feb 17 '26 16:02

RUs


2 Answers

Assuming that you installed Python 2.7 in the default folder i.e. c:\python27, then you can type:

c:\python27\python setup.py install

Wherever you installed it, you should append that path to your PATH variable (you'll need to log on as an admin to do that).

like image 113
John Machin Avatar answered Feb 19 '26 06:02

John Machin


Do python setup.py install instead.

Windows is probably not set up to recognize .py files as executable.

like image 32
Daniel Roseman Avatar answered Feb 19 '26 04:02

Daniel Roseman