鱼C论坛

 找回密码
 立即注册
查看: 10332|回复: 11

[已解决]安装python autopy扩展包失败 大家知道的来帮我看看

[复制链接]
发表于 2019-9-11 16:49:01 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
error: Can not find Rust compiler
这是什么原因啊
最佳答案
2019-9-11 17:40:18
阳顺 发表于 2019-9-11 17:24
error: Can not find Rust compiler

pip版本太低了吧,升级到最新试试
安装autopy失败.JPG
小甲鱼最新课程 -> https://ilovefishc.com
回复

使用道具 举报

发表于 2019-9-11 17:15:04 From FishC Mobile | 显示全部楼层
发文本信息过来,手机看图片看不清
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2019-9-11 17:23:15 | 显示全部楼层
wp231957 发表于 2019-9-11 17:15
发文本信息过来,手机看图片看不清

C:\Users\小米笔记本>pip install autopy
Collecting autopy
  Using cached https://files.pythonhosted.org/packages/c6/36/bb1af0948e12cedef71da68b80960b3905805e30990d934102dcab012ddf/autopy-1.1.1.tar.gz
Installing collected packages: autopy
  Running setup.py install for autopy
    Complete output from command c:\users\小米笔记本\appdata\local\programs\python\python35\python.exe -c "import setuptools, tokenize;__file__='C:\\Users\\小米笔~1\\AppData\\Local\\Temp\\pip-build-k6nbbqwq\\autopy\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\小米笔~1\AppData\Local\Temp\pip-46goumz8-record\install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.5
    creating build\lib.win-amd64-3.5\autopy
    copying autopy\__init__.py -> build\lib.win-amd64-3.5\autopy
    running build_ext
    running build_rust
    error: Can not find Rust compiler

    ----------------------------------------
Command "c:\users\小米笔记本\appdata\local\programs\python\python35\python.exe -c "import setuptools, tokenize;__file__='C:\\Users\\小米笔~1\\AppData\\Local\\Temp\\pip-build-k6nbbqwq\\autopy\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\小米笔~1\AppData\Local\Temp\pip-46goumz8-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\小米笔~1\AppData\Local\Temp\pip-build-k6nbbqwq\autopy
You are using pip version 7.1.2, however version 19.2.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

C:\Users\小米笔记本>
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2019-9-11 17:24:04 | 显示全部楼层
wp231957 发表于 2019-9-11 17:15
发文本信息过来,手机看图片看不清

error: Can not find Rust compiler
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2019-9-11 17:40:18 From FishC Mobile | 显示全部楼层    本楼为最佳答案   
阳顺 发表于 2019-9-11 17:24
error: Can not find Rust compiler

pip版本太低了吧,升级到最新试试
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2019-9-11 17:52:49 | 显示全部楼层
wp231957 发表于 2019-9-11 17:40
pip版本太低了吧,升级到最新试试

C:\Users\小米笔记本>pip install -U pip
Collecting pip
  Using cached https://files.pythonhosted.org/packages/30/db/9e38760b32e3e7f40cce46dd5fb107b8c73840df38f0046d8e6514e675a1/pip-19.2.3-py2.py3-none-any.whl
Installing collected packages: pip
  Found existing installation: pip 7.1.2
