Share via

Why I can't install autopy-python?????????

Anonymous
2021-08-31T16:26:35+00:00

I search in google but I can't fix it. I think windows community can help for this.

Windows for home | Windows 10 | Security and privacy

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

  1. DaveM121 872.1K Reputation points Independent Advisor
    2021-09-01T07:06:50+00:00

    Hi Ahmadh

    I think the best option is to post this information to the Python forum, over there you will have access to a host of Python programmers and developers, they would be more familiar with that error and will provide you the meant so install AutoPy

    https://python-forum.io/misc.php?action=help

    ________________________________________________________

    Standard Disclaimer: This is a non-Microsoft website. The page appears to be providing accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the site before you decide to download and install it.

    .

    1 person found this answer helpful.
    0 comments No comments

5 additional answers

Sort by: Most helpful
  1. Anonymous
    2021-09-01T07:01:12+00:00

    This is the error I'm gating. ↓↓↓↓

    I can't fix it.

    C:\Users\ahmadh>pip install autopy

    Collecting autopy Using cached autopy-4.0.0.tar.gz (20 kB) Building wheels for collected packages: autopy Building wheel for autopy (setup.py) ... error ERROR: Command errored out with exit status 1: command: 'd:\pyhton 3.9\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\ahmad\AppData\Local\Temp\pip-install-rsipn_xs\autopy_85ed02f2241d4af3bda4b592359783f7\setup.py'"'"'; __file__='"'"'C:\Users\ahmad\AppData\Local\Temp\pip-install-rsipn_xs\autopy_85ed02f2241d4af3bda4b592359783f7\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\ahmad\AppData\Local\Temp\pip-wheel-7_hl4458' cwd: C:\Users\ahmad\AppData\Local\Temp\pip-install-rsipn_xs\autopy_85ed02f2241d4af3bda4b592359783f7\ Complete output (20 lines): running bdist_wheel running build running build_py creating build creating build\lib creating build\lib\autopy copying autopy\_init__.py -> build\lib\autopy running build_ext running build_rust error: can't find Rust compiler If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler. To update pip, run: pip install --upgrade pip and then retry package installation. If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain. ---------------------------------------- ERROR: Failed building wheel for autopy Running setup.py clean for autopy ERROR: Command errored out with exit status 1: command: 'd:\pyhton 3.9\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\ahmad\AppData\Local\Temp\pip-install-rsipn_xs\autopy_85ed02f2241d4af3bda4b592359783f7\setup.py'"'"'; __file__='"'"'C:\Users\ahmad\AppData\Local\Temp\pip-install-rsipn_xs\autopy_85ed02f2241d4af3bda4b592359783f7\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' clean --all cwd: C:\Users\ahmad\AppData\Local\Temp\pip-install-rsipn_xs\autopy_85ed02f2241d4af3bda4b592359783f7 Complete output (17 lines): running clean removing 'build\lib' (and everything under it) 'build\bdist.win-amd64' does not exist -- can't clean it 'build\scripts-3.9' does not exist -- can't clean it removing 'build' running clean_rust error: can't find Rust compiler If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler. To update pip, run: pip install --upgrade pip and then retry package installation. If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain. ---------------------------------------- ERROR: Failed cleaning build dir for autopy Failed to build autopy Installing collected packages: autopy Running setup.py install for autopy ... error ERROR: Command errored out with exit status 1: command: 'd:\pyhton 3.9\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\ahmad\AppData\Local\Temp\pip-install-rsipn_xs\autopy_85ed02f2241d4af3bda4b592359783f7\setup.py'"'"'; __file__='"'"'C:\Users\ahmad\AppData\Local\Temp\pip-install-rsipn_xs\autopy_85ed02f2241d4af3bda4b592359783f7\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\ahmad\AppData\Local\Temp\pip-record-2suvlq_r\install-record.txt' --single-version-externally-managed --compile --install-headers 'd:\pyhton 3.9\Include\autopy' cwd: C:\Users\ahmad\AppData\Local\Temp\pip-install-rsipn_xs\autopy_85ed02f2241d4af3bda4b592359783f7\ Complete output (20 lines): running install running build running build_py creating build creating build\lib.win-amd64-3.9 creating build\lib.win-amd64-3.9\autopy copying autopy\_init__.py -> build\lib.win-amd64-3.9\autopy running build_ext running build_rust error: can't find Rust compiler If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler. To update pip, run: pip install --upgrade pip and then retry package installation. If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain. ---------------------------------------- ERROR: Command errored out with exit status 1: 'd:\pyhton 3.9\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\ahmad\AppData\Local\Temp\pip-install-rsipn_xs\autopy_85ed02f2241d4af3bda4b592359783f7\setup.py'"'"'; __file__='"'"'C:\Users\ahmad\AppData\Local\Temp\pip-install-rsipn_xs\autopy_85ed02f2241d4af3bda4b592359783f7\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\ahmad\AppData\Local\Temp\pip-record-2suvlq_r\install-record.txt' --single-version-externally-managed --compile --install-headers 'd:\pyhton 3.9\Include\autopy' Check the logs for full command output.

    C:\Users\ahmadh>

    C:\Users\ahmadh>
    C:\Users\ahmadh>

    0 comments No comments
  2. DaveM121 872.1K Reputation points Independent Advisor
    2021-09-01T06:51:30+00:00

    Hi Ahmadh

    Can you please provide more information on the difficulty you are having and also a screenshot of the error you are getting.

    0 comments No comments
  3. Anonymous
    2021-09-01T04:56:19+00:00

    Hi Thanks for your help. I install from https://pypi.org/project/autopy/ I'm gating a big error. I do lots of things but not working.

    0 comments No comments
  4. DaveM121 872.1K Reputation points Independent Advisor
    2021-08-31T17:02:34+00:00

    Hi Ahmadh,

    I am Dave, I will help you with this.

    Have you already installed the following pre-requisites:

    Python 2.7, or Python 3.5 and up.

    Rust 1.23.0-nightly 2019-02-06 or later (unless using a binary wheel distribution).

    X11 with the XTest extension.

    And then followed the steps on this page:

    https://pypi.org/project/autopy/

    ________________________________________________________

    Standard Disclaimer: This is a non-Microsoft website. The page appears to be providing accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the site before you decide to download and install it.

    .

    0 comments No comments