Setup tools for python cannot be installed.

Asked 2 years ago, Updated 2 years ago, 112 views

I am trying to install Setupools for python using Windows PowerShell.

https://www.youtube.com/watch?v=Es_kdnPUgDg

Based on the above mentioned YouTube, I am proceeding with the procedure of the video, but it didn't go well.

PSC:\>pythones_setup.py
Extracting inc:\users\somasoma\appdata\local\temp\tmpqfz8v7
Now working inc:\users\somasoma\appdata\local\temp\tmpqfz8v7\setuptools-18.0.1
Installing Setupools
Traceback (most recent call last):
  File "ez_setup.py", line 391, in<module>
    sys.exit(main())
  File "ez_setup.py", line 388, in main
    return_install(archive,_build_install_args(options))
  File "ez_setup.py", line 53, in_install
    if not_python_cmd('setup.py', 'install', *install_args):
  File "ez_setup.py", line 45, in_python_cmd
    return subprocess.call(args) == 0
  File "C:\Python27\Lib\subprocess.py", line 524,incall
    return Popen(*popenargs,**kwargs).wait()
  File "C:\Python27\Lib\subprocess.py", line711, in__init__
    errread, errwrite)
  File "C:\Python27\Lib\subprocess.py", line 948, in_execute_child
    startupinfo)
WindowsError: Error 2 The system cannot find the file specified
PSC:\>

It turned out thatThe system is unable to locate the file.If you know how to solve this problem, please let me know.

python powershell setuptools

2022-09-30 16:45

1 Answers

Apparently, an error occurred because the Python executable stored in the sys.executable variable specified in line 44 of ez_setup.py could not be found.

What values do I see when I do the following?

 python-c "import sys; print sys.executable"

The expected value is 'C:\Python27\python.exe', but if not, that's probably the reason. You need to investigate whether Python installation itself was a bad procedure.


2022-09-30 16:45

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.