Exception:
Traceback (most recent call last):
  File "c:\users\小米笔记本\appdata\local\programs\python\python35\lib\site-packages\pip\basecommand.py", line 211, in main
    status = self.run(options, args)
  File "c:\users\小米笔记本\appdata\local\programs\python\python35\lib\site-packages\pip\commands\install.py", line 311, in run
    root=options.root_path,
  File "c:\users\小米笔记本\appdata\local\programs\python\python35\lib\site-packages\pip\req\req_set.py", line 640, in install
    requirement.uninstall(auto_confirm=True)
  File "c:\users\小米笔记本\appdata\local\programs\python\python35\lib\site-packages\pip\req\req_install.py", line 673, in uninstall
    for path in pip.wheel.uninstallation_paths(dist):
  File "c:\users\小米笔记本\appdata\local\programs\python\python35\lib\site-packages\pip\wheel.py", line 512, in unique
    for item in fn(*args, **kw):
  File "c:\users\小米笔记本\appdata\local\programs\python\python35\lib\site-packages\pip\wheel.py", line 531, in uninstallation_paths
    r = csv.reader(FakeFile(dist.get_metadata_lines('RECORD')))
  File "c:\users\小米笔记本\appdata\local\programs\python\python35\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 1619, in get_metadata_lines
    return yield_lines(self.get_metadata(name))
  File "c:\users\小米笔记本\appdata\local\programs\python\python35\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 1616, in get_metadata
    return self._get(self._fn(self.egg_info, name)).decode("utf-8")
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc3 in position 22367: invalid continuation byte
You are using pip version 7.1.2, however version 19.2.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2019-9-11 17:53:50 | 显示全部楼层
阳顺 发表于 2019-9-11 17:52
C:%users\小米笔记本>pip install -U pip
Collecting pip
  Using cached https://files.pythonhosted. ...

升级Pip  结果。。。。
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2019-9-11 18:01:24 | 显示全部楼层
升级pip
python -m pip install --upgrade pip
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2019-9-11 18:13:12 | 显示全部楼层
阳顺 发表于 2019-9-11 17:53
升级Pip  结果。。。。

重新升级pip,重新安装autopy 问题解决  记录下步骤
C:\Users\小米笔记本>easy_install --upgrade pip
Searching for pip
Reading https://pypi.python.org/simple/pip/
Best match: pip 19.2.3
Downloading https://files.pythonhosted.org/packages/00/9e/4c83a0950d8bdec0b4ca72afd2f9cea92d08eb7c1a768363f2ea458d08b4/pip-19.2.3.tar.gz#sha256=e7a31f147974362e6c82d84b91c7f2bdf57e4d3163d3d454e6c3e71944d67135
Processing pip-19.2.3.tar.gz
Writing C:\Users\小米笔~1\AppData\Local\Temp\easy_install-z88rt2fw\pip-19.2.3\setup.cfg
Running pip-19.2.3\setup.py -q bdist_egg --dist-dir C:\Users\小米笔~1\AppData\Local\Temp\easy_install-z88rt2fw\pip-19.2.3\egg-dist-tmp-um2g8auq
c:\users\小米笔记本\appdata\local\programs\python\python35\lib\distutils\dist.py:261: UserWarning: Unknown distribution option: 'python_requires'
  warnings.warn(msg)
warning: no files found matching 'docs\docutils.conf'
warning: no previously-included files found matching '.coveragerc'
warning: no previously-included files found matching '.mailmap'
warning: no previously-included files found matching '.appveyor.yml'
warning: no previously-included files found matching '.travis.yml'
warning: no previously-included files found matching 'tox.ini'
warning: no files found matching 'Makefile' under directory 'docs'
warning: no files found matching '*.bat' under directory 'docs'
warning: no previously-included files found matching 'src\pip\_vendor\six'
warning: no previously-included files found matching 'src\pip\_vendor\six\moves'
warning: no previously-included files matching '*.pyi' found under directory 'src\pip\_vendor'
no previously-included directories found matching '.github'
no previously-included directories found matching '.azure-pipelines'
no previously-included directories found matching 'docs\build'
no previously-included directories found matching 'news'
no previously-included directories found matching 'tasks'
no previously-included directories found matching 'tests'
no previously-included directories found matching 'tools'
creating c:\users\小米笔记本\appdata\local\programs\python\python35\lib\site-packages\pip-19.2.3-py3.5.egg
Extracting pip-19.2.3-py3.5.egg to c:\users\小米笔记本\appdata\local\programs\python\python35\lib\site-packages
Adding pip 19.2.3 to easy-install.pth file
Installing pip3.5-script.py script to c:\users\小米笔记本\appdata\local\programs\python\python35\Scripts
Installing pip3.5.exe script to c:\users\小米笔记本\appdata\local\programs\python\python35\Scripts
Installing pip-script.py script to c:\users\小米笔记本\appdata\local\programs\python\python35\Scripts
Installing pip.exe script to c:\users\小米笔记本\appdata\local\programs\python\python35\Scripts
Installing pip3-script.py script to c:\users\小米笔记本\appdata\local\programs\python\python35\Scripts
Installing pip3.exe script to c:\users\小米笔记本\appdata\local\programs\python\python35\Scripts

