有关easygui的安装问题
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.
求助大佬!!{:5_111:}
升级pip python -m pip install --upgrade pip 重装python解决80% 的问题,重装系统解决 99% 的问题,买台新的解决 100% 的问题。 大马强 发表于 2021-8-5 09:53
还是不可以呢
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. nahongyan1997 发表于 2021-8-5 10:03
重装python解决80% 的问题,重装系统解决 99% 的问题,买台新的解决 100% 的问题。
哈哈哈 感觉你安装不对地方了
pip show pip
输入一下这个,我看看 大马强 发表于 2021-8-5 10:23
感觉你安装不对地方了
输入一下这个,我看看
你别笑,我这个是最简单而且最直接的方法。没有之一。{:10_332:} nahongyan1997 发表于 2021-8-5 10:26
你别笑,我这个是最简单而且最直接的方法。没有之一。
很难不赞同 大马强 发表于 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. 你可以试试看这样
先打开你的文件管理器
找到 E:Scripts 里的pip
然后放到 c:\users\mate\anaconda3\lib\site-packages 里面去 我认为你现在有两个地方的pip,你下载easygui时用的是c:\users\mate\anaconda3\lib\site-packages
但你升级的是E:Scripts,所以你看看能不能直接把E:Scripts放到c:\users\mate\anaconda3\lib\site-packages
大马强 发表于 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) 大马强 发表于 2021-8-5 10:40
我认为你现在有两个地方的pip,你下载easygui时用的是c:%users\mate\anaconda3\lib\site-packages
但你升 ...
那把easygui安装到E盘可以吗? 可以,但你的py解释器是用c:%users\mate\anaconda3的,你要换解释器才能用 https://static01.imgkr.com/temp/b2358e8da7ad4bd987f7464998a40f5e.jpg 大马强 发表于 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. 看我上面的,切换下解释器 大马强 发表于 2021-8-5 10:48
看我上面的,切换下解释器
把scripts移到C盘也要切换啊 pallas 发表于 2021-8-5 10:50
把scripts移到C盘也要切换啊
啥意思?