鱼C论坛

 找回密码
 立即注册
查看: 3058|回复: 40

[已解决]有关easygui的安装问题

[复制链接]
发表于 2021-8-5 09:46:18 | 显示全部楼层 |阅读模式
10鱼币

E:\>pip install easygui
Requirement already satisfied: easygui in c:\users\mate\anaconda3\lib\site-packages (0.98.2)
cryptography 3.3.2 has requirement cffi>=1.12, but you'll have cffi 1.11.5 which is incompatible.
You are using pip version 10.0.1, however version 21.2.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

不知道怎么解决,网上搜索过给的方法是
pip install PyCrypto

pip install paramiko
结果:
E:\>pip install PyCrypto
Requirement already satisfied: PyCrypto in c:\users\mate\anaconda3\lib\site-packages (2.6.1)
cryptography 3.3.2 has requirement cffi>=1.12, but you'll have cffi 1.11.5 which is incompatible.
You are using pip version 10.0.1, however version 21.2.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.


E:\>
E:\>pip install paramiko
Collecting paramiko
  Using cached https://files.pythonhosted.org/p ... y2.py3-none-any.whl
Collecting bcrypt>=3.1.3 (from paramiko)
  Using cached https://files.pythonhosted.org/p ... bcrypt-3.2.0.tar.gz
  Installing build dependencies ... done
Requirement already satisfied: cryptography>=2.5 in c:\users\mate\anaconda3\lib\site-packages (from paramiko) (3.3.2)
Collecting pynacl>=1.0.1 (from paramiko)
  Using cached https://files.pythonhosted.org/p ... cp37m-win_amd64.whl
Requirement already satisfied: cffi>=1.1 in c:\users\mate\anaconda3\lib\site-packages (from bcrypt>=3.1.3->paramiko) (1.11.5)
Requirement already satisfied: six>=1.4.1 in c:\users\mate\anaconda3\lib\site-packages (from bcrypt>=3.1.3->paramiko) (1.15.0)
Requirement already satisfied: pycparser in c:\users\mate\anaconda3\lib\site-packages (from cffi>=1.1->bcrypt>=3.1.3->paramiko) (2.18)
Building wheels for collected packages: bcrypt
  Running setup.py bdist_wheel for bcrypt ... error
  Complete output from command C:\Users\mate\Anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\mate\\AppData\\Local\\Temp\\pip-install-n67rf4zs\\bcrypt\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:\Users\mate\AppData\Local\Temp\pip-wheel-4jazi7vu --python-tag cp37:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-3.7
  creating build\lib.win-amd64-3.7\bcrypt
  copying src\bcrypt\__about__.py -> build\lib.win-amd64-3.7\bcrypt
  copying src\bcrypt\__init__.py -> build\lib.win-amd64-3.7\bcrypt
  copying src\bcrypt\py.typed -> build\lib.win-amd64-3.7\bcrypt
  running build_ext
  generating cffi module 'build\\temp.win-amd64-3.7\\Release\\_bcrypt.c'
  creating build\temp.win-amd64-3.7
  creating build\temp.win-amd64-3.7\Release
  building '_bcrypt' extension
  error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/

  ----------------------------------------
  Failed building wheel for bcrypt
  Running setup.py clean for bcrypt
Failed to build bcrypt
cryptography 3.3.2 has requirement cffi>=1.12, but you'll have cffi 1.11.5 which is incompatible.
Installing collected packages: bcrypt, pynacl, paramiko
  Running setup.py install for bcrypt ... error
    Complete output from command C:\Users\mate\Anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\mate\\AppData\\Local\\Temp\\pip-install-n67rf4zs\\bcrypt\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\mate\AppData\Local\Temp\pip-record-cwud9ljs\install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.7
    creating build\lib.win-amd64-3.7\bcrypt
    copying src\bcrypt\__about__.py -> build\lib.win-amd64-3.7\bcrypt
    copying src\bcrypt\__init__.py -> build\lib.win-amd64-3.7\bcrypt
    copying src\bcrypt\py.typed -> build\lib.win-amd64-3.7\bcrypt
    running build_ext
    generating cffi module 'build\\temp.win-amd64-3.7\\Release\\_bcrypt.c'
    creating build\temp.win-amd64-3.7
    creating build\temp.win-amd64-3.7\Release
    building '_bcrypt' extension
    error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/

    ----------------------------------------
Command "C:\Users\mate\Anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\mate\\AppData\\Local\\Temp\\pip-install-n67rf4zs\\bcrypt\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\mate\AppData\Local\Temp\pip-record-cwud9ljs\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\mate\AppData\Local\Temp\pip-install-n67rf4zs\bcrypt\
You are using pip version 10.0.1, however version 21.2.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

求助大佬!![/td][/tr]
[/table]
最佳答案
2021-8-5 09:46:19
升级pip

最佳答案

想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2021-8-5 09:46:19 | 显示全部楼层    本楼为最佳答案   
升级pip
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2021-8-5 09:53:32 | 显示全部楼层
python -m pip install --upgrade pip
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2021-8-5 10:03:52 | 显示全部楼层
重装python解决80% 的问题,重装系统解决 99% 的问题,买台新的解决 100% 的问题。
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

 楼主| 发表于 2021-8-5 10:09:15 | 显示全部楼层