Installed c:\users\小米笔记本\appdata\local\programs\python\python35\lib\site-packages\pip-19.2.3-py3.5.egg
Processing dependencies for pip
Finished processing dependencies for pip

以上pip升级成功

小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2019-9-11 18:15:25 | 显示全部楼层
阳顺 发表于 2019-9-11 18:13
重新升级pip,重新安装autopy 问题解决  记录下步骤
C:%users\小米笔记本>easy_install --upgrade pip
S ...

之前的是7.1.2  。

C:\Users\小米笔记本>pip --version
pip 19.2.3 from c:\users\小米笔记本\appdata\local\programs\python\python35\lib\site-packages\pip-19.2.3-py3.5.egg\pip (python 3.5)

C:\Users\小米笔记本>pip install autopy
Collecting autopy
  Downloading https://files.pythonhosted.org/packages/0d/c6/b52ef420ee2f55e80342f94a1adc1c75e3c6a081b06d373143968d130c42/autopy-2.1.0-cp35-cp35m-win_amd64.whl (3.5MB)
     |████████████████████████████████| 3.5MB 4.2kB/s
Installing collected packages: autopy
Successfully installed autopy-2.1.0

C:\Users\小米笔记本>python
Python 3.5.0 (v3.5.0:374f501f4567, Sep 13 2015, 02:27:37) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import autopy
>>>
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2019-9-11 18:37:14 | 显示全部楼层
yuweb 发表于 2019-9-11 18:01
升级pip
python -m pip install --upgrade pip

C:\Users\小米笔记本>python -m pip install --upgrade pip
Collecting pip
  Using cached https://files.pythonhosted.org/packages/30/db/9e38760b32e3e7f40cce46dd5fb107b8c73840df38f0046d8e6514e675a1/pip-19.2.3-py2.py3-none-any.whl
Installing collected packages: pip
  Found existing installation: pip 7.1.2
Exception:
Traceback (most recent call last):
  File "C:\Users\小米笔记本\AppData\Local\Programs\Python\Python35\lib\site-packages\pip\basecommand.py", line 211, in main
    status = self.run(options, args)
  File "C:\Users\小米笔记本\AppData\Local\Programs\Python\Python35\lib\site-packages\pip\commands\install.py", line 311, in run
    root=options.root_path,
  File "C:\Users\小米笔记本\AppData\Local\Programs\Python\Python35\lib\site-packages\pip\req\req_set.py", line 640, in install
    requirement.uninstall(auto_confirm=True)
  File "C:\Users\小米笔记本\AppData\Local\Programs\Python\Python35\lib\site-packages\pip\req\req_install.py", line 673, in uninstall
    for path in pip.wheel.uninstallation_paths(dist):
  File "C:\Users\小米笔记本\AppData\Local\Programs\Python\Python35\lib\site-packages\pip\wheel.py", line 512, in unique
    for item in fn(*args, **kw):
  File "C:\Users\小米笔记本\AppData\Local\Programs\Python\Python35\lib\site-packages\pip\wheel.py", line 531, in uninstallation_paths
    r = csv.reader(FakeFile(dist.get_metadata_lines('RECORD')))
  File "C:\Users\小米笔记本\AppData\Local\Programs\Python\Python35\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 1619, in get_metadata_lines
    return yield_lines(self.get_metadata(name))
  File "C:\Users\小米笔记本\AppData\Local\Programs\Python\Python35\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 1616, in get_metadata
    return self._get(self._fn(self.egg_info, name)).decode("utf-8")
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc3 in position 22367: invalid continuation byte
You are using pip version 7.1.2, however version 19.2.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2019-9-11 18:38:03 | 显示全部楼层
阳顺 发表于 2019-9-11 18:37
C:%users\小米笔记本>python -m pip install --upgrade pip
Collecting pip
  Using cached https://fi ...

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc3 in position 22367: invalid continuation byte
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2025-5-13 11:31

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表