还是不可以呢
E:\>python -m pip install --upgrade pip
Collecting pip
  Downloading pip-21.2.2-py3-none-any.whl (1.6 MB)
     |████████████████████████████████| 1.6 MB 6.8 kB/s
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 20.1.1
    Uninstalling pip-20.1.1:
      Successfully uninstalled pip-20.1.1
  WARNING: The scripts pip.exe, pip3.7.exe and pip3.exe are installed in 'E:Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

Successfully installed pip-21.2.2

E:\>pip install easygui
Requirement already satisfied: easygui in c:\users\mate\anaconda3\lib\site-packages (0.98.2)
cryptography 3.3.2 has requirement cffi>=1.12, but you'll have cffi 1.11.5 which is incompatible.
You are using pip version 10.0.1, however version 21.2.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2021-8-5 10:19:42 | 显示全部楼层
nahongyan1997 发表于 2021-8-5 10:03
重装python解决80% 的问题,重装系统解决 99% 的问题,买台新的解决 100% 的问题。

哈哈哈
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2021-8-5 10:23:34 | 显示全部楼层
感觉你安装不对地方了
pip show pip
输入一下这个,我看看
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2021-8-5 10:26:12 | 显示全部楼层
大马强 发表于 2021-8-5 10:23
感觉你安装不对地方了

输入一下这个,我看看


你别笑,我这个是最简单而且最直接的方法。没有之一。
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2021-8-5 10:26:46 | 显示全部楼层
nahongyan1997 发表于 2021-8-5 10:26
你别笑,我这个是最简单而且最直接的方法。没有之一。

很难不赞同
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

 楼主| 发表于 2021-8-5 10:30:02 | 显示全部楼层
大马强 发表于 2021-8-5 10:23
感觉你安装不对地方了

输入一下这个,我看看

Name: pip
Version: 10.0.1
Summary: The PyPA recommended tool for installing Python packages.
Home-page: https://pip.pypa.io/
Author: The pip developers
Author-email: python-virtualenv@groups.google.com
License: MIT
Location: c:\users\mate\anaconda3\lib\site-packages
Requires:
Required-by:
You are using pip version 10.0.1, however version 21.2.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2021-8-5 10:31:42 | 显示全部楼层
你可以试试看这样
先打开你的文件管理器
找到 E:Scripts 里的pip
然后放到 c:\users\mate\anaconda3\lib\site-packages 里面去
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2021-8-5 10:40:51 | 显示全部楼层
我认为你现在有两个地方的pip,你下载easygui时用的是c:\users\mate\anaconda3\lib\site-packages
但你升级的是E:Scripts,所以你看看能不能直接把E:Scripts放到c:\users\mate\anaconda3\lib\site-packages
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

 楼主| 发表于 2021-8-5 10:41:14 | 显示全部楼层
大马强 发表于 2021-8-5 10:31
你可以试试看这样
先打开你的文件管理器
找到 E:Scripts 里的pip

放过去了
E:\>python -m pip install --upgrade pip
WARNING: Value for scheme.platlib does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
distutils: E:Lib\site-packages
sysconfig: E:\Lib\site-packages
WARNING: Value for scheme.purelib does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
distutils: E:Lib\site-packages
sysconfig: E:\Lib\site-packages
WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
distutils: E:Include\UNKNOWN
sysconfig: E:\Include\UNKNOWN
WARNING: Value for scheme.scripts does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
distutils: E:Scripts
sysconfig: E:\Scripts
WARNING: Additional context:
user = False
home = None
root = None
prefix = None

Requirement already satisfied: pip in e:\lib\site-packages (21.2.2)
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

 楼主| 发表于 2021-8-5 10:42:38 | 显示全部楼层
大马强 发表于 2021-8-5 10:40
我认为你现在有两个地方的pip,你下载easygui时用的是c:%users\mate\anaconda3\lib\site-packages
但你升 ...

那把easygui安装到E盘可以吗?
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2021-8-5 10:43:36 | 显示全部楼层
可以,但你的py解释器是用c:%users\mate\anaconda3的,你要换解释器才能用
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2021-8-5 10:44:46 | 显示全部楼层

                               
登录/注册后可看大图
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

 楼主| 发表于 2021-8-5 10:45:52 | 显示全部楼层
大马强 发表于 2021-8-5 10:40
我认为你现在有两个地方的pip,你下载easygui时用的是c:%users\mate\anaconda3\lib\site-packages
但你升 ...

我把scripts放过去了,还是一样
E:\>pip install easygui
Requirement already satisfied: easygui in c:\users\mate\anaconda3\lib\site-packages (0.98.2)
cryptography 3.3.2 has requirement cffi>=1.12, but you'll have cffi 1.11.5 which is incompatible.
You are using pip version 10.0.1, however version 21.2.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2021-8-5 10:48:36 | 显示全部楼层
看我上面的,切换下解释器
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

 楼主| 发表于 2021-8-5 10:50:38 | 显示全部楼层
大马强 发表于 2021-8-5 10:48
看我上面的,切换下解释器

把scripts移到C盘也要切换啊
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2021-8-5 11:11:18 | 显示全部楼层
pallas 发表于 2021-8-5 10:50
把scripts移到C盘也要切换啊

啥意思?
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-6-26 15:51

